UPDATE mall_order a
SET order_status=101,shipping_status=0,pay_status=0
WHERE 1 = 1
AND a.add_time DATE_ADD(now(),INTERVAL -15 MINUTE)
AND a.order_status = 0 and a.order_type = 1 AND a.is_onffline_order = 0
update mall_product_store_rela a
a.`stock_num` = #{stock_num},
where a.id = #{id}
UPDATE mall_order a
a.order_status = #{orderStatus},
a.pay_status = #{payStatus},
a.pay_transaction_id = #{payTransactionId},
a.pay_time = #{payTime},
WHERE 1 = 1
AND a.id = #{orderId}
UPDATE mall_order_refund a
a.refund_id = #{refundId},
a.refund_money = #{refundMoney},
a.refund_status = #{refundStatus},
a.refund_recv_accout = #{refundRecvAccout},
a.refund_time = #{refundTime},
a.wechat_refund_status_des = #{wechat_refund_status_des},
WHERE 1 = 1
AND a.out_refund_no = #{orderRefundId}
update mall_order set order_status ='301', shipping_status='2',confirm_time=now() where id=#{orderId}