insert into mall_order_process_record(
`order_sn`,
`user_id`,
`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`,
`customs_send_sms_status`,
`tstm`)
values(
#{orderSn},
#{userId},
#{orderBizType},
#{addOrderStartTime},
#{addOrderSuccTime},
#{isAddOrderSend},
#{payStartTime},
#{paySuccTime},
#{paymentStartTime},
#{paymentSuccTime},
#{isPaymentSend},
#{eleOrderStartTime},
#{eleOrderSuccTime},
#{isEleOrderSend},
#{waybillStartTime},
#{waybillSuccTime},
#{logisticsNo},
#{customsStartTime},
#{customsSuccTime},
#{invtNo},
#{isCustomsSend},
#{shipmentStartTime},
#{shipmentSuccTime},
#{processContent},
'0',
#{tstm})
update mall_order_process_record
`order_sn` = #{orderSn}, `user_id` = #{userId}, `order_biz_type` = #{orderBizType}, `add_order_start_time` = #{addOrderStartTime}, `add_order_succ_time` = #{addOrderSuccTime}, `is_add_order_send` = #{isAddOrderSend}, `pay_start_time` = #{payStartTime}, `pay_succ_time` = #{paySuccTime}, `payment_start_time` = #{paymentStartTime}, `payment_succ_time` = #{paymentSuccTime}, `is_payment_send` = #{isPaymentSend}, `ele_order_start_time` = #{eleOrderStartTime}, `ele_order_succ_time` = #{eleOrderSuccTime}, `is_ele_order_send` = #{isEleOrderSend}, `waybill_start_time` = #{waybillStartTime}, `waybill_succ_time` = #{waybillSuccTime}, `logistics_no` = #{logisticsNo}, `customs_start_time` = #{customsStartTime}, `customs_succ_time` = #{customsSuccTime}, `invt_no` = #{invtNo}, `is_customs_send` = #{isCustomsSend}, `shipment_start_time` = #{shipmentStartTime}, `shipment_succ_time` = #{shipmentSuccTime}, `process_content` = #{processContent}, `customs_send_sms_status` = #{customsSendSmsStatus}, `tstm` = #{tstm}
where id = #{id}
delete from mall_order_process_record where id = #{value}
delete from mall_order_process_record where id in
#{id}
update mall_order_process_record
when order_sn=#{item.orderSn}
then #{item.logisticsNo}
when order_sn=#{item.orderSn}
then mall_order_process_record.logistics_no
when order_sn=#{item.orderSn}
then #{item.shippingCode}
when order_sn=#{item.orderSn}
then mall_order_process_record.shipping_code
when order_sn=#{item.orderSn}
then #{item.shippingName}
when order_sn=#{item.orderSn}
then mall_order_process_record.shipping_name
when order_sn=#{item.orderSn}
then #{item.ewbStartTime}
when order_sn=#{item.orderSn}
then mall_order_process_record.waybill_succ_time
when order_sn=#{item.orderSn}
then #{item.clearNo}
when order_sn=#{item.orderSn}
then mall_order_process_record.invt_no
when order_sn=#{item.orderSn}
then #{item.clearType}
when order_sn=#{item.orderSn}
then mall_order_process_record.is_customs_send
when order_sn=#{item.orderSn}
then #{item.customsSuccTime}
when order_sn=#{item.orderSn}
then mall_order_process_record.customs_succ_time
when order_sn=#{item.orderSn}
then #{item.clearMsg}
when order_sn=#{item.orderSn}
then mall_order_process_record.customs_msg
where order_sn in
#{item.orderSn}
update mall_order
when order_sn=#{item.orderSn}
then #{item.logisticsNo}
when order_sn=#{item.orderSn}
then mall_order.logistics_no
when order_sn=#{item.orderSn}
then #{item.shippingCode}
when order_sn=#{item.orderSn}
then mall_order.shipping_code
when order_sn=#{item.orderSn}
then #{item.shippingName}
when order_sn=#{item.orderSn}
then mall_order.shipping_name
where order_sn in
#{item.orderSn}