|
|
@ -3,13 +3,13 @@ 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.ScreenProjectService; |
|
|
|
import com.epmet.evaluationindex.screen.dto.form.ScreenProjectDetailFormDTO; |
|
|
|
import com.epmet.evaluationindex.screen.dto.form.ScreenProjectDistributionFormDTO; |
|
|
|
import com.epmet.dto.form.screen.CategoryAnalysisFormDTO; |
|
|
|
import com.epmet.dto.result.screen.CategoryAnalysisResultDTO; |
|
|
|
import com.epmet.evaluationindex.screen.dto.form.ProjectDetailFormDTO; |
|
|
|
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 oracle.jdbc.proxy.annotation.Post; |
|
|
|
import lombok.extern.slf4j.Slf4j; |
|
|
|
import org.apache.commons.lang3.StringUtils; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
import org.springframework.web.bind.annotation.*; |
|
|
@ -22,6 +22,7 @@ import java.util.List; |
|
|
|
* @author yinzuomei@elink-cn.com |
|
|
|
* @date 2020/8/18 10:16 |
|
|
|
*/ |
|
|
|
@Slf4j |
|
|
|
@RestController |
|
|
|
@RequestMapping("/screen/project") |
|
|
|
public class ScreenProjectController { |
|
|
@ -71,6 +72,7 @@ public class ScreenProjectController { |
|
|
|
@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)); |
|
|
|
} |
|
|
|