|
|
@@ -78,6 +78,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="companyName" column="company_name" />
|
|
|
<result property="customerId" column="customer_id" />
|
|
|
<result property="couponPrice" column="coupon_price" />
|
|
|
+ <result property="appId" column="app_id" />
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectLiveOrderVo">
|
|
|
@@ -92,7 +93,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
a.pay_remain, a.delivery_status, a.delivery_pay_status, a.delivery_pay_time, a.delivery_type,
|
|
|
a.delivery_pay_money, a.delivery_import_time, a.delivery_send_time, a.is_after_sales, a.dept_id,
|
|
|
a.channel, a.source, a.bill_price, a.total_postage, a.pay_postage, a.gain_integral,a.coupon_price,
|
|
|
- a.use_integral, a.pay_integral, a.back_integral, a.is_edit_money, b.product_info as product_introduce,a.customer_id
|
|
|
+ a.use_integral, a.pay_integral, a.back_integral, a.is_edit_money, b.product_info as product_introduce,a.customer_id,a.app_id
|
|
|
FROM
|
|
|
live_order a LEFT JOIN fs_store_product_scrm b ON a.product_id = b.product_id
|
|
|
</sql>
|
|
|
@@ -109,7 +110,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
a.pay_remain, a.delivery_status, a.delivery_pay_status, a.delivery_pay_time, a.delivery_type,
|
|
|
a.delivery_pay_money, a.delivery_import_time, a.delivery_send_time, a.is_after_sales, a.dept_id,
|
|
|
a.channel, a.source, a.bill_price, a.total_postage, a.pay_postage, a.gain_integral,a.coupon_price,
|
|
|
- a.use_integral, a.pay_integral, a.back_integral, a.is_edit_money, b.product_info as product_introduce,a.customer_id
|
|
|
+ a.use_integral, a.pay_integral, a.back_integral, a.is_edit_money, b.product_info as product_introduce,a.customer_id,a.app_id
|
|
|
FROM
|
|
|
live_order a LEFT JOIN fs_store_product_scrm b ON a.product_id = b.product_id
|
|
|
left join company_user cu on a.company_user_id = cu.user_id
|
|
|
@@ -197,7 +198,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
a.pay_remain, a.delivery_status, a.delivery_pay_status, a.delivery_pay_time, a.delivery_type,
|
|
|
a.delivery_pay_money, a.delivery_import_time, a.delivery_send_time, a.is_after_sales, a.dept_id,
|
|
|
a.channel, a.source, a.bill_price, a.total_postage, a.pay_postage, a.gain_integral,a.coupon_price,
|
|
|
- a.use_integral, a.pay_integral, a.back_integral, a.is_edit_money, b.product_info as product_introduce,a.customer_id
|
|
|
+ a.use_integral, a.pay_integral, a.back_integral, a.is_edit_money, b.product_info as product_introduce,a.customer_id,a.app_id
|
|
|
FROM
|
|
|
live_order a LEFT JOIN fs_store_product_scrm b ON a.product_id = b.product_id
|
|
|
left join company_user cu on a.company_user_id = cu.user_id
|
|
|
@@ -279,6 +280,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="productId != null">product_id,</if>
|
|
|
<if test="customerId != null">customer_id,</if>
|
|
|
<if test="couponPrice != null">coupon_price,</if>
|
|
|
+ <if test="appId != null and appId != ''">app_id,</if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="liveId != null">#{liveId},</if>
|
|
|
@@ -351,6 +353,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="productId != null">#{productId},</if>
|
|
|
<if test="customerId != null">#{customerId},</if>
|
|
|
<if test="couponPrice != null">#{couponPrice},</if>
|
|
|
+ <if test="appId != null and appId != ''">#{appId},</if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
|
|
|
@@ -426,6 +429,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="isEditMoney != null">is_edit_money = #{isEditMoney},</if>
|
|
|
<if test="customerId != null">customer_id = #{customerId},</if>
|
|
|
<if test="couponPrice != null">coupon_price = #{couponPrice},</if>
|
|
|
+ <if test="appId != null and appId != ''">app_id = #{appId},</if>
|
|
|
</trim>
|
|
|
where order_id = #{orderId}
|
|
|
</update>
|