|
@@ -2,6 +2,7 @@ package org.jeecg.modules.system.controller;
|
|
|
|
|
|
import cn.com.ctop.common.module.entity.MaterialInfo;
|
|
|
import cn.com.ctop.performanceappraisal.entity.Performance;
|
|
|
+import cn.com.ctop.userefficientvideomap.entity.AccountDTO;
|
|
|
import cn.com.ctop.userefficientvideomap.entity.DesignMaterialInfo;
|
|
|
import cn.com.ctop.userefficientvideomap.entity.PerformanceTimeDTO;
|
|
|
import cn.com.ctop.userefficientvideomap.entity.UserDto2;
|
|
@@ -329,6 +330,66 @@ public class PerformanceController2 {
|
|
|
return result;
|
|
|
}
|
|
|
|
|
|
+ @AutoLog(value = "获取快手优化师绩效时时数据接口")
|
|
|
+ @ApiOperation(value = "获取快手优化师绩效时时数据接口", notes = "获取快手优化师绩效时时数据接口")
|
|
|
+ @PostMapping(value = "/kuaishouYouhuaPerformanceInfoNow")
|
|
|
+ public Result<List<UserDto2>> kuaishouYouhuaPerformanceInfoNow(HttpServletRequest req) {
|
|
|
+ Result<List<UserDto2>> result = new Result<List<UserDto2>>();
|
|
|
+ List<UserDto2> userDto2List = performanceService.kuaishouYouhuaPerformanceInfoNow();
|
|
|
+ result.setSuccess(true);
|
|
|
+ result.setResult(userDto2List);
|
|
|
+ return result;
|
|
|
+ }
|
|
|
+
|
|
|
+ @AutoLog(value = "获取头条优化师绩效时时数据接口")
|
|
|
+ @ApiOperation(value = "获取头条优化师绩效时时数据接口", notes = "获取头条优化师绩效时时数据接口")
|
|
|
+ @PostMapping(value = "/toutiaoYouhuaPerformanceInfoNow")
|
|
|
+ public Result<List<UserDto2>> toutiaoYouhuaPerformanceInfoNow(HttpServletRequest req) {
|
|
|
+ Result<List<UserDto2>> result = new Result<List<UserDto2>>();
|
|
|
+ List<UserDto2> userDto2List = performanceService.toutiaoYouhuaPerformanceInfoNow();
|
|
|
+ result.setSuccess(true);
|
|
|
+ result.setResult(userDto2List);
|
|
|
+ return result;
|
|
|
+ }
|
|
|
+
|
|
|
+ @AutoLog(value = "获取快手优化师所属账号信息")
|
|
|
+ @ApiOperation(value = "获取快手优化师所属账号信息", notes = "获取快手优化师所属账号信息")
|
|
|
+ @PostMapping(value = "/getKuaiShouYouhuaAccountsList")
|
|
|
+ public Result<List<AccountDTO>> getKuaiShouYouhuaAccountsList(@RequestBody PerformanceTimeDTO dto, HttpServletRequest req) {
|
|
|
+ Result<List<AccountDTO>> result = new Result<>();
|
|
|
+ String userId = dto.getUserId();
|
|
|
+ Integer year = dto.getYear();
|
|
|
+ Integer quarter = dto.getQuarter();
|
|
|
+ Integer appType = dto.getAppType();
|
|
|
+ if(userId==null || appType == null){
|
|
|
+ result.setSuccess(false);
|
|
|
+ result.setMessage("userId和appType不能为空");
|
|
|
+ }
|
|
|
+ List<AccountDTO> accountDTOList = performanceService.getKuaiShouYouhuaAccountsList(userId, appType, year, quarter);
|
|
|
+ result.setSuccess(true);
|
|
|
+ result.setResult(accountDTOList);
|
|
|
+ return result;
|
|
|
+ }
|
|
|
+
|
|
|
+ @AutoLog(value = "获取头条优化师所属账号信息")
|
|
|
+ @ApiOperation(value = "获取头条优化师所属账号信息", notes = "获取头条优化师所属账号信息")
|
|
|
+ @PostMapping(value = "/getToutiaoYouhuaAccountsList")
|
|
|
+ public Result<List<AccountDTO>> getToutiaoYouhuaAccountsList(@RequestBody PerformanceTimeDTO dto, HttpServletRequest req) {
|
|
|
+ Result<List<AccountDTO>> result = new Result<>();
|
|
|
+ String userId = dto.getUserId();
|
|
|
+ Integer year = dto.getYear();
|
|
|
+ Integer quarter = dto.getQuarter();
|
|
|
+ Integer appType = dto.getAppType();
|
|
|
+ if(userId==null || appType == null){
|
|
|
+ result.setSuccess(false);
|
|
|
+ result.setMessage("userId和appType不能为空");
|
|
|
+ }
|
|
|
+ List<AccountDTO> accountDTOList = performanceService.getToutiaoYouhuaAccountsList(userId, appType, year, quarter);
|
|
|
+ result.setSuccess(true);
|
|
|
+ result.setResult(accountDTOList);
|
|
|
+ return result;
|
|
|
+ }
|
|
|
+
|
|
|
@AutoLog(value = "获取头条绩效时时数据接口")
|
|
|
@ApiOperation(value = "获取头条绩效时时数据接口", notes = "获取头条绩效时时数据接口")
|
|
|
@PostMapping(value = "/toutiaoPerformanceInfoNow")
|