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} update mall_order set comment_count = 1 where order_status='301' and shipping_status ='2' and comment_count=0 AND confirm_time DATE_ADD(now(),INTERVAL -30 DAY) insert into mall_comment( `type_id`, `value_id`, `user_id`, `order_id`, `product_id`, `goods_specification_name_value`, `status`, `content`, `eval_level`, `value_name`, `goods_level`, `create_time`, `mod_time`) values( #{typeId}, #{valueId}, #{userId}, #{orderId}, #{productId}, #{goodsSpecificationNameValue}, #{status}, #{content}, #{evalLevel}, #{valueName}, #{goodsLevel}, #{createTime}, #{modTime})