|
@@ -152,7 +152,7 @@ public class VipServiceImpl implements VipService {
|
|
|
public VipReduceVO getVipReduceInfo(Long userId, @Valid CanReduceQueryDTO canReduceQueryDTO) {
|
|
public VipReduceVO getVipReduceInfo(Long userId, @Valid CanReduceQueryDTO canReduceQueryDTO) {
|
|
|
// 查询订单原始金额是否达到会员立减金额
|
|
// 查询订单原始金额是否达到会员立减金额
|
|
|
CommonInfo vipPromotionMinAmount = commonInfoService.findOne(446);
|
|
CommonInfo vipPromotionMinAmount = commonInfoService.findOne(446);
|
|
|
- if (canReduceQueryDTO.getOriginalPrice().compareTo(new BigDecimal(vipPromotionMinAmount.getValue())) <= 0) {
|
|
|
|
|
|
|
+ if (canReduceQueryDTO.getOriginalPrice().compareTo(new BigDecimal(vipPromotionMinAmount.getValue())) < 0) {
|
|
|
return VipReduceVO.builder().reduceAmount(BigDecimal.ZERO)
|
|
return VipReduceVO.builder().reduceAmount(BigDecimal.ZERO)
|
|
|
.canReduceFlag(Constant.NO)
|
|
.canReduceFlag(Constant.NO)
|
|
|
.vipReduceDesc("订单金额未达到会员立减金额")
|
|
.vipReduceDesc("订单金额未达到会员立减金额")
|