Commit e67e542a by 吕明尚

更改订单退款处理BUG

parent 89d22e01
...@@ -213,7 +213,7 @@ public class OrderTask { ...@@ -213,7 +213,7 @@ public class OrderTask {
logger.info("=================" + sOrder.getCouponId() + "================="); logger.info("=================" + sOrder.getCouponId() + "=================");
logger.info("================================================="); logger.info("=================================================");
// 退优惠券 // 退优惠券
if (sOrder.getCouponId() > 0) { if (ObjectUtil.isNotNull(sOrder.getCouponId())) {
SConsumerCoupon couponUser = consumerCouponService.getById(sOrder.getCouponId()); SConsumerCoupon couponUser = consumerCouponService.getById(sOrder.getCouponId());
couponUser.setUseStatus(CouponStatusEnum.NORMAL.getValue()); couponUser.setUseStatus(CouponStatusEnum.NORMAL.getValue());
consumerCouponService.updateById(couponUser); consumerCouponService.updateById(couponUser);
......
...@@ -133,7 +133,7 @@ public class RoomPackServiceImpl extends ServiceImpl<RoomPackMapper, SRoomPack> ...@@ -133,7 +133,7 @@ public class RoomPackServiceImpl extends ServiceImpl<RoomPackMapper, SRoomPack>
@Override @Override
public List<SRoomPack> packIdsByRoomIds(List<Long> roomId) { public List<SRoomPack> packIdsByRoomIds(List<Long> roomId) {
LambdaQueryWrapper<SRoomPack> queryWrapper = new LambdaQueryWrapper(); LambdaQueryWrapper<SRoomPack> queryWrapper = new LambdaQueryWrapper();
queryWrapper.in(SRoomPack::getRoomId); queryWrapper.in(SRoomPack::getRoomId, roomId);
return list(queryWrapper); return list(queryWrapper);
} }
} }
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