【代码评审】商城:满减送订单

This commit is contained in:
YunaiV
2024-08-29 23:30:59 +08:00
parent 7a7ca4293c
commit d60374d646
9 changed files with 19 additions and 12 deletions

View File

@@ -181,6 +181,7 @@ public class CouponServiceImpl implements CouponService {
@Override
public void takeCouponsByAdmin(List<Long> templateIds, List<Integer> counts, Long userId) {
// TODO @puhui999要不要循环调用上面的 takeCoupon 方法?按道理说,赠送也不会很多张。如果某次发卷失败,可以打个 error log
// 1. 获得优惠券模版
List<CouponTemplateDO> templateList = couponTemplateService.getCouponTemplateList(templateIds);
if (CollUtil.isEmpty(templateList)) {