Commit 83ae3348 by 吕明尚

支付回调判断订单状态是否删除,修改订单逻辑删除状态

parent 650733de
......@@ -1309,6 +1309,9 @@ public class SOrderServiceImpl extends ServiceImpl<SOrderMapper, SOrder> impleme
JSONObject jsonObject = new JSONObject(map);
redisUtil.set(ReceiptRdeisEnum.ORDER_NO.getValue() + sOrder.getOrderNo(), jsonObject.toString());
}
if (sOrder.getIsDelete().equals(YesNoEnum.yes.getIndex())) {
sOrder.setIsDelete(YesNoEnum.no.getIndex());
}
baseMapper.updateSOrder(sOrder);
Long couponId = sOrder.getCouponId();
SStore sStore = storeService.getById(sOrder.getStoreId());
......
......@@ -259,7 +259,7 @@
<if test="refundReason != null">refund_reason = #{refundReason},</if>
<if test="refundReasonTime != null">refund_reason_time = #{refundReasonTime},</if>
<if test="refundPrice != null">refund_price = #{refundPrice},</if>
<if test="isDelete != null">is_delete = #{isDelete},</if>
<if test="isDelete != null or isDelete==0 ">is_delete = #{isDelete},</if>
<if test="updateBy != null">update_by = #{updateBy},</if>
<if test="updateTime != null">update_time = NOW(),</if>
<if test="arrivalTime != null">arrival_time = #{arrivalTime},</if>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment