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}, a.`sell_volume` = #{sell_volume}, where a.id = #{id} update mall_goods a a.`goods_number` = #{goods_number}, a.`sell_volume` = #{sell_volume}, where a.id = #{id} insert into mall_store_mng_change( `store_change_num`, `store_original_num`, `store_valid_num`, `merch_sn`, `store_id`, `goods_id`, `is_valid`, `change_type`, `change_reason`, `creater_sn`, `create_time`, `moder_sn`, `mod_time`, `tstm`) values( #{storeChangeNum}, #{storeOriginalNum}, #{storeValidNum}, #{merchSn}, #{storeId}, #{goodsId}, #{isValid}, #{changeType}, #{changeReason}, #{createrSn}, #{createTime}, #{moderSn}, #{modTime}, #{tstm}) insert into mall_mng_change( `change_num`, `original_num`, `valid_num`, `merch_sn`, `third_party_merch_code`, `goods_id`, `is_valid`, `change_type`, `change_reason`, `creater_sn`, `create_time`, `moder_sn`, `mod_time`, `tstm`) values( #{changeNum}, #{originalNum}, #{validNum}, #{merchSn}, #{thirdPartyMerchCode}, #{goodsId}, #{isValid}, #{changeType}, #{changeReason}, #{createrSn}, #{createTime}, #{moderSn}, #{modTime}, #{tstm}) UPDATE mall_order a a.order_status = #{orderStatus}, a.pay_status = #{payStatus}, a.pay_flag = #{payFlag}, a.order_sn_wx = #{orderSnWx}, a.pay_transaction_id = #{payTransactionId}, a.pay_time = #{payTime}, a.total_fee = #{totalFee}, a.fee_type = #{feeType}, a.cash_fee = #{cashFee}, a.cash_fee_type = #{cashFeeType}, a.rate = #{rate}, WHERE 1 = 1 AND a.id = #{orderId} UPDATE mall_order_process_record a a.pay_succ_time = #{payTime} WHERE 1 = 1 AND a.order_sn = #{orderSn} 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}, a.total_fee = #{totalFee}, a.fee_type = #{feeType}, a.cash_fee = #{cashFee}, a.cash_fee_type = #{cashFeeType}, a.rate = #{rate}, 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`, add_time, `mod_time`) values( #{typeId}, #{valueId}, #{userId}, #{orderId}, #{productId}, #{goodsSpecificationNameValue}, #{status}, #{content}, #{evalLevel}, #{valueName}, #{goodsLevel}, #{createTime}, #{addTime}, #{modTime}) insert into pingan_response( `id`, `out_no`, `req_interface`, `errcode`, `msg`, `data`, `sign`, `datajson`, `timestamp`, `create_time`, `tstm`) values( #{id}, #{outNo}, #{reqInterface}, #{errcode}, #{msg}, #{data}, #{sign}, #{datajson}, #{timestamp}, #{createTime}, #{tstm}) update pingan_pay_order `pmt_name` = #{pmtName}, `pmt_tag` = #{pmtTag}, `ord_mct_id` = #{ordMctId}, `ord_currency` = #{ordShopId}, `ord_shop_id` = #{ordCurrency}, `currency_sign` = #{currencySign}, `ord_no` = #{ordNo}, `ord_type` = #{ordType}, `original_amount` = #{originalAmount}, `discount_amount` = #{discountAmount}, `ignore_amount` = #{ignoreAmount}, `trade_account` = #{tradeAccount}, `trade_no` = #{tradeNo}, `trade_amount` = #{tradeAmount}, `trade_qrcode` = #{tradeQrcode}, `amount` = #{amount}, `trade_time` = #{tradeTime}, `trade_pay_time` = #{tradePayTime}, `pay_time` = #{payTime}, `status` = #{status}, `trade_result` = #{tradeResult}, `jsapi_pay_url` = #{jsapiPayUrl}, `rand_str` = #{randStr}, `appId` = #{appid}, `nonceStr` = #{noncestr}, `signType` = #{signtype}, `prepay_id` = #{prepayId}, `paySign` = #{paysign}, `creater_sn` = #{createrSn}, `create_time` = #{createTime}, `moder_sn` = #{moderSn}, `mod_time` = #{modTime}, `tstm` = #{tstm} where `out_no` = #{outNo}