feat: 取消订单定时任务修改
This commit is contained in:
parent
f101d85c9e
commit
b208a0ad92
|
|
@ -714,6 +714,10 @@ public class TbOrderInfoServiceImpl implements TbOrderInfoService {
|
|||
memberPointsService.addPoints(Long.valueOf(orderInfo.getMemberId()), orderInfo.getPointsNum(), "订单取消返还: " + orderInfo.getPointsNum() + "积分", Long.valueOf(orderInfo.getId()));
|
||||
}
|
||||
|
||||
} catch (Exception e) {
|
||||
log.error("返还订单积分优惠券失败: 订单信息: {}", orderInfo);
|
||||
log.error("异常信息: ", e);
|
||||
}finally {
|
||||
mpCashierCartService.updateStateByOrderId(TableConstant.OrderInfo.Status.CLOSED, orderInfo.getId());
|
||||
mpOrderDetailService.updateStatusByOrderId(TableConstant.OrderInfo.Status.CLOSED, orderInfo.getId());
|
||||
|
||||
|
|
@ -725,9 +729,6 @@ public class TbOrderInfoServiceImpl implements TbOrderInfoService {
|
|||
.set(TbOrderInfo::getPointsNum, 0)
|
||||
.set(TbOrderInfo::getUpdatedAt, cn.hutool.core.date.DateUtil.current())
|
||||
.set(TbOrderInfo::getStatus, "cancelled"));
|
||||
} catch (Exception e) {
|
||||
log.error("取消订单失败: 订单信息: {}", orderInfo);
|
||||
log.error("异常信息: ", e);
|
||||
}
|
||||
});
|
||||
// List<Integer> ids = tbOrderInfos.stream().map(TbOrderInfo::getId).collect(Collectors.toList());
|
||||
|
|
|
|||
Loading…
Reference in New Issue