|
@@ -60,6 +60,7 @@
|
|
|
`shipment_start_time`,
|
|
|
`shipment_succ_time`,
|
|
|
`process_content`,
|
|
|
+ `customs_send_sms_status`,
|
|
|
r.`tstm`,
|
|
|
o.ali_trade_no
|
|
|
from mall_order_process_record r inner join mall_order o on r.order_sn = o.order_sn
|
|
@@ -93,6 +94,7 @@
|
|
|
`shipment_start_time`,
|
|
|
`shipment_succ_time`,
|
|
|
`process_content`,
|
|
|
+ `customs_send_sms_status`,
|
|
|
r.`tstm`,
|
|
|
o.ali_trade_no as pay_transaction_id
|
|
|
from mall_order_process_record r inner join mall_order o on r.order_sn = o.order_sn
|
|
@@ -126,6 +128,7 @@
|
|
|
`shipment_start_time`,
|
|
|
`shipment_succ_time`,
|
|
|
`process_content`,
|
|
|
+ `customs_send_sms_status`,
|
|
|
`tstm`
|
|
|
from mall_order_process_record
|
|
|
WHERE 1=1
|
|
@@ -152,6 +155,40 @@
|
|
|
AND name LIKE concat('%',#{name},'%')
|
|
|
</if>
|
|
|
</select>
|
|
|
+ <select id="queryListBySendSmsStatus" resultType="com.kmall.admin.entity.OrderProcessRecordEntity">
|
|
|
+select
|
|
|
+ r.`id`,
|
|
|
+ r.`order_sn`,
|
|
|
+ r.`user_id`,
|
|
|
+ r.`order_biz_type`,
|
|
|
+ `add_order_start_time`,
|
|
|
+ `add_order_succ_time`,
|
|
|
+ `is_add_order_send`,
|
|
|
+ `pay_start_time`,
|
|
|
+ `pay_succ_time`,
|
|
|
+ `payment_start_time`,
|
|
|
+ `payment_succ_time`,
|
|
|
+ `is_payment_send`,
|
|
|
+ `ele_order_start_time`,
|
|
|
+ `ele_order_succ_time`,
|
|
|
+ `is_ele_order_send`,
|
|
|
+ `waybill_start_time`,
|
|
|
+ `waybill_succ_time`,
|
|
|
+ `logistics_no`,
|
|
|
+ `customs_start_time`,
|
|
|
+ `customs_succ_time`,
|
|
|
+ `invt_no`,
|
|
|
+ `is_customs_send`,
|
|
|
+ `shipment_start_time`,
|
|
|
+ `shipment_succ_time`,
|
|
|
+ `process_content`,
|
|
|
+ r.`tstm`,
|
|
|
+ o.ali_trade_no as pay_transaction_id,
|
|
|
+ o.pay_mobile as payMobile,
|
|
|
+ r.customs_send_sms_status as customsSendSmsStatus
|
|
|
+ from mall_order_process_record r inner join mall_order o on r.order_sn = o.order_sn
|
|
|
+ where r.is_customs_send='1' and r.customs_send_sms_status=#{customsSendSmsStatus}
|
|
|
+ </select>
|
|
|
|
|
|
<insert id="save" parameterType="com.kmall.admin.entity.OrderProcessRecordEntity" useGeneratedKeys="true" keyProperty="id">
|
|
|
insert into mall_order_process_record(
|
|
@@ -179,6 +216,7 @@
|
|
|
`shipment_start_time`,
|
|
|
`shipment_succ_time`,
|
|
|
`process_content`,
|
|
|
+ `customs_send_sms_status`,
|
|
|
`tstm`)
|
|
|
values(
|
|
|
#{orderSn},
|
|
@@ -205,6 +243,7 @@
|
|
|
#{shipmentStartTime},
|
|
|
#{shipmentSuccTime},
|
|
|
#{processContent},
|
|
|
+ #{customsSendSmsStatus},
|
|
|
#{tstm})
|
|
|
</insert>
|
|
|
|
|
@@ -235,6 +274,7 @@
|
|
|
<if test="shipmentStartTime != null">`shipment_start_time` = #{shipmentStartTime}, </if>
|
|
|
<if test="shipmentSuccTime != null">`shipment_succ_time` = #{shipmentSuccTime}, </if>
|
|
|
<if test="processContent != null">`process_content` = #{processContent}, </if>
|
|
|
+ <if test="customsSendSmsStatus != null">`customs_send_sms_status` = #{customsSendSmsStatus}, </if>
|
|
|
<if test="tstm != null">`tstm` = #{tstm}</if>
|
|
|
</set>
|
|
|
where id = #{id}
|