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`,
`integral`,
`integral_money`,
`order_price`,
`goods_price`,
`add_time`,
`confirm_time`,
`pay_time`,
`freight_price`,
`coupon_id`,
`coupon_price`,
`full_cut_price`,
`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,
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},
#{integral},
#{integral_money},
#{order_price},
#{goods_price},
now(),
#{confirm_time},
#{pay_time},
#{freight_price},
#{coupon_id},
#{coupon_price},
#{full_cut_price},
#{order_type},
#{activity_id},
#{store_id},
#{delivery_date},
#{delivery_remark},
#{predict_time},
#{coupon_name},
#{comment_count},
#{merchSn,jdbcType=VARCHAR},
#{merchOrderSn,jdbcType=VARCHAR},
#{isScan,jdbcType=VARCHAR},
#{isMergePay},
#{orderBizType,jdbcType=CHAR},
#{payTransactionId,jdbcType=VARCHAR},
#{payMobile,jdbcType=VARCHAR},
#{buyerPayCheck,jdbcType=VARCHAR},
#{payFlag,jdbcType=VARCHAR},
#{createrSn,jdbcType=VARCHAR},
#{createTime,jdbcType=TIMESTAMP},
#{moderSn,jdbcType=VARCHAR},
#{modTime,jdbcType=TIMESTAMP}
)
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`,
`integral`,
`integral_money`,
`order_price`,
`goods_price`,
`add_time`,
`confirm_time`,
`pay_time`,
`freight_price`,
`coupon_id`,
`coupon_price`,
`full_cut_price`,
`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,
create_time,
mod_time
)
values
(
#{orderInfo.order_sn},
#{orderInfo.user_id},
#{orderInfo.order_status},
#{orderInfo.shipping_status},
#{orderInfo.shipping_code},
#{orderInfo.pay_status},
#{orderInfo.consignee},
#{orderInfo.country},
#{orderInfo.province},
#{orderInfo.city},
#{orderInfo.district},
#{orderInfo.address},
#{orderInfo.address_id},
#{orderInfo.mobile},
#{orderInfo.postscript},
#{orderInfo.pay_id},
#{orderInfo.pay_name},
#{orderInfo.shipping_fee},
#{orderInfo.actual_price},
#{orderInfo.integral},
#{orderInfo.integral_money},
#{orderInfo.order_price},
#{orderInfo.goods_price},
now(),
#{orderInfo.confirm_time},
#{orderInfo.pay_time},
#{orderInfo.freight_price},
#{orderInfo.coupon_id},
#{orderInfo.coupon_price},
#{orderInfo.full_cut_price},
#{orderInfo.order_type},
#{orderInfo.activity_id},
#{orderInfo.store_id},
#{orderInfo.delivery_date},
#{orderInfo.delivery_remark},
#{orderInfo.predict_time},
#{orderInfo.coupon_name},
#{orderInfo.comment_count},
#{orderInfo.merchSn,jdbcType=VARCHAR},
#{orderInfo.merchOrderSn,jdbcType=VARCHAR},
#{orderInfo.isScan,jdbcType=VARCHAR},
#{orderInfo.isMergePay},
#{orderInfo.orderBizType,jdbcType=CHAR},
#{orderInfo.payTransactionId,jdbcType=VARCHAR},
#{orderInfo.payMobile,jdbcType=VARCHAR},
#{orderInfo.createTime,jdbcType=TIMESTAMP},
#{orderInfo.modTime,jdbcType=TIMESTAMP}
)
update mall_order
`order_sn` = #{order_sn},
`user_id` = #{user_id},
`order_status` = #{order_status},
`shipping_status` = #{shipping_status},
`shipping_code` = #{shipping_code},
`pay_status` = #{pay_status},
`consignee` = #{consignee},
`country` = #{country},
`province` = #{province},
`city` = #{city},
`district` = #{district},
`address` = #{address},
`address_id` = #{address_id},
`mobile` = #{mobile},
`postscript` = #{postscript},
`shipping_id` = #{shipping_id},
`shipping_name` = #{shipping_name},
`shipping_fee` = #{shipping_fee},
`shipping_no` = #{shipping_no},
`pay_id` = #{pay_id},
`pay_name` = #{pay_name},
`pay_time` = #{pay_time},
`actual_price` = #{actual_price},
`integral` = #{integral},
`integral_money` = #{integral_money},
`order_price` = #{order_price},
`goods_price` = #{goods_price},
`confirm_time` = #{confirm_time},
`freight_price` = #{freight_price},
`coupon_id` = #{coupon_id},
`coupon_price` = #{coupon_price},
`full_cut_price` = #{full_cut_price},
`order_type` = #{order_type},
`activity_id` = #{activity_id},
`store_id` = #{store_id},
`shipping_mobile` = #{shipping_mobile},
`delivery_date` = #{delivery_date},
`delivery_remark` = #{delivery_remark},
`predict_time` = #{predict_time},
`coupon_name` = #{coupon_name},
`comment_count` = #{comment_count},
merch_sn = #{merchSn,jdbcType=VARCHAR},
merch_order_sn = #{merchOrderSn,jdbcType=VARCHAR},
is_scan = #{isScan,jdbcType=VARCHAR},
is_merge_pay = #{isMergePay},
order_biz_type = #{orderBizType,jdbcType=CHAR},
pay_transaction_id = #{payTransactionId,jdbcType=VARCHAR},
pay_mobile = #{payMobile,jdbcType=VARCHAR},
buyer_pay_check = #{buyerPayCheck,jdbcType=VARCHAR},
pay_flag = #{payFlag,jdbcType=VARCHAR},
creater_sn = #{createrSn,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=TIMESTAMP},
moder_sn = #{moderSn,jdbcType=VARCHAR},
mod_time = #{modTime,jdbcType=TIMESTAMP},
where id = #{id}
update mall_order
`order_status` = #{order_status},
`shipping_status` = #{shipping_status},
`shipping_code` = #{shipping_code},
`shipping_id` = #{shipping_id},
`shipping_name` = #{shipping_name},
`shipping_fee` = #{shipping_fee},
`shipping_no` = #{shipping_no},
`shipping_mobile` = #{shipping_mobile}
where id = #{id}