|
@@ -20,11 +20,13 @@ import org.jeecg.modules.bytedance.advertise.vo.AdConvertQueryVo;
|
|
|
import org.jeecg.modules.bytedance.advertise.vo.AdGroupSearchVo;
|
|
|
import org.jeecg.modules.bytedance.advertise.vo.PlanSearchVo;
|
|
|
import org.jeecg.modules.bytedance.common.constant.BytedanceConstant;
|
|
|
+import org.jeecg.modules.bytedance.common.entity.BytedanceOperationLog;
|
|
|
import org.jeecg.modules.bytedance.common.entity.CtopOauthToken;
|
|
|
import org.jeecg.modules.bytedance.common.entity.MaterialImageInfo;
|
|
|
import org.jeecg.modules.bytedance.common.service.ICtopOauthTokenService;
|
|
|
import org.jeecg.modules.bytedance.common.service.IMaterialImageInfoService;
|
|
|
import org.jeecg.modules.bytedance.common.service.IUserAllocationService;
|
|
|
+import org.jeecg.modules.bytedance.common.service.impl.BytedanceOperationLogServiceImpl;
|
|
|
import org.jeecg.modules.bytedance.common.utils.*;
|
|
|
import org.jeecg.modules.system.service.ISysRoleService;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
@@ -67,6 +69,9 @@ public class AiBytedanceAdvertiserStrategyController {
|
|
|
@Autowired
|
|
|
private IUserAllocationService userAllocationService;
|
|
|
|
|
|
+ @Autowired
|
|
|
+ private BytedanceOperationLogServiceImpl bytedanceOperationLogService;
|
|
|
+
|
|
|
/**
|
|
|
* 分页列表查询
|
|
|
* @param aiBytedanceAdvertiserStrategy
|
|
@@ -181,6 +186,9 @@ public class AiBytedanceAdvertiserStrategyController {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ //当前修改用户id -添加操作日志使用
|
|
|
+ String operationUserId = aiBytedanceAdvertiserStrategy.getUserId();
|
|
|
+
|
|
|
//不修改用户id
|
|
|
aiBytedanceAdvertiserStrategy.setUserId(null);
|
|
|
//商品卖点
|
|
@@ -207,6 +215,15 @@ public class AiBytedanceAdvertiserStrategyController {
|
|
|
return Result.errorMsg(resultBudget.getMessage());
|
|
|
}*/
|
|
|
|
|
|
+ //添加修改记录
|
|
|
+ BytedanceOperationLog bytedanceOperationLog = new BytedanceOperationLog();
|
|
|
+ bytedanceOperationLog.setOldData(aiBytedanceAdvertiserStrategyEntity);
|
|
|
+ bytedanceOperationLog.setNewData(aiBytedanceAdvertiserStrategy);
|
|
|
+ bytedanceOperationLog.setOperationType("头条账户配置-修改");
|
|
|
+ bytedanceOperationLog.setOperationContent("修改账户配置:"+aiBytedanceAdvertiserStrategy.getAccountId());
|
|
|
+ bytedanceOperationLog.setCreateById(operationUserId);
|
|
|
+ bytedanceOperationLog.setCreateTime(new Date());
|
|
|
+ bytedanceOperationLogService.save(bytedanceOperationLog);
|
|
|
}
|
|
|
return Result.successMsg("修改成功!", null);
|
|
|
|