|
|
@@ -155,6 +155,7 @@ public class LiveAutoTaskServiceImpl implements ILiveAutoTaskService {
|
|
|
if(liveCouponIssueRelation == null) return R.error("优惠券尚未添加在直播间");
|
|
|
if(ObjectUtil.isEmpty(liveCouponIssueRelation.getGoodsId())) return R.error("未绑定商品,无法制定自动化任务!");
|
|
|
liveCoupon.setGoodsId(liveCouponIssueRelation.getGoodsId());
|
|
|
+ liveCoupon.setIssueId(liveCouponIssueRelation.getCouponIssueId());
|
|
|
liveAutoTask.setContent(JSON.toJSONString(liveCoupon));
|
|
|
baseMapper.insertLiveAutoTask(liveAutoTask);
|
|
|
} else if (liveAutoTask.getTaskType() == 6L) {
|
|
|
@@ -292,6 +293,7 @@ public class LiveAutoTaskServiceImpl implements ILiveAutoTaskService {
|
|
|
if(liveCouponIssueRelation == null) return R.error("优惠券尚未添加在直播间");
|
|
|
if(ObjectUtil.isEmpty(liveCouponIssueRelation.getGoodsId())) return R.error("未绑定商品,无法制定自动化任务!");
|
|
|
liveCoupon.setGoodsId(liveCouponIssueRelation.getGoodsId());
|
|
|
+ liveCoupon.setIssueId(liveCouponIssueRelation.getCouponIssueId());
|
|
|
liveAutoTask.setContent(JSON.toJSONString(liveCoupon));
|
|
|
baseMapper.updateLiveAutoTask(liveAutoTask);
|
|
|
} else if (liveAutoTask.getTaskType() == 6L) {
|