|
|
@ -18,7 +18,6 @@ import com.epmet.evaluationindex.screen.dto.form.ScreenProjectDetailFormDTO; |
|
|
|
import com.epmet.evaluationindex.screen.dto.form.ScreenProjectDistributionFormDTO; |
|
|
|
import com.epmet.evaluationindex.screen.dto.result.ProjectDetailResultDTO; |
|
|
|
import lombok.extern.slf4j.Slf4j; |
|
|
|
import org.apache.commons.lang3.StringUtils; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
import org.springframework.web.bind.annotation.*; |
|
|
|
|
|
|
@ -62,37 +61,26 @@ public class ScreenProjectController { |
|
|
|
*/ |
|
|
|
@PostMapping("projectdistribution") |
|
|
|
public Result projectDistribution(@RequestBody ScreenProjectDistributionFormDTO formDTO){ |
|
|
|
if (StringUtils.isBlank(formDTO.getAreaCode()) && StringUtils.isBlank(formDTO.getAgencyId())){ |
|
|
|
formDTO.setAreaCode("370124"); |
|
|
|
} |
|
|
|
ValidatorUtils.validateEntity(formDTO); |
|
|
|
return screenProjectService.projectDistribution(formDTO); |
|
|
|
} |
|
|
|
|
|
|
|
@PostMapping("projectdetailv2") |
|
|
|
public Result projectDetail(@RequestBody ScreenProjectDetailFormDTO formDTO){ |
|
|
|
return screenProjectService.projectDistributionDetail(formDTO); |
|
|
|
} |
|
|
|
/** |
|
|
|
* 【事件分析】类型分析 |
|
|
|
* @author zhaoqifeng |
|
|
|
* @date 2021/2/23 15:37 |
|
|
|
* @param customerId |
|
|
|
* @Description 中央区事件分析-项目详情接口 |
|
|
|
* @param formDTO |
|
|
|
* @return com.epmet.commons.tools.utils.Result<java.util.List<com.epmet.dto.result.screen.CategoryAnalysisResultDTO>> |
|
|
|
* @return com.epmet.commons.tools.utils.Result |
|
|
|
* @Author liushaowen |
|
|
|
* @Date 2021/2/24 16:10 |
|
|
|
*/ |
|
|
|
@PostMapping("category-analysis") |
|
|
|
public Result<List<CategoryAnalysisResultDTO>> categoryAnalysis(@RequestHeader("CustomerId") String customerId, |
|
|
|
@RequestBody CategoryAnalysisFormDTO formDTO) { |
|
|
|
log.info("===================customerId"+customerId); |
|
|
|
ValidatorUtils.validateEntity(formDTO, CategoryAnalysisFormDTO.CategoryAnalysis.class); |
|
|
|
return new Result<List<CategoryAnalysisResultDTO>>().ok(screenProjectService.categoryAnalysis(customerId, formDTO)); |
|
|
|
@PostMapping("projectdetailv2") |
|
|
|
public Result projectDetail(@RequestBody ScreenProjectDetailFormDTO formDTO){ |
|
|
|
return screenProjectService.projectDistributionDetail(formDTO); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
* @param customerId |
|
|
|
* @param formDTO |
|
|
|
* @description 【事件分析】数量统计查询 平阴大屏 |
|
|
|
* @description 1、【事件分析】数量统计查询 平阴大屏 |
|
|
|
**/ |
|
|
|
@PostMapping("queryquantity") |
|
|
|
public Result<ProjectQuantityResultDTO> queryQuantity(@RequestHeader("CustomerId") String customerId, @RequestBody ScreenCommonFormDTO formDTO){ |
|
|
@ -104,7 +92,7 @@ public class ScreenProjectController { |
|
|
|
* @param customerId |
|
|
|
* @param formDTO |
|
|
|
* @author yinzuomei |
|
|
|
* @description 近12个月【事件分析】月度数量分析 平阴大屏 |
|
|
|
* @description 2、近12个月【事件分析】月度数量分析 平阴大屏 |
|
|
|
**/ |
|
|
|
@PostMapping("queryquantity-monthly") |
|
|
|
public Result<QueryQuantityMonthlyResultDTO> queryQuantityMonthly(@RequestHeader("CustomerId") String customerId, @RequestBody QueryQuantityMonthlyFormDTO formDTO) { |
|
|
@ -117,7 +105,7 @@ public class ScreenProjectController { |
|
|
|
* @param customerId |
|
|
|
* @param formDTO |
|
|
|
* @author yinzuomei |
|
|
|
* @description 【事件分析】效率分析 平阴大屏 |
|
|
|
* @description 3、【事件分析】效率分析 平阴大屏 |
|
|
|
**/ |
|
|
|
@PostMapping("efficiency-analysis") |
|
|
|
public Result<List<EfficiencyAnalysisResultDTO>> efficiencyAnalysis(@RequestHeader("CustomerId") String customerId, @RequestBody EfficiencyAnalysisFormDTO formDTO){ |
|
|
@ -126,4 +114,19 @@ public class ScreenProjectController { |
|
|
|
return new Result<List<EfficiencyAnalysisResultDTO>>().ok(projectOrgDailyService.efficiencyAnalysis(formDTO)); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* 【事件分析】类型分析 |
|
|
|
* @author zhaoqifeng |
|
|
|
* @date 2021/2/23 15:37 |
|
|
|
* @param customerId |
|
|
|
* @param formDTO 【事件类型分析】NEI接口地址: https://nei.netease.com/interface/detail/?pid=57068&id=346721
|
|
|
|
* @return com.epmet.commons.tools.utils.Result<java.util.List<com.epmet.dto.result.screen.CategoryAnalysisResultDTO>> |
|
|
|
*/ |
|
|
|
@PostMapping("category-analysis") |
|
|
|
public Result<List<CategoryAnalysisResultDTO>> categoryAnalysis(@RequestHeader("CustomerId") String customerId, |
|
|
|
@RequestBody CategoryAnalysisFormDTO formDTO) { |
|
|
|
log.info("===================customerId"+customerId); |
|
|
|
ValidatorUtils.validateEntity(formDTO, CategoryAnalysisFormDTO.CategoryAnalysis.class); |
|
|
|
return new Result<List<CategoryAnalysisResultDTO>>().ok(screenProjectService.categoryAnalysis(customerId, formDTO)); |
|
|
|
} |
|
|
|
} |
|
|
|