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}
)
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},
`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}