fix: 充值霸王餐查询修改

This commit is contained in:
2024-10-26 16:51:41 +08:00
parent b5f8833c7e
commit 1faa2cccc6
2 changed files with 3 additions and 3 deletions

View File

@@ -22,5 +22,5 @@ public class MemberInDTO {
// 使用的优惠券 // 使用的优惠券
private List<Integer> couponIds = new ArrayList<>(); private List<Integer> couponIds = new ArrayList<>();
// 是否使用积分抵扣 // 是否使用积分抵扣
private boolean usePoints; private boolean usePoints ;
} }

View File

@@ -400,7 +400,7 @@ public class PayService {
throw new MsgException("当前店铺未开启与优惠券同享"); throw new MsgException("当前店铺未开启与优惠券同享");
} }
if (payDTO.getUsePoints() && freeDineConfig.getWithPoints() == 0) { if (payDTO.isUsePoints() && freeDineConfig.getWithPoints() == 0) {
throw new MsgException("当前店铺未开启与积分同享"); throw new MsgException("当前店铺未开启与积分同享");
} }
@@ -436,7 +436,7 @@ public class PayService {
} }
// TODO 霸王餐积分 // TODO 霸王餐积分
if (payDTO.getUsePoints()) { if (payDTO.isUsePoints()) {
} }
mpOrderInfoMapper.updateById(orderInfo); mpOrderInfoMapper.updateById(orderInfo);