create_by,
create_time,
update_by,
update_time,
id,
order_no,
order_money,
commodity_price,
user_id,
order_time,
pay_status,
discount_explain,
discount_amount,
order_status,
refund_charge,
user_name,
user_tel,
remarks,
shipping_method,
store_id,
purchase_quantity,
del_flag,
wx_order_no,
pay_result,
postage,
order_type,
activity_type,
score_pay,
pay_method,
company_id
#{item.createBy},
now(),
#{item.updateBy},
now(),
#{item.id},
#{item.orderNo},
#{item.orderMoney},
#{item.commodityPrice},
#{item.userId},
now(),
#{item.payStatus},
#{item.discountExplain},
#{item.discountAmount},
#{item.orderStatus},
#{item.refundCharge},
#{item.userName},
#{item.userTel},
#{item.remarks},
#{item.shippingMethod},
#{item.storeId},
#{item.purchaseQuantity},
#{item.delFlag},
#{item.wxOrderNo},
#{item.payResult},
#{item.postage},
#{item.orderType},
#{item.activityType},
#{item.scorePay},
#{item.payMethod},
#{item.companyId}
and id = #{record.id}
and order_no like concat('%', #{record.orderNo}, '%')
and order_money = #{record.orderMoney}
and commodity_price = #{record.commodityPrice}
and user_id = #{record.userId}
and order_time = #{record.orderTime}
and pay_status = #{record.payStatus}
and discount_explain = #{record.discountExplain}
and discount_amount = #{record.discountAmount}
and order_status = #{record.orderStatus}
and refund_charge = #{record.refundCharge}
and user_name like concat('%', #{record.userName}, '%')
and user_tel like concat('%', #{record.userTel}, '%')
and remarks = #{record.remarks}
and shipping_method = #{record.shippingMethod}
and store_id = #{record.storeId}
and purchase_quantity = #{record.purchaseQuantity}
and del_flag = #{record.delFlag}
and wx_order_no = #{record.wxOrderNo}
and pay_result = #{record.payResult}
and postage = #{record.postage}
and order_type = #{record.orderType}
and company_id = #{record.companyId}
INSERT INTO shop_order (
)
VALUES (
)
INSERT INTO shop_order (
)
VALUES
(
)
UPDATE shop_order
order_no = #{orderNo},
order_money = #{orderMoney},
commodity_price = #{commodityPrice},
user_id = #{userId},
order_time = #{orderTime},
pay_status = #{payStatus},
discount_explain = #{discountExplain},
discount_amount = #{discountAmount},
order_status = #{orderStatus},
refund_charge = #{refundCharge},
user_name = #{userName},
user_tel = #{userTel},
remarks = #{remarks},
shipping_method = #{shippingMethod},
store_id = #{storeId},
purchase_quantity = #{purchaseQuantity},
del_flag = #{delFlag},
wx_order_no = #{wxOrderNo},
pay_result = #{payResult},
postage = #{postage},
update_time = now(),
order_type = #{orderType},
score_pay = #{scorePay},
WHERE id=#{id}
UPDATE shop_order
order_no = #{record.orderNo},
order_money = #{record.orderMoney},
commodity_price = #{record.commodityPrice},
user_id = #{record.userId},
order_time = #{record.orderTime},
pay_status = #{record.payStatus},
discount_explain = #{record.discountExplain},
discount_amount = #{record.discountAmount},
order_status = #{record.orderStatus},
refund_charge = #{record.refundCharge},
user_name = #{record.userName},
user_tel = #{record.userTel},
remarks = #{record.remarks},
shipping_method = #{record.shippingMethod},
store_id = #{record.storeId},
purchase_quantity = #{record.purchaseQuantity},
del_flag = #{record.delFlag},
wx_order_no = #{record.wxOrderNo},
pay_result = #{record.payResult},
postage = #{record.postage},
score_pay = #{record.scorePay},
update_time = now(),
order_type =#{record.orderType},
WHERE id=#{record.id}
delete from shop_order where id in
#{item}
DELETE FROM shop_order
where id=#{id}
DELETE FROM shop_order
update shop_order set apply_status=#{item.applyStatus}
where id=#{item.id}
update shop_order set order_status=#{item.orderStatus}
where id=#{item.id}