|
|
@ -6,6 +6,7 @@ import com.epmet.commons.tools.utils.Result; |
|
|
|
import com.epmet.commons.tools.validator.ValidatorUtils; |
|
|
|
import com.epmet.datareport.service.evaluationindex.screen.KcScreenService; |
|
|
|
import com.epmet.dto.result.issue.IssueGridTotalRankDTO; |
|
|
|
import com.epmet.dto.result.project.*; |
|
|
|
import com.epmet.evaluationindex.screen.dto.form.GroupTopicShiftIssueRatioRankFormDTO; |
|
|
|
import com.epmet.evaluationindex.screen.dto.form.GroupUserCountRankFormDTO; |
|
|
|
import com.epmet.evaluationindex.screen.dto.form.HeartVolunteerrankFormDTO; |
|
|
@ -219,5 +220,71 @@ public class KcScreenController { |
|
|
|
return new Result<List<GroupTopicShiftIssueRatioRankResultDTO>>().ok(kcScreenService.groupTopicShiftIssueRatioRank(formDTO)); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* 项目各类总数汇总 |
|
|
|
* @param externalAppRequestParam |
|
|
|
* @return |
|
|
|
*/ |
|
|
|
@ExternalAppRequestAuth |
|
|
|
@PostMapping("project/summary") |
|
|
|
public Result<ProjectSummaryResultDTO> getProjectSummary(ExternalAppRequestParam externalAppRequestParam){ |
|
|
|
//String customerId = "2fe0065f70ca0e23ce4c26fca5f1d933";
|
|
|
|
String customerId = externalAppRequestParam.getCustomerId(); |
|
|
|
return new Result<ProjectSummaryResultDTO>().ok(kcScreenService.getProjectSummary(customerId)); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* 项目分析-网格下项目数量排名 |
|
|
|
* @param externalAppRequestParam |
|
|
|
* @return |
|
|
|
*/ |
|
|
|
@ExternalAppRequestAuth |
|
|
|
@PostMapping("project/gridcountrank") |
|
|
|
public Result<GridProjectCountRankResultDTO> getProjectGridCountRank(ExternalAppRequestParam externalAppRequestParam){ |
|
|
|
//String customerId = "2fe0065f70ca0e23ce4c26fca5f1d933";
|
|
|
|
String customerId = externalAppRequestParam.getCustomerId(); |
|
|
|
return new Result<GridProjectCountRankResultDTO>().ok(kcScreenService.getGridProjectCountRank(customerId)); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* 项目分析-项目类别 |
|
|
|
* @param externalAppRequestParam |
|
|
|
* @return |
|
|
|
*/ |
|
|
|
@ExternalAppRequestAuth |
|
|
|
@PostMapping("project/categoryanalysis") |
|
|
|
public Result<List<ProjectCategoryAnalysisResultDTO>> getProjectCategoryAnalysis(ExternalAppRequestParam externalAppRequestParam){ |
|
|
|
//String customerId = "2fe0065f70ca0e23ce4c26fca5f1d933";
|
|
|
|
String customerId = externalAppRequestParam.getCustomerId(); |
|
|
|
return new Result<List<ProjectCategoryAnalysisResultDTO>>().ok(kcScreenService.getProjectCategoryAnalysis(customerId)); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* 网格项目平均结案时间 |
|
|
|
* @param externalAppRequestParam |
|
|
|
* @return |
|
|
|
*/ |
|
|
|
@ExternalAppRequestAuth |
|
|
|
@PostMapping("project/avgclosedtimeanalysis") |
|
|
|
public Result<List<ProjectAvgClosedTimeResultDTO>> getGridProjectAvgClosedTimeAnalysis(ExternalAppRequestParam externalAppRequestParam){ |
|
|
|
//String customerId = "2fe0065f70ca0e23ce4c26fca5f1d933";
|
|
|
|
String customerId = externalAppRequestParam.getCustomerId(); |
|
|
|
return new Result<List<ProjectAvgClosedTimeResultDTO>>().ok(kcScreenService.getGridProjectAvgClosedTimeAnalysis(customerId)); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* 项目分析-居民满意度 |
|
|
|
* @param externalAppRequestParam |
|
|
|
* @return |
|
|
|
*/ |
|
|
|
//@ExternalAppRequestAuth
|
|
|
|
@PostMapping("project/statis") |
|
|
|
public Result<ProjectSatisfaction> getProjectSatisfactionAnalyze(ExternalAppRequestParam externalAppRequestParam){ |
|
|
|
String customerId = "2fe0065f70ca0e23ce4c26fca5f1d933"; |
|
|
|
//String customerId = externalAppRequestParam.getCustomerId();
|
|
|
|
return new Result<ProjectSatisfaction>().ok(kcScreenService.getProjectSatisfactionAnalyze(customerId)); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|