|
@@ -40,6 +40,7 @@ public class KuaiShouUpdateServiceImpl implements IKuaiShouUpdateService {
|
|
@Autowired
|
|
@Autowired
|
|
private KuaiShouCampaignStatusMapper campaignStatusMapper;
|
|
private KuaiShouCampaignStatusMapper campaignStatusMapper;
|
|
|
|
|
|
|
|
+
|
|
@Override
|
|
@Override
|
|
public Map<String, Object> updateCampaign(String token, Long advertiserId, Long campaignId, Long dayBudget, String loginId) {
|
|
public Map<String, Object> updateCampaign(String token, Long advertiserId, Long campaignId, Long dayBudget, String loginId) {
|
|
Map<String, Object> returnMap = new HashMap<>();
|
|
Map<String, Object> returnMap = new HashMap<>();
|
|
@@ -116,6 +117,7 @@ public class KuaiShouUpdateServiceImpl implements IKuaiShouUpdateService {
|
|
*/
|
|
*/
|
|
@Autowired
|
|
@Autowired
|
|
private IKuaiShouGroupService groupService;
|
|
private IKuaiShouGroupService groupService;
|
|
|
|
+
|
|
@Override
|
|
@Override
|
|
public Map<String, Object> updateUnitDayBudget(String token, Long advertiserId, Long unitId, Long dayBudget, String loginId) {
|
|
public Map<String, Object> updateUnitDayBudget(String token, Long advertiserId, Long unitId, Long dayBudget, String loginId) {
|
|
Map<String, Object> returnMap = new HashMap<>();
|
|
Map<String, Object> returnMap = new HashMap<>();
|
|
@@ -591,11 +593,11 @@ public class KuaiShouUpdateServiceImpl implements IKuaiShouUpdateService {
|
|
if (!Check.isNull(resultJson)) {
|
|
if (!Check.isNull(resultJson)) {
|
|
Integer code = resultJson.getInteger("code");
|
|
Integer code = resultJson.getInteger("code");
|
|
if (code == 0) {
|
|
if (code == 0) {
|
|
- log.info("修改成功,accountId:{},unitId:{}",unitJson.getLong("advertiser_id"),unitJson.getLong("unit_id"));
|
|
|
|
|
|
+ log.info("修改成功,accountId:{},unitId:{}", unitJson.getLong("advertiser_id"), unitJson.getLong("unit_id"));
|
|
|
|
|
|
} else {
|
|
} else {
|
|
- log.info("修改失败,accountId:{},unitId:{}",unitJson.getLong("advertiser_id"),unitJson.getLong("unit_id"));
|
|
|
|
- log.info("失败原因:{}",resultJson);
|
|
|
|
|
|
+ log.info("修改失败,accountId:{},unitId:{}", unitJson.getLong("advertiser_id"), unitJson.getLong("unit_id"));
|
|
|
|
+ log.info("失败原因:{}", resultJson);
|
|
|
|
|
|
returnJson.put("code", -1);
|
|
returnJson.put("code", -1);
|
|
returnJson.put("message", resultJson.getString("message"));
|
|
returnJson.put("message", resultJson.getString("message"));
|
|
@@ -633,6 +635,11 @@ public class KuaiShouUpdateServiceImpl implements IKuaiShouUpdateService {
|
|
Integer code = resultJson.getInteger("code");
|
|
Integer code = resultJson.getInteger("code");
|
|
if (code == 0) {
|
|
if (code == 0) {
|
|
log.info("修改成功,accountId:{},creativeId:{}", creativeJson.getLong("advertiser_id"), creativeJson.getLong("creative_id"));
|
|
log.info("修改成功,accountId:{},creativeId:{}", creativeJson.getLong("advertiser_id"), creativeJson.getLong("creative_id"));
|
|
|
|
+
|
|
|
|
+ Map<String, Object> deleteMap = new HashMap<>();
|
|
|
|
+
|
|
|
|
+ deleteMap.put("creative_id", creativeJson.getLong("creative_id"));
|
|
|
|
+ creativeMapper.deleteByMap(deleteMap);
|
|
} else {
|
|
} else {
|
|
log.info("修改失败,accountId:{},creativeId:{},原因:{}", creativeJson.getLong("advertiser_id"), creativeJson.getLong("creative_id"), resultJson.getString("message"));
|
|
log.info("修改失败,accountId:{},creativeId:{},原因:{}", creativeJson.getLong("advertiser_id"), creativeJson.getLong("creative_id"), resultJson.getString("message"));
|
|
|
|
|