fix: 充值霸王餐查询修改
This commit is contained in:
@@ -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 ;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user