新客立减修改

This commit is contained in:
张松 2025-09-17 17:59:46 +08:00
parent 4aa63b5c92
commit e44ceece68
1 changed files with 1 additions and 2 deletions

View File

@ -52,7 +52,7 @@ public class MkConsumeDiscountServiceImpl extends ServiceImpl<MkConsumeDiscountM
throw new ApiNotPrintException("优惠金额和随机优惠金额不能同时为空");
}
MkConsumeDiscount consumeDiscount = getOne(new QueryWrapper().eq(MkConsumeDiscount::getShopId, shopId));
BeanUtil.copyProperties(consumeDiscountDTO, consumeDiscount);
if (TableValueConstant.ConsumeDiscount.DiscountType.RANDOM.getCode().equals(consumeDiscountDTO.getDiscountType())) {
if (consumeDiscountDTO.getRandomDiscountList() == null || consumeDiscountDTO.getRandomDiscountList().isEmpty()) {
throw new ApiNotPrintException("随机优惠金额不能为空");
@ -72,7 +72,6 @@ public class MkConsumeDiscountServiceImpl extends ServiceImpl<MkConsumeDiscountM
}
}
BeanUtil.copyProperties(consumeDiscountDTO, consumeDiscount);
if (consumeDiscountDTO.getUseTypeList() != null) {