Commit 2a97a49a00a0917bffa380a004023d6655933d21
1 parent
32f34335
fix:【mall 商城】CouponServiceImpl 报错的问题
Showing
1 changed file
with
1 additions
and
1 deletions
yudao-module-mall/yudao-module-promotion/src/main/java/cn/iocoder/yudao/module/promotion/service/coupon/CouponServiceImpl.java
| ... | ... | @@ -285,7 +285,7 @@ public class CouponServiceImpl implements CouponService { |
| 285 | 285 | // 校验发放数量不能过小(仅在 CouponTakeTypeEnum.USER 用户领取时) |
| 286 | 286 | if (CouponTakeTypeEnum.isUser(couponTemplate.getTakeType()) |
| 287 | 287 | && ObjUtil.notEqual(couponTemplate.getTakeLimitCount(), CouponTemplateDO.TAKE_LIMIT_COUNT_MAX) // 校验不限制领取数 |
| 288 | - && ObjUtil.notEqual(couponTemplate.getTotalCount(), CouponTemplateDO.TOTAL_COUNT_MAX) // 校验不限制发放数量 | |
| 288 | + && ObjUtil.notEqual(couponTemplate.getTotalCount(), CouponTemplateDO.TOTAL_COUNT_MAX)) { // 校验不限制发放数量 | |
| 289 | 289 | throw exception(COUPON_TEMPLATE_NOT_ENOUGH); |
| 290 | 290 | } |
| 291 | 291 | // 校验"固定日期"的有效期类型是否过期 | ... | ... |