|
@@ -54,14 +54,8 @@ public class PlanServiceImpl implements PlanService {
|
|
|
App app = appMapper.selectOne(appQueryWrapper);
|
|
|
if (app == null)
|
|
|
return -1;
|
|
|
- QueryWrapper<Commercial> commercialQueryWrapper = new QueryWrapper<>();
|
|
|
- commercialQueryWrapper.eq("commercial_id",bo.getCommercialId());
|
|
|
- Commercial commercial = commercialMapper.selectOne(commercialQueryWrapper);
|
|
|
- if (commercial == null)
|
|
|
- return -2;
|
|
|
Map<String,Object> params = Dict.create()
|
|
|
.set("appkey",bo.getAppkey())
|
|
|
- .set("commercialId",bo.getCommercialId())
|
|
|
.set("goodsId",bo.getGoodsId())
|
|
|
.set("goodsImg",bo.getGoodsImg())
|
|
|
.set("goodsName",bo.getGoodsName())
|
|
@@ -76,7 +70,7 @@ public class PlanServiceImpl implements PlanService {
|
|
|
if (!SignUtil.verify(params,app.getAppSecret()))
|
|
|
return -3;
|
|
|
// 插入广告计划
|
|
|
- Plan plan = new Plan(commercial,app,bo);
|
|
|
+ Plan plan = new Plan(app,bo);
|
|
|
planMapper.insert(plan);
|
|
|
// 插入广告计划明细
|
|
|
for (PlanItemAddBo itemAddBo : bo.getItems()) {
|