记得上下班打卡 | git大法好,push需谨慎

Commit 1e48bb9c authored by 张国柄's avatar 张国柄

opt;

parent 2e1964eb
...@@ -243,7 +243,10 @@ public class CandyMgtCouponAdminServiceImpl extends ServiceImpl<CandyMgtCouponMa ...@@ -243,7 +243,10 @@ public class CandyMgtCouponAdminServiceImpl extends ServiceImpl<CandyMgtCouponMa
int insertCt = candyCouponMapper.insert(initCoupon); int insertCt = candyCouponMapper.insert(initCoupon);
insertCt += candyMgtCouponMapper.insert(initMgtCoupon); insertCt += candyMgtCouponMapper.insert(initMgtCoupon);
boolean saveBatch = candyCouponRuleAdminService.saveBatch(initCouponRuleList); boolean saveBatch = true;
if (!CollectionUtils.isEmpty(initCouponRuleList)) {
saveBatch = candyCouponRuleAdminService.saveBatch(initCouponRuleList);
}
if (insertCt < 2 || !saveBatch) { if (insertCt < 2 || !saveBatch) {
throw new LiquidnetServiceException(); throw new LiquidnetServiceException();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment