BuyerOrderStatusFlowMapper.xml 1018 Bytes
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
<mapper namespace="com.yoho.order.dal.BuyerOrderStatusFlowMapper">
    <resultMap id="BaseResultMap" type="com.yoho.order.model.BuyerOrderStatusFlow">
      <result column="id" property="id" jdbcType="INTEGER" />
      <result column="order_code" property="orderCode" jdbcType="BIGINT" />
      <result column="status" property="status" jdbcType="TINYINT" />
      <result column="create_time" property="createTime" jdbcType="INTEGER" />
      <result column="remark" property="remark" jdbcType="VARCHAR" />
    </resultMap>

    <sql id="Base_Column_List">
        id, order_code, status, create_time, remark
    </sql>
    
    <select id="selectByOrderCodeAndStatus" resultMap="BaseResultMap">
        select <include refid="Base_Column_List" />
        from buyer_order_status_flow where order_code = #{orderCode} and status = #{status}
    </select>
    
</mapper>