...
|
...
|
@@ -20,10 +20,13 @@ |
|
|
<result column="channel_no" jdbcType="VARCHAR" property="channelNo" />
|
|
|
<result column="attributes" jdbcType="INTEGER" property="attributes" />
|
|
|
<result column="platform_delivery_status" jdbcType="INTEGER" property="platformDeliveryStatus" />
|
|
|
<result column="seller_delivery_status" jdbcType="INTEGER" property="sellerDeliveryStatus" />
|
|
|
<result column="seller_delivery_deal" jdbcType="INTEGER" property="sellerDeliveryDeal" />
|
|
|
</resultMap>
|
|
|
<sql id="Base_Column_List">
|
|
|
id, uid, order_code, seller_uid, client_type, payment, payment_type, is_cancel, amount,
|
|
|
ship_fee, status, create_time, update_time, buyer_order_status, seller_order_status, channel_no, attributes,platform_delivery_status
|
|
|
ship_fee, status, create_time, update_time, buyer_order_status, seller_order_status, channel_no, attributes,platform_delivery_status,
|
|
|
seller_delivery_status,seller_delivery_deal
|
|
|
</sql>
|
|
|
|
|
|
|
...
|
...
|
@@ -138,13 +141,15 @@ |
|
|
client_type, payment, payment_type,
|
|
|
is_cancel, amount, ship_fee,
|
|
|
status, create_time, update_time,
|
|
|
buyer_order_status, seller_order_status, channel_no, attributes,platform_delivery_status)
|
|
|
buyer_order_status, seller_order_status, channel_no, attributes,platform_delivery_status,
|
|
|
seller_delivery_status,seller_delivery_deal)
|
|
|
values (#{uid,jdbcType=INTEGER}, #{orderCode,jdbcType=BIGINT}, #{sellerUid,jdbcType=INTEGER},
|
|
|
#{clientType,jdbcType=INTEGER}, #{payment,jdbcType=INTEGER}, #{paymentType,jdbcType=TINYINT},
|
|
|
#{isCancel,jdbcType=TINYINT}, #{amount,jdbcType=DECIMAL}, #{shipFee,jdbcType=DECIMAL},
|
|
|
#{status,jdbcType=INTEGER}, #{createTime,jdbcType=INTEGER}, #{updateTime,jdbcType=INTEGER},
|
|
|
#{buyerOrderStatus,jdbcType=INTEGER}, #{sellerOrderStatus,jdbcType=INTEGER}, #{channelNo,jdbcType=VARCHAR},
|
|
|
#{attributes,jdbcType=INTEGER},#{platformDeliveryStatus,jdbcType=INTEGER})
|
|
|
#{attributes,jdbcType=INTEGER},#{platformDeliveryStatus,jdbcType=INTEGER},
|
|
|
#{sellerDeliveryStatus,jdbcType=INTEGER},#{sellerDeliveryDeal,jdbcType=INTEGER})
|
|
|
</insert>
|
|
|
<insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.yohoufo.dal.order.model.BuyerOrder" useGeneratedKeys="true">
|
|
|
insert into buyer_order
|
...
|
...
|
@@ -400,6 +405,12 @@ |
|
|
where uid = #{uid,jdbcType=INTEGER} and order_code = #{orderCode,jdbcType=BIGINT}
|
|
|
</update>
|
|
|
|
|
|
<update id="updateSellerDeliveryStatusByOrderCode">
|
|
|
update buyer_order set
|
|
|
seller_delivery_status = #{targetSellerDeliveryStatus,jdbcType=INTEGER}
|
|
|
where uid = #{uid,jdbcType=INTEGER} and order_code = #{orderCode,jdbcType=BIGINT}
|
|
|
</update>
|
|
|
|
|
|
<select id="selectOrderNumByUid" resultType="java.lang.Integer">
|
|
|
select count(*) from buyer_order where uid = #{uid,jdbcType=INTEGER} and buyer_order_status = 1
|
|
|
</select>
|
...
|
...
|
|