|
@@ -147,9 +147,18 @@ public class BytedanceReportController {
|
|
map.put("ad_id",adId);
|
|
map.put("ad_id",adId);
|
|
map.put("bid",bid);
|
|
map.put("bid",bid);
|
|
listMap.add(map);
|
|
listMap.add(map);
|
|
- return marketingService.updatePlanBid(token,accountId,listMap);
|
|
|
|
|
|
+ Result result = marketingService.updatePlanBid(token,accountId,listMap);
|
|
|
|
+ if (!result.isSuccess()){
|
|
|
|
+ return Result.errorMsg(result.getMessage());
|
|
|
|
+ }
|
|
|
|
+ ByteDanceAdvertisePlan byteDanceAdvertisePlan = new ByteDanceAdvertisePlan();
|
|
|
|
+ byteDanceAdvertisePlan.setId(Long.valueOf(adId));
|
|
|
|
+ byteDanceAdvertisePlan.setBid(bid);
|
|
|
|
+ //更新 表 定向包id
|
|
|
|
+ byteDanceAdvertisePlanService.updatePlanOrPackage(byteDanceAdvertisePlan);
|
|
|
|
+ return Result.successMsg("修改成功。",null);
|
|
}catch (Exception e){
|
|
}catch (Exception e){
|
|
- log.error("投放数据-获取花费和环比异常",e);
|
|
|
|
|
|
+ log.error("投放数据-更新计划出价异常",e);
|
|
return Result.error("请求失败,请联系开发人员!");
|
|
return Result.error("请求失败,请联系开发人员!");
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -187,7 +196,7 @@ public class BytedanceReportController {
|
|
}
|
|
}
|
|
ByteDanceAdvertisePlan byteDanceAdvertisePlan = new ByteDanceAdvertisePlan();
|
|
ByteDanceAdvertisePlan byteDanceAdvertisePlan = new ByteDanceAdvertisePlan();
|
|
byteDanceAdvertisePlan.setId(Long.valueOf(adId));
|
|
byteDanceAdvertisePlan.setId(Long.valueOf(adId));
|
|
- byteDanceAdvertisePlan.setAudiencePackageId(Integer.valueOf(audiencePackageId));
|
|
|
|
|
|
+ byteDanceAdvertisePlan.setAudiencePackageId(audiencePackageId);
|
|
//更新 表 定向包id
|
|
//更新 表 定向包id
|
|
byteDanceAdvertisePlanService.updatePlanOrPackage(byteDanceAdvertisePlan);
|
|
byteDanceAdvertisePlanService.updatePlanOrPackage(byteDanceAdvertisePlan);
|
|
}
|
|
}
|