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

Commit 033ffb1f authored by 张国柄's avatar 张国柄

调整:创建券发放任务逻辑:券领取类型为`2-积分兑换`时不创建发放任务;

parent efea1aa1
......@@ -253,8 +253,7 @@ public class CandyMgtCouponAdminServiceImpl extends ServiceImpl<CandyMgtCouponMa
CandyMgtCoupon initMgtCoupon = new CandyMgtCoupon();
initMgtCoupon.setMcouponId(IDGenerator.nextMilliId());
initMgtCoupon.setCouponId(initCoupon.getCouponId());
// initMgtCoupon.setState(0);
initMgtCoupon.setState(initCoupon.getBindType() == 2 ? 1 : 0);// TODO: 2021/11/9 PM上线前临时加的发放类型(积分兑换),这里根据条件设置该记录不执行发放逻辑
initMgtCoupon.setState(0);
initMgtCoupon.setEventAmt(parameter.getEventAmt());
initMgtCoupon.setEventType(parameter.getEventType());
initMgtCoupon.setEventLimit(parameter.getEventLimit());
......@@ -275,7 +274,9 @@ public class CandyMgtCouponAdminServiceImpl extends ServiceImpl<CandyMgtCouponMa
@Transactional
public boolean saveMgtCouponInfo(CandyCoupon initCoupon, CandyMgtCoupon initMgtCoupon, List<CandyCouponRule> initCouponRuleList) {
int insertCt = candyCouponMapper.insert(initCoupon);
insertCt += candyMgtCouponMapper.insert(initMgtCoupon);
if (initCoupon.getBindType() != 2) {// TODO: 2021/11/9 PM上线前临时加的发放类型(2-积分兑换),这里根据发放类型不创建发放任务
insertCt += candyMgtCouponMapper.insert(initMgtCoupon);
}
boolean saveBatch = true;
if (!CollectionUtils.isEmpty(initCouponRuleList)) {
......
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