|
|
@ -2,9 +2,17 @@ package com.epmet.datareport.controller.screen; |
|
|
|
|
|
|
|
import com.epmet.commons.tools.utils.Result; |
|
|
|
import com.epmet.commons.tools.validator.ValidatorUtils; |
|
|
|
import com.epmet.datareport.service.evaluationindex.screen.ScreenProjectOrgDailyService; |
|
|
|
import com.epmet.datareport.service.evaluationindex.screen.ScreenProjectQuantityOrgMonthlyService; |
|
|
|
import com.epmet.datareport.service.evaluationindex.screen.ScreenProjectService; |
|
|
|
import com.epmet.dto.form.screen.CategoryAnalysisFormDTO; |
|
|
|
import com.epmet.dto.form.screen.EfficiencyAnalysisFormDTO; |
|
|
|
import com.epmet.dto.form.screen.QueryQuantityMonthlyFormDTO; |
|
|
|
import com.epmet.dto.form.screen.ScreenCommonFormDTO; |
|
|
|
import com.epmet.dto.result.screen.CategoryAnalysisResultDTO; |
|
|
|
import com.epmet.dto.result.screen.EfficiencyAnalysisResultDTO; |
|
|
|
import com.epmet.dto.result.screen.ProjectQuantityResultDTO; |
|
|
|
import com.epmet.dto.result.screen.QueryQuantityMonthlyResultDTO; |
|
|
|
import com.epmet.evaluationindex.screen.dto.form.ProjectDetailFormDTO; |
|
|
|
import com.epmet.evaluationindex.screen.dto.form.ScreenProjectDetailFormDTO; |
|
|
|
import com.epmet.evaluationindex.screen.dto.form.ScreenProjectDistributionFormDTO; |
|
|
@ -29,7 +37,10 @@ public class ScreenProjectController { |
|
|
|
|
|
|
|
@Autowired |
|
|
|
private ScreenProjectService screenProjectService; |
|
|
|
|
|
|
|
@Autowired |
|
|
|
private ScreenProjectOrgDailyService projectOrgDailyService; |
|
|
|
@Autowired |
|
|
|
private ScreenProjectQuantityOrgMonthlyService projectQuantityOrgMonthlyService; |
|
|
|
/** |
|
|
|
* @Description 3、项目详情 |
|
|
|
* @param projectDetailFormDTO |
|
|
@ -77,4 +88,42 @@ public class ScreenProjectController { |
|
|
|
return new Result<List<CategoryAnalysisResultDTO>>().ok(screenProjectService.categoryAnalysis(customerId, formDTO)); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
* @param customerId |
|
|
|
* @param formDTO |
|
|
|
* @description 【事件分析】数量统计查询 平阴大屏 |
|
|
|
**/ |
|
|
|
@PostMapping("queryquantity") |
|
|
|
public Result<ProjectQuantityResultDTO> queryQuantity(@RequestHeader("CustomerId") String customerId, @RequestBody ScreenCommonFormDTO formDTO){ |
|
|
|
formDTO.setCustomerId(customerId); |
|
|
|
return new Result().ok(projectOrgDailyService.queryQuantity(formDTO)); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* @param customerId |
|
|
|
* @param formDTO |
|
|
|
* @author yinzuomei |
|
|
|
* @description 近12个月【事件分析】月度数量分析 平阴大屏 |
|
|
|
**/ |
|
|
|
@PostMapping("queryquantity-monthly") |
|
|
|
public Result<QueryQuantityMonthlyResultDTO> queryQuantityMonthly(@RequestHeader("CustomerId") String customerId, @RequestBody QueryQuantityMonthlyFormDTO formDTO) { |
|
|
|
formDTO.setCustomerId(customerId); |
|
|
|
ValidatorUtils.validateEntity(formDTO); |
|
|
|
return new Result<QueryQuantityMonthlyResultDTO>().ok(projectQuantityOrgMonthlyService.queryQuantityMonthly(formDTO)); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* @param customerId |
|
|
|
* @param formDTO |
|
|
|
* @author yinzuomei |
|
|
|
* @description 【事件分析】效率分析 平阴大屏 |
|
|
|
**/ |
|
|
|
@PostMapping("efficiency-analysis") |
|
|
|
public Result<List<EfficiencyAnalysisResultDTO>> efficiencyAnalysis(@RequestHeader("CustomerId") String customerId, @RequestBody EfficiencyAnalysisFormDTO formDTO){ |
|
|
|
formDTO.setCustomerId(customerId); |
|
|
|
ValidatorUtils.validateEntity(formDTO); |
|
|
|
return new Result<List<EfficiencyAnalysisResultDTO>>().ok(projectOrgDailyService.efficiencyAnalysis(formDTO)); |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|