Commit e67e542a by 吕明尚

更改订单退款处理BUG

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