insert into mall_order
(
`order_sn`,
`user_id`,
`order_status`,
`shipping_status`,
`pay_status`,
`consignee`,
`country`,
`province`,
`city`,
`district`,
`address`,
`mobile`,
`postscript`,
`shipping_id`,
`shipping_name`,
`shipping_code`,
`shipping_no`,
`pay_id`,
`pay_name`,
`shipping_fee`,
`actual_price`,
`integral`,
`integral_money`,
`order_price`,
`goods_price`,
`add_time`,
`confirm_time`,
`pay_time`,
`freight_price`,
`coupon_id`,
`coupon_price`,
full_cut_price,
camp_minus_id,
camp_name,
`callback_status`,
`order_type`,
`store_id`,
`order_biz_type`,
`is_onffline_order`,
`order_sn_wx`,
`pay_flag`,
`merch_sn`,
`create_time`,
`mod_time`
)
values
(
#{orderSn},
#{userId},
#{orderStatus},
#{shippingStatus},
#{payStatus},
#{consignee},
#{country},
#{province},
#{city},
#{district},
#{address},
#{mobile},
#{postscript},
#{shippingId},
#{shippingName},
#{shippingCode},
#{shippingNo},
#{payId},
#{payName},
#{shippingFee},
#{actualPrice},
#{integral},
#{integralMoney},
#{orderPrice},
#{goodsPrice},
#{addTime},
#{confirmTime},
#{payTime},
#{freightPrice},
#{couponId},
#{couponPrice},
#{fullCutPrice},
#{campMinusId},
#{campName},
#{callbackStatus},
#{orderType},
#{storeId},
#{orderBizType},
#{isOnfflineOrder},
#{orderSnWx},
#{payFlag},
#{merchSn},
#{createTime},
#{modTime}
)
insert into mall_order
(
`order_sn`,
`user_id`,
`order_status`,
`shipping_status`,
`shipping_code`,
`pay_status`,
`consignee`,
`country`,
`province`,
`city`,
`district`,
`address`,
`address_id`,
`mobile`,
`postscript`,
`pay_id`,
`pay_name`,
`shipping_fee`,
`actual_price`,
`cash_fee`,
`cash_fee_type`,
`total_fee`,
`fee_type`,
`rate`,
`integral`,
`integral_money`,
`order_price`,
`goods_price`,
`add_time`,
`confirm_time`,
`pay_time`,
`freight_price`,
`coupon_id`,
`coupon_price`,
`full_cut_price`,
camp_minus_id,
camp_name,
`order_type`,
`activity_id`,
`store_id`,
`delivery_date`,
`delivery_remark`,
`predict_time`,
`coupon_name`,
`comment_count`,
merch_sn,
merch_order_sn,
is_scan,
is_merge_pay,
order_biz_type,
pay_transaction_id,
pay_mobile,
buyer_pay_check,
`is_onffline_order`,
pay_flag,
creater_sn,
create_time,
moder_sn,
mod_time
)
values
(
#{order_sn},
#{user_id},
#{order_status},
#{shipping_status},
#{shipping_code},
#{pay_status},
#{consignee},
#{country},
#{province},
#{city},
#{district},
#{address},
#{address_id},
#{mobile},
#{postscript},
#{pay_id},
#{pay_name},
#{shipping_fee},
#{actual_price},
#{cashFee},
#{cashFeeType},
#{totalFee},
#{feeType},
#{rate},
#{integral},
#{integral_money},
#{order_price},
#{goods_price},
now(),
#{confirm_time},
#{pay_time},
#{freight_price},
#{coupon_id},
#{coupon_price},
#{full_cut_price},
#{campMinusId},
#{campName},
#{order_type},
#{activity_id},
#{store_id},
#{delivery_date},
#{delivery_remark},
#{predict_time},
#{coupon_name},
#{comment_count},
#{merchSn},
#{merchOrderSn},
#{isScan},
#{isMergePay},
#{orderBizType,jdbcType=CHAR},
#{payTransactionId},
#{payMobile},
#{buyerPayCheck},
#{isOnfflineOrder},
#{payFlag},
#{createrSn},
#{createTime},
#{moderSn},
#{modTime}
)
update mall_order
`order_sn` = #{orderSn},
`user_id` = #{userId},
`order_status` = #{orderStatus},
`shipping_status` = #{shippingStatus},
`pay_status` = #{payStatus},
`consignee` = #{consignee},
`country` = #{country},
`province` = #{province},
`city` = #{city},
`district` = #{district},
`address` = #{address},
`mobile` = #{mobile},
`postscript` = #{postscript},
`shipping_id` = #{shippingId},
`shipping_name` = #{shippingName},
`shipping_code` = #{shippingCode},
`shipping_no` = #{shippingNo},
`pay_id` = #{payId},
`pay_name` = #{payName},
`shipping_fee` = #{shippingFee},
`actual_price` = #{actualPrice},
`integral` = #{integral},
`integral_money` = #{integralMoney},
`order_price` = #{orderPrice},
`goods_price` = #{goodsPrice},
`add_time` = #{addTime},
`confirm_time` = #{confirmTime},
`pay_time` = #{payTime},
`freight_price` = #{freightPrice},
`coupon_id` = #{couponId},
`coupon_price` = #{couponPrice},
`full_cut_price` = #{fullCutPrice},
`camp_minus_id` = #{campMinusId},
`camp_name` = #{campName},
`callback_status` = #{callbackStatus},
`ali_trade_no` = #{AliTradeNo},
`order_type` = #{orderType},
`store_id` = #{storeId},
`pay_flag` = #{payFlag},
`order_sn_wx` = #{orderSnWx},
`order_biz_type` = #{orderBizType},
`merch_sn` = #{merchSn},
`create_time` = #{createTime},
`mod_time` = #{modTime},
`creater_sn` = #{createrSn},
`moder_sn` = #{moderSn},
where id = #{id}
delete from mall_order where id = #{value}
delete from mall_order where id in
#{id}
update mall_order
`order_status` = #{orderStatus},
`shipping_status` = #{shippingStatus},
`shipping_id` = #{shippingId},
`shipping_name` = #{shippingName},
`shipping_fee` = #{shippingFee},
`shipping_no` = #{shippingNo},
`shipping_mobile` = #{shippingMobile}
where id = #{id}
UPDATE mall_order a
a.order_status = #{orderStatus},
a.pay_status = #{payStatus},
a.pay_flag = #{payFlag},
a.order_sn_wx = #{orderSnWx},
a.pay_transaction_id = #{payTransactionId},
a.pay_time = #{payTime},
a.total_fee = #{totalFee},
a.fee_type = #{feeType},
a.cash_fee = #{cashFee},
a.cash_fee_type = #{cashFeeType},
a.rate = #{rate},
WHERE 1 = 1
AND a.id = #{orderId}
UPDATE mall_order_process_record a
a.pay_succ_time = #{payTime}
WHERE 1 = 1
AND a.order_sn = #{orderSn}
update mall_order set pay_status = 3 where id = #{id}
update mall_order
set order_status = 300
where order_sn in
#{item}