|  |  | @ -1,8 +1,5 @@ | 
			
		
	
		
			
				
					|  |  |  | package com.epmet.datareport.controller.screen; | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  | import com.epmet.commons.extappauth.annotation.ExternalAppRequestAuth; | 
			
		
	
		
			
				
					|  |  |  | import com.epmet.commons.extappauth.annotation.InternalAppRequestAuth; | 
			
		
	
		
			
				
					|  |  |  | import com.epmet.commons.extappauth.bean.ExternalAppRequestParam; | 
			
		
	
		
			
				
					|  |  |  | import com.epmet.commons.tools.utils.Result; | 
			
		
	
		
			
				
					|  |  |  | import com.epmet.commons.tools.validator.ValidatorUtils; | 
			
		
	
		
			
				
					|  |  |  | import com.epmet.datareport.service.evaluationindex.screen.KcScreenService; | 
			
		
	
	
		
			
				
					|  |  | @ -17,10 +14,7 @@ import com.epmet.dto.result.issue.KcIssueSummary; | 
			
		
	
		
			
				
					|  |  |  | import com.epmet.dto.result.issue.KcPartiTrendResultDTO; | 
			
		
	
		
			
				
					|  |  |  | import com.epmet.evaluationindex.screen.dto.result.HomepageSummaryResultDTO; | 
			
		
	
		
			
				
					|  |  |  | import org.springframework.beans.factory.annotation.Autowired; | 
			
		
	
		
			
				
					|  |  |  | import org.springframework.web.bind.annotation.PostMapping; | 
			
		
	
		
			
				
					|  |  |  | import org.springframework.web.bind.annotation.RequestBody; | 
			
		
	
		
			
				
					|  |  |  | import org.springframework.web.bind.annotation.RequestMapping; | 
			
		
	
		
			
				
					|  |  |  | import org.springframework.web.bind.annotation.RestController; | 
			
		
	
		
			
				
					|  |  |  | import org.springframework.web.bind.annotation.*; | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  | import java.util.List; | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
	
		
			
				
					|  |  | @ -39,42 +33,37 @@ public class KcScreenController { | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |     /** | 
			
		
	
		
			
				
					|  |  |  |      *  @param externalAppRequestParam | 
			
		
	
		
			
				
					|  |  |  |      * @Description  首页-平台各类总数 | 
			
		
	
		
			
				
					|  |  |  |      * @author sun | 
			
		
	
		
			
				
					|  |  |  |      */ | 
			
		
	
		
			
				
					|  |  |  |     @PostMapping("homepage/summary") | 
			
		
	
		
			
				
					|  |  |  |     public Result<HomepageSummaryResultDTO> homepageSummary(ExternalAppRequestParam externalAppRequestParam){ | 
			
		
	
		
			
				
					|  |  |  |         return new Result<HomepageSummaryResultDTO>().ok(kcScreenService.homepageSummary(externalAppRequestParam)); | 
			
		
	
		
			
				
					|  |  |  |     public Result<HomepageSummaryResultDTO> homepageSummary(@RequestHeader("CustomerId") String customerId){ | 
			
		
	
		
			
				
					|  |  |  |         return new Result<HomepageSummaryResultDTO>().ok(kcScreenService.homepageSummary(customerId)); | 
			
		
	
		
			
				
					|  |  |  |     } | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |     /** | 
			
		
	
		
			
				
					|  |  |  |      *  @param externalAppRequestParam | 
			
		
	
		
			
				
					|  |  |  |      * @Description  公益互助-各类总数汇总 | 
			
		
	
		
			
				
					|  |  |  |      * @author sun | 
			
		
	
		
			
				
					|  |  |  |      */ | 
			
		
	
		
			
				
					|  |  |  |     @PostMapping("heart/summary") | 
			
		
	
		
			
				
					|  |  |  |     public Result<HeartSummaryResultDTO> heartSummary(ExternalAppRequestParam externalAppRequestParam){ | 
			
		
	
		
			
				
					|  |  |  |         return new Result<HeartSummaryResultDTO>().ok(kcScreenService.heartSummary(externalAppRequestParam)); | 
			
		
	
		
			
				
					|  |  |  |     public Result<HeartSummaryResultDTO> heartSummary(@RequestHeader("CustomerId") String customerId){ | 
			
		
	
		
			
				
					|  |  |  |         return new Result<HeartSummaryResultDTO>().ok(kcScreenService.heartSummary(customerId)); | 
			
		
	
		
			
				
					|  |  |  |     } | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |     /** | 
			
		
	
		
			
				
					|  |  |  |      *  @param externalAppRequestParam | 
			
		
	
		
			
				
					|  |  |  |      * @Description  公益互助-公益活动次数 | 
			
		
	
		
			
				
					|  |  |  |      * @author sun | 
			
		
	
		
			
				
					|  |  |  |      */ | 
			
		
	
		
			
				
					|  |  |  |     @PostMapping("heart/actcounttrend") | 
			
		
	
		
			
				
					|  |  |  |     public Result<HeartActcounttrendResultDTO> heartActcounttrend(ExternalAppRequestParam externalAppRequestParam){ | 
			
		
	
		
			
				
					|  |  |  |         return new Result<HeartActcounttrendResultDTO>().ok(kcScreenService.heartActcounttrend(externalAppRequestParam)); | 
			
		
	
		
			
				
					|  |  |  |     public Result<HeartActcounttrendResultDTO> heartActcounttrend(@RequestHeader("CustomerId") String customerId){ | 
			
		
	
		
			
				
					|  |  |  |         return new Result<HeartActcounttrendResultDTO>().ok(kcScreenService.heartActcounttrend(customerId)); | 
			
		
	
		
			
				
					|  |  |  |     } | 
			
		
	
		
			
				
					|  |  |  |     /** | 
			
		
	
		
			
				
					|  |  |  |      * 议题分析-各类总数 | 
			
		
	
		
			
				
					|  |  |  |      * @param externalAppRequestParam | 
			
		
	
		
			
				
					|  |  |  |      * @return | 
			
		
	
		
			
				
					|  |  |  |      */ | 
			
		
	
		
			
				
					|  |  |  |     @PostMapping("issue/summary") | 
			
		
	
		
			
				
					|  |  |  |     public Result getIssueSummary(ExternalAppRequestParam externalAppRequestParam) { | 
			
		
	
		
			
				
					|  |  |  |         String customerId = externalAppRequestParam.getCustomerId(); | 
			
		
	
		
			
				
					|  |  |  |     public Result getIssueSummary(@RequestHeader("CustomerId") String customerId) { | 
			
		
	
		
			
				
					|  |  |  |         //String customerId = "b09527201c4409e19d1dbc5e3c3429a1";
 | 
			
		
	
		
			
				
					|  |  |  |         KcIssueSummary issueSummary = kcScreenService.getIssueSummary(customerId); | 
			
		
	
		
			
				
					|  |  |  |         return new Result().ok(issueSummary); | 
			
		
	
	
		
			
				
					|  |  | @ -82,300 +71,247 @@ public class KcScreenController { | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |     /** | 
			
		
	
		
			
				
					|  |  |  |      * 参与趋势 | 
			
		
	
		
			
				
					|  |  |  |      * @param externalAppRequestParam | 
			
		
	
		
			
				
					|  |  |  |      * @return | 
			
		
	
		
			
				
					|  |  |  |      */ | 
			
		
	
		
			
				
					|  |  |  |     @PostMapping("issue/partitrend") | 
			
		
	
		
			
				
					|  |  |  |     public Result getIssuePartiTrend(ExternalAppRequestParam externalAppRequestParam) { | 
			
		
	
		
			
				
					|  |  |  |         String customerId = externalAppRequestParam.getCustomerId(); | 
			
		
	
		
			
				
					|  |  |  |         //String customerId = "b09527201c4409e19d1dbc5e3c3429a1";
 | 
			
		
	
		
			
				
					|  |  |  |     public Result getIssuePartiTrend(@RequestHeader("CustomerId") String customerId) { | 
			
		
	
		
			
				
					|  |  |  |         KcPartiTrendResultDTO trendResultDTO = kcScreenService.getIssuePartiTrend(customerId); | 
			
		
	
		
			
				
					|  |  |  |         return new Result().ok(trendResultDTO); | 
			
		
	
		
			
				
					|  |  |  |     } | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |     /** | 
			
		
	
		
			
				
					|  |  |  |      * 按照议题数量排名 | 
			
		
	
		
			
				
					|  |  |  |      * @param externalAppRequestParam | 
			
		
	
		
			
				
					|  |  |  |      * @return | 
			
		
	
		
			
				
					|  |  |  |      */ | 
			
		
	
		
			
				
					|  |  |  |     @PostMapping("issue/gridtotalrank") | 
			
		
	
		
			
				
					|  |  |  |     public Result getIssueGridTotalRank(ExternalAppRequestParam externalAppRequestParam) { | 
			
		
	
		
			
				
					|  |  |  |         String customerId = externalAppRequestParam.getCustomerId(); | 
			
		
	
		
			
				
					|  |  |  |         //String customerId = "2fe0065f70ca0e23ce4c26fca5f1d933";
 | 
			
		
	
		
			
				
					|  |  |  |     public Result getIssueGridTotalRank(@RequestHeader("CustomerId") String customerId) { | 
			
		
	
		
			
				
					|  |  |  |         return new Result().ok(kcScreenService.getIssueGridTotalRank(customerId)); | 
			
		
	
		
			
				
					|  |  |  |     } | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |     /** | 
			
		
	
		
			
				
					|  |  |  |      * 议题分析-审核效率排名 | 
			
		
	
		
			
				
					|  |  |  |      * @param externalAppRequestParam | 
			
		
	
		
			
				
					|  |  |  |      * @return | 
			
		
	
		
			
				
					|  |  |  |      */ | 
			
		
	
		
			
				
					|  |  |  |     @PostMapping("issue/avgaudittimerank") | 
			
		
	
		
			
				
					|  |  |  |     public Result getAvgAuditTimeRank(ExternalAppRequestParam externalAppRequestParam) { | 
			
		
	
		
			
				
					|  |  |  |         String customerId = externalAppRequestParam.getCustomerId(); | 
			
		
	
		
			
				
					|  |  |  |         //String customerId = "2fe0065f70ca0e23ce4c26fca5f1d933";
 | 
			
		
	
		
			
				
					|  |  |  |     public Result getAvgAuditTimeRank(@RequestHeader("CustomerId") String customerId) { | 
			
		
	
		
			
				
					|  |  |  |         return new Result().ok(kcScreenService.getAvgAuditTimeRank(customerId)); | 
			
		
	
		
			
				
					|  |  |  |     } | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |     /** | 
			
		
	
		
			
				
					|  |  |  |      * 议题分析-议题效率 | 
			
		
	
		
			
				
					|  |  |  |      * @param externalAppRequestParam | 
			
		
	
		
			
				
					|  |  |  |      * @return | 
			
		
	
		
			
				
					|  |  |  |      */ | 
			
		
	
		
			
				
					|  |  |  |     @PostMapping("issue/effective") | 
			
		
	
		
			
				
					|  |  |  |     public Result getIssueEffective(ExternalAppRequestParam externalAppRequestParam) { | 
			
		
	
		
			
				
					|  |  |  |         String customerId = externalAppRequestParam.getCustomerId(); | 
			
		
	
		
			
				
					|  |  |  |     public Result getIssueEffective(@RequestHeader("CustomerId") String customerId) { | 
			
		
	
		
			
				
					|  |  |  |         //String customerId = "2fe0065f70ca0e23ce4c26fca5f1d933";
 | 
			
		
	
		
			
				
					|  |  |  |         return new Result().ok(kcScreenService.getIssueEffective(customerId)); | 
			
		
	
		
			
				
					|  |  |  |     } | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |     /** | 
			
		
	
		
			
				
					|  |  |  |      *  @param externalAppRequestParam | 
			
		
	
		
			
				
					|  |  |  |      * @Description  公益互助-志愿者画像 | 
			
		
	
		
			
				
					|  |  |  |      * @author sun | 
			
		
	
		
			
				
					|  |  |  |      */ | 
			
		
	
		
			
				
					|  |  |  |     @PostMapping("heart/volunteerportrayal") | 
			
		
	
		
			
				
					|  |  |  |     public Result<HeartVolunteerportrayalResultDTO> heartVolunteerportrayal(ExternalAppRequestParam externalAppRequestParam){ | 
			
		
	
		
			
				
					|  |  |  |         return new Result<HeartVolunteerportrayalResultDTO>().ok(kcScreenService.heartVolunteerportrayal(externalAppRequestParam)); | 
			
		
	
		
			
				
					|  |  |  |     public Result<HeartVolunteerportrayalResultDTO> heartVolunteerportrayal(@RequestHeader("CustomerId") String customerId){ | 
			
		
	
		
			
				
					|  |  |  |         return new Result<HeartVolunteerportrayalResultDTO>().ok(kcScreenService.heartVolunteerportrayal(customerId)); | 
			
		
	
		
			
				
					|  |  |  |     } | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |     /** | 
			
		
	
		
			
				
					|  |  |  |      *  @param externalAppRequestParam | 
			
		
	
		
			
				
					|  |  |  |      * @Description  公益互助-个人(志愿者)公益时长排名 | 
			
		
	
		
			
				
					|  |  |  |      * @author sun | 
			
		
	
		
			
				
					|  |  |  |      */ | 
			
		
	
		
			
				
					|  |  |  |     @PostMapping("heart/volunteerrank") | 
			
		
	
		
			
				
					|  |  |  |     public Result<List<HeartVolunteerrankResultDTO>> heartVolunteerrank(ExternalAppRequestParam externalAppRequestParam, @RequestBody HeartVolunteerrankFormDTO formDTO){ | 
			
		
	
		
			
				
					|  |  |  |     public Result<List<HeartVolunteerrankResultDTO>> heartVolunteerrank(@RequestHeader("CustomerId") String customerId, @RequestBody HeartVolunteerrankFormDTO formDTO){ | 
			
		
	
		
			
				
					|  |  |  |         ValidatorUtils.validateEntity(formDTO, HeartVolunteerrankFormDTO.AddUserInternalGroup.class); | 
			
		
	
		
			
				
					|  |  |  |         formDTO.setCustomerId(externalAppRequestParam.getCustomerId()); | 
			
		
	
		
			
				
					|  |  |  |         formDTO.setCustomerId(customerId); | 
			
		
	
		
			
				
					|  |  |  |         return new Result<List<HeartVolunteerrankResultDTO>>().ok(kcScreenService.heartVolunteerrank(formDTO)); | 
			
		
	
		
			
				
					|  |  |  |     } | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |     /** | 
			
		
	
		
			
				
					|  |  |  |      *  @param externalAppRequestParam | 
			
		
	
		
			
				
					|  |  |  |      * @Description  邻里党群-各类总数 | 
			
		
	
		
			
				
					|  |  |  |      * @author sun | 
			
		
	
		
			
				
					|  |  |  |      */ | 
			
		
	
		
			
				
					|  |  |  |     @PostMapping("group/summary") | 
			
		
	
		
			
				
					|  |  |  |     public Result<GroupSummaryResultDTO> groupSummary(ExternalAppRequestParam externalAppRequestParam){ | 
			
		
	
		
			
				
					|  |  |  |         return new Result<GroupSummaryResultDTO>().ok(kcScreenService.groupSummary(externalAppRequestParam)); | 
			
		
	
		
			
				
					|  |  |  |     public Result<GroupSummaryResultDTO> groupSummary(@RequestHeader("CustomerId") String customerId){ | 
			
		
	
		
			
				
					|  |  |  |         return new Result<GroupSummaryResultDTO>().ok(kcScreenService.groupSummary(customerId)); | 
			
		
	
		
			
				
					|  |  |  |     } | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |     /** | 
			
		
	
		
			
				
					|  |  |  |      *  @param externalAppRequestParam | 
			
		
	
		
			
				
					|  |  |  |      * @Description  邻里党群-话题参与趋势 | 
			
		
	
		
			
				
					|  |  |  |      * @author sun | 
			
		
	
		
			
				
					|  |  |  |      */ | 
			
		
	
		
			
				
					|  |  |  |     @PostMapping("group/partitopictrend") | 
			
		
	
		
			
				
					|  |  |  |     public Result<GroupPartitopictrendResultDTO> groupPartitopictrend(ExternalAppRequestParam externalAppRequestParam){ | 
			
		
	
		
			
				
					|  |  |  |         return new Result<GroupPartitopictrendResultDTO>().ok(kcScreenService.groupPartitopictrend(externalAppRequestParam)); | 
			
		
	
		
			
				
					|  |  |  |     public Result<GroupPartitopictrendResultDTO> groupPartitopictrend(@RequestHeader("CustomerId") String customerId){ | 
			
		
	
		
			
				
					|  |  |  |         return new Result<GroupPartitopictrendResultDTO>().ok(kcScreenService.groupPartitopictrend(customerId)); | 
			
		
	
		
			
				
					|  |  |  |     } | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |     /** | 
			
		
	
		
			
				
					|  |  |  |      *  @param externalAppRequestParam | 
			
		
	
		
			
				
					|  |  |  |      * @Description  邻里党群-社群数量排名 | 
			
		
	
		
			
				
					|  |  |  |      * @author sun | 
			
		
	
		
			
				
					|  |  |  |      */ | 
			
		
	
		
			
				
					|  |  |  |     @PostMapping("group/gridgroupcountrank") | 
			
		
	
		
			
				
					|  |  |  |     public Result<GroupGridgroupcountrankResultDTO> groupGridgroupcountrank(ExternalAppRequestParam externalAppRequestParam){ | 
			
		
	
		
			
				
					|  |  |  |         return new Result<GroupGridgroupcountrankResultDTO>().ok(kcScreenService.groupGridgroupcountrank(externalAppRequestParam)); | 
			
		
	
		
			
				
					|  |  |  |     public Result<GroupGridgroupcountrankResultDTO> groupGridgroupcountrank(@RequestHeader("CustomerId") String customerId){ | 
			
		
	
		
			
				
					|  |  |  |         return new Result<GroupGridgroupcountrankResultDTO>().ok(kcScreenService.groupGridgroupcountrank(customerId)); | 
			
		
	
		
			
				
					|  |  |  |     } | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |     /** | 
			
		
	
		
			
				
					|  |  |  |      *  @param externalAppRequestParam | 
			
		
	
		
			
				
					|  |  |  |      * @Description  邻里党群-社群数量排名 | 
			
		
	
		
			
				
					|  |  |  |      * @author sun | 
			
		
	
		
			
				
					|  |  |  |      */ | 
			
		
	
		
			
				
					|  |  |  |     @PostMapping("group/usercountrank") | 
			
		
	
		
			
				
					|  |  |  |     public Result<List<GroupUserCountRankResultDTO>> groupUserCountRank(ExternalAppRequestParam externalAppRequestParam, @RequestBody GroupUserCountRankFormDTO formDTO){ | 
			
		
	
		
			
				
					|  |  |  |     public Result<List<GroupUserCountRankResultDTO>> groupUserCountRank(@RequestHeader("CustomerId") String customerId, @RequestBody GroupUserCountRankFormDTO formDTO){ | 
			
		
	
		
			
				
					|  |  |  |         ValidatorUtils.validateEntity(formDTO, GroupUserCountRankFormDTO.AddUserInternalGroup.class); | 
			
		
	
		
			
				
					|  |  |  |         formDTO.setCustomerId(externalAppRequestParam.getCustomerId()); | 
			
		
	
		
			
				
					|  |  |  |         formDTO.setCustomerId(customerId); | 
			
		
	
		
			
				
					|  |  |  |         return new Result<List<GroupUserCountRankResultDTO>>().ok(kcScreenService.groupUserCountRank(formDTO)); | 
			
		
	
		
			
				
					|  |  |  |     } | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |     /** | 
			
		
	
		
			
				
					|  |  |  |      *  @param externalAppRequestParam | 
			
		
	
		
			
				
					|  |  |  |      * @Description  邻里党群-话题转化率排名 | 
			
		
	
		
			
				
					|  |  |  |      * @author sun | 
			
		
	
		
			
				
					|  |  |  |      */ | 
			
		
	
		
			
				
					|  |  |  |     @PostMapping("group/topicshiftissueratiorank") | 
			
		
	
		
			
				
					|  |  |  |     public Result<List<GroupTopicShiftIssueRatioRankResultDTO>> groupTopicShiftIssueRatioRank(ExternalAppRequestParam externalAppRequestParam, @RequestBody GroupTopicShiftIssueRatioRankFormDTO formDTO){ | 
			
		
	
		
			
				
					|  |  |  |     public Result<List<GroupTopicShiftIssueRatioRankResultDTO>> groupTopicShiftIssueRatioRank(@RequestHeader("CustomerId") String customerId, @RequestBody GroupTopicShiftIssueRatioRankFormDTO formDTO){ | 
			
		
	
		
			
				
					|  |  |  |         ValidatorUtils.validateEntity(formDTO, GroupTopicShiftIssueRatioRankFormDTO.AddUserInternalGroup.class); | 
			
		
	
		
			
				
					|  |  |  |         formDTO.setCustomerId(externalAppRequestParam.getCustomerId()); | 
			
		
	
		
			
				
					|  |  |  |         formDTO.setCustomerId(customerId); | 
			
		
	
		
			
				
					|  |  |  |         return new Result<List<GroupTopicShiftIssueRatioRankResultDTO>>().ok(kcScreenService.groupTopicShiftIssueRatioRank(formDTO)); | 
			
		
	
		
			
				
					|  |  |  |     } | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |     /** | 
			
		
	
		
			
				
					|  |  |  |      * 项目各类总数汇总 | 
			
		
	
		
			
				
					|  |  |  |      * @param externalAppRequestParam | 
			
		
	
		
			
				
					|  |  |  |      * @return | 
			
		
	
		
			
				
					|  |  |  |      */ | 
			
		
	
		
			
				
					|  |  |  |     @PostMapping("project/summary") | 
			
		
	
		
			
				
					|  |  |  |     public Result<ProjectSummaryResultDTO> getProjectSummary(ExternalAppRequestParam externalAppRequestParam){ | 
			
		
	
		
			
				
					|  |  |  |         //String customerId = "2fe0065f70ca0e23ce4c26fca5f1d933";
 | 
			
		
	
		
			
				
					|  |  |  |         String customerId = externalAppRequestParam.getCustomerId(); | 
			
		
	
		
			
				
					|  |  |  |     public Result<ProjectSummaryResultDTO> getProjectSummary(@RequestHeader("CustomerId") String customerId){ | 
			
		
	
		
			
				
					|  |  |  |         return new Result<ProjectSummaryResultDTO>().ok(kcScreenService.getProjectSummary(customerId)); | 
			
		
	
		
			
				
					|  |  |  |     } | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |     /** | 
			
		
	
		
			
				
					|  |  |  |      * 项目分析-网格下项目数量排名 | 
			
		
	
		
			
				
					|  |  |  |      * @param externalAppRequestParam | 
			
		
	
		
			
				
					|  |  |  |      * @return | 
			
		
	
		
			
				
					|  |  |  |      */ | 
			
		
	
		
			
				
					|  |  |  |     @PostMapping("project/gridcountrank") | 
			
		
	
		
			
				
					|  |  |  |     public Result<GridProjectCountRankResultDTO> getProjectGridCountRank(ExternalAppRequestParam externalAppRequestParam){ | 
			
		
	
		
			
				
					|  |  |  |         //String customerId = "2fe0065f70ca0e23ce4c26fca5f1d933";
 | 
			
		
	
		
			
				
					|  |  |  |         String customerId = externalAppRequestParam.getCustomerId(); | 
			
		
	
		
			
				
					|  |  |  |     public Result<GridProjectCountRankResultDTO> getProjectGridCountRank(@RequestHeader("CustomerId") String customerId){ | 
			
		
	
		
			
				
					|  |  |  |         return new Result<GridProjectCountRankResultDTO>().ok(kcScreenService.getGridProjectCountRank(customerId)); | 
			
		
	
		
			
				
					|  |  |  |     } | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |     /** | 
			
		
	
		
			
				
					|  |  |  |      * 项目分析-项目类别 | 
			
		
	
		
			
				
					|  |  |  |      * @param externalAppRequestParam | 
			
		
	
		
			
				
					|  |  |  |      * @return | 
			
		
	
		
			
				
					|  |  |  |      */ | 
			
		
	
		
			
				
					|  |  |  |     @PostMapping("project/categoryanalysis") | 
			
		
	
		
			
				
					|  |  |  |     public Result<List<ProjectCategoryAnalysisResultDTO>> getProjectCategoryAnalysis(ExternalAppRequestParam externalAppRequestParam){ | 
			
		
	
		
			
				
					|  |  |  |         //String customerId = "2fe0065f70ca0e23ce4c26fca5f1d933";
 | 
			
		
	
		
			
				
					|  |  |  |         String customerId = externalAppRequestParam.getCustomerId(); | 
			
		
	
		
			
				
					|  |  |  |     public Result<List<ProjectCategoryAnalysisResultDTO>> getProjectCategoryAnalysis(@RequestHeader("CustomerId") String customerId){ | 
			
		
	
		
			
				
					|  |  |  |         return new Result<List<ProjectCategoryAnalysisResultDTO>>().ok(kcScreenService.getProjectCategoryAnalysis(customerId)); | 
			
		
	
		
			
				
					|  |  |  |     } | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |     /** | 
			
		
	
		
			
				
					|  |  |  |      * 网格项目平均结案时间 | 
			
		
	
		
			
				
					|  |  |  |      * @param externalAppRequestParam | 
			
		
	
		
			
				
					|  |  |  |      * @return | 
			
		
	
		
			
				
					|  |  |  |      */ | 
			
		
	
		
			
				
					|  |  |  |     @PostMapping("project/avgclosedtimeanalysis") | 
			
		
	
		
			
				
					|  |  |  |     public Result<List<ProjectAvgClosedTimeResultDTO>> getGridProjectAvgClosedTimeAnalysis(ExternalAppRequestParam externalAppRequestParam){ | 
			
		
	
		
			
				
					|  |  |  |         //String customerId = "2fe0065f70ca0e23ce4c26fca5f1d933";
 | 
			
		
	
		
			
				
					|  |  |  |         String customerId = externalAppRequestParam.getCustomerId(); | 
			
		
	
		
			
				
					|  |  |  |     public Result<List<ProjectAvgClosedTimeResultDTO>> getGridProjectAvgClosedTimeAnalysis(@RequestHeader("CustomerId") String customerId){ | 
			
		
	
		
			
				
					|  |  |  |         return new Result<List<ProjectAvgClosedTimeResultDTO>>().ok(kcScreenService.getGridProjectAvgClosedTimeAnalysis(customerId)); | 
			
		
	
		
			
				
					|  |  |  |     } | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |     /** | 
			
		
	
		
			
				
					|  |  |  |      * 项目分析-居民满意度 | 
			
		
	
		
			
				
					|  |  |  |      * @param externalAppRequestParam | 
			
		
	
		
			
				
					|  |  |  |      * @return | 
			
		
	
		
			
				
					|  |  |  |      */ | 
			
		
	
		
			
				
					|  |  |  |     @PostMapping("project/statis") | 
			
		
	
		
			
				
					|  |  |  |     public Result<ProjectSatisfactionResultDTO> getProjectSatisfactionAnalyze(ExternalAppRequestParam externalAppRequestParam){ | 
			
		
	
		
			
				
					|  |  |  |         String customerId = externalAppRequestParam.getCustomerId(); | 
			
		
	
		
			
				
					|  |  |  |     public Result<ProjectSatisfactionResultDTO> getProjectSatisfactionAnalyze(@RequestHeader("CustomerId") String customerId){ | 
			
		
	
		
			
				
					|  |  |  |         return new Result<ProjectSatisfactionResultDTO>().ok(kcScreenService.getProjectSatisfactionAnalyze(customerId)); | 
			
		
	
		
			
				
					|  |  |  |     } | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |     /** | 
			
		
	
		
			
				
					|  |  |  |      * 用户-summary | 
			
		
	
		
			
				
					|  |  |  |      * @param externalAppRequestParam | 
			
		
	
		
			
				
					|  |  |  |      * @return | 
			
		
	
		
			
				
					|  |  |  |      */ | 
			
		
	
		
			
				
					|  |  |  |     @PostMapping("user/summary") | 
			
		
	
		
			
				
					|  |  |  |     public Result<UserSummaryResultDTO> getUserSummary(ExternalAppRequestParam externalAppRequestParam){ | 
			
		
	
		
			
				
					|  |  |  |         String customerId = externalAppRequestParam.getCustomerId(); | 
			
		
	
		
			
				
					|  |  |  |         //String customerId = "2fe0065f70ca0e23ce4c26fca5f1d933";
 | 
			
		
	
		
			
				
					|  |  |  |     public Result<UserSummaryResultDTO> getUserSummary(@RequestHeader("CustomerId") String customerId){ | 
			
		
	
		
			
				
					|  |  |  |         return new Result<UserSummaryResultDTO>().ok(kcScreenService.getUserSummary(customerId)); | 
			
		
	
		
			
				
					|  |  |  |     } | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |     /** | 
			
		
	
		
			
				
					|  |  |  |      * 用户量趋势 | 
			
		
	
		
			
				
					|  |  |  |      * @param externalAppRequestParam | 
			
		
	
		
			
				
					|  |  |  |      * @return | 
			
		
	
		
			
				
					|  |  |  |      */ | 
			
		
	
		
			
				
					|  |  |  |     @PostMapping("user/trend") | 
			
		
	
		
			
				
					|  |  |  |     public Result<KcUserTrendResultDTO> getUserTrend(ExternalAppRequestParam externalAppRequestParam){ | 
			
		
	
		
			
				
					|  |  |  |         String customerId = externalAppRequestParam.getCustomerId(); | 
			
		
	
		
			
				
					|  |  |  |     public Result<KcUserTrendResultDTO> getUserTrend(@RequestHeader("CustomerId") String customerId){ | 
			
		
	
		
			
				
					|  |  |  |         return new Result<KcUserTrendResultDTO>().ok(kcScreenService.getUserTrend(customerId)); | 
			
		
	
		
			
				
					|  |  |  |     } | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |     /** | 
			
		
	
		
			
				
					|  |  |  |      * 网格用户数量排名 | 
			
		
	
		
			
				
					|  |  |  |      * @param externalAppRequestParam | 
			
		
	
		
			
				
					|  |  |  |      * @return | 
			
		
	
		
			
				
					|  |  |  |      */ | 
			
		
	
		
			
				
					|  |  |  |     @PostMapping("user/griduserrank") | 
			
		
	
		
			
				
					|  |  |  |     public Result<KcUserRankResultDTO> getUserRank(ExternalAppRequestParam externalAppRequestParam){ | 
			
		
	
		
			
				
					|  |  |  |         String customerId = externalAppRequestParam.getCustomerId(); | 
			
		
	
		
			
				
					|  |  |  |     public Result<KcUserRankResultDTO> getUserRank(@RequestHeader("CustomerId") String customerId){ | 
			
		
	
		
			
				
					|  |  |  |         return new Result<KcUserRankResultDTO>().ok(kcScreenService.getUserRank(customerId)); | 
			
		
	
		
			
				
					|  |  |  |     } | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |     /** | 
			
		
	
		
			
				
					|  |  |  |      * 用户画像 | 
			
		
	
		
			
				
					|  |  |  |      * @param externalAppRequestParam | 
			
		
	
		
			
				
					|  |  |  |      * @return | 
			
		
	
		
			
				
					|  |  |  |      */ | 
			
		
	
		
			
				
					|  |  |  |     @PostMapping("user/userportrayal") | 
			
		
	
		
			
				
					|  |  |  |     public Result<KcUserPortrayalResultDTO> getUserPortrayal(ExternalAppRequestParam externalAppRequestParam){ | 
			
		
	
		
			
				
					|  |  |  |         String customerId = externalAppRequestParam.getCustomerId(); | 
			
		
	
		
			
				
					|  |  |  |     public Result<KcUserPortrayalResultDTO> getUserPortrayal(@RequestHeader("CustomerId") String customerId){ | 
			
		
	
		
			
				
					|  |  |  |         return new Result<KcUserPortrayalResultDTO>().ok(kcScreenService.getUserPortrayal(customerId)); | 
			
		
	
		
			
				
					|  |  |  |     } | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |     /** | 
			
		
	
		
			
				
					|  |  |  |      * 用户积分排名 | 
			
		
	
		
			
				
					|  |  |  |      * @param externalAppRequestParam | 
			
		
	
		
			
				
					|  |  |  |      * @return | 
			
		
	
		
			
				
					|  |  |  |      */ | 
			
		
	
		
			
				
					|  |  |  |     @PostMapping("user/pointsrank") | 
			
		
	
		
			
				
					|  |  |  |     public Result<KcUserPointRankResultDTO> getUserPointsRank(ExternalAppRequestParam externalAppRequestParam, | 
			
		
	
		
			
				
					|  |  |  |     public Result<KcUserPointRankResultDTO> getUserPointsRank(@RequestHeader("CustomerId") String customerId, | 
			
		
	
		
			
				
					|  |  |  |                                                               @RequestBody PageFormDTO form) { | 
			
		
	
		
			
				
					|  |  |  |         String customerId = externalAppRequestParam.getCustomerId(); | 
			
		
	
		
			
				
					|  |  |  |         return new Result<KcUserPointRankResultDTO>().ok(kcScreenService.getUserPointsRank(customerId, form.getPageNo(), form.getPageSize())); | 
			
		
	
		
			
				
					|  |  |  |     } | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |     /** | 
			
		
	
		
			
				
					|  |  |  |      * 党建声音-各类总数 | 
			
		
	
		
			
				
					|  |  |  |      * @param externalAppRequestParam | 
			
		
	
		
			
				
					|  |  |  |      * @return | 
			
		
	
		
			
				
					|  |  |  |      */ | 
			
		
	
		
			
				
					|  |  |  |     @PostMapping("news/summary") | 
			
		
	
		
			
				
					|  |  |  |     public Result<ScreenKcNewsSummaryResultDTO> getNewsSummary(ExternalAppRequestParam externalAppRequestParam){ | 
			
		
	
		
			
				
					|  |  |  |         String customerId = externalAppRequestParam.getCustomerId(); | 
			
		
	
		
			
				
					|  |  |  |     public Result<ScreenKcNewsSummaryResultDTO> getNewsSummary(@RequestHeader("CustomerId") String customerId){ | 
			
		
	
		
			
				
					|  |  |  |         return new Result<ScreenKcNewsSummaryResultDTO>().ok(kcScreenService.getNewsSummary(customerId)); | 
			
		
	
		
			
				
					|  |  |  |     } | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |     /** | 
			
		
	
		
			
				
					|  |  |  |      * 新闻阅读参与趋势 | 
			
		
	
		
			
				
					|  |  |  |      * @param externalAppRequestParam | 
			
		
	
		
			
				
					|  |  |  |      * @return | 
			
		
	
		
			
				
					|  |  |  |      */ | 
			
		
	
		
			
				
					|  |  |  |     @PostMapping("news/partitrend") | 
			
		
	
		
			
				
					|  |  |  |     public Result<ScreenKcNewsPartiTrendResultDTO> getNewsPartiTrend(ExternalAppRequestParam externalAppRequestParam){ | 
			
		
	
		
			
				
					|  |  |  |         String customerId = externalAppRequestParam.getCustomerId(); | 
			
		
	
		
			
				
					|  |  |  |     public Result<ScreenKcNewsPartiTrendResultDTO> getNewsPartiTrend(@RequestHeader("CustomerId") String customerId){ | 
			
		
	
		
			
				
					|  |  |  |         return new Result<ScreenKcNewsPartiTrendResultDTO>().ok(kcScreenService.getNewsPartiTrend(customerId)); | 
			
		
	
		
			
				
					|  |  |  |     } | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |     /** | 
			
		
	
		
			
				
					|  |  |  |      * 党建声音-分类的news数量 | 
			
		
	
		
			
				
					|  |  |  |      * @param externalAppRequestParam | 
			
		
	
		
			
				
					|  |  |  |      * @return | 
			
		
	
		
			
				
					|  |  |  |      */ | 
			
		
	
		
			
				
					|  |  |  |     @PostMapping("news/category") | 
			
		
	
		
			
				
					|  |  |  |     public Result<List<ScreenKcCategoryNewsCountResultDTO>> getNewsCountGroupByCategory(ExternalAppRequestParam externalAppRequestParam){ | 
			
		
	
		
			
				
					|  |  |  |         String customerId = externalAppRequestParam.getCustomerId(); | 
			
		
	
		
			
				
					|  |  |  |     public Result<List<ScreenKcCategoryNewsCountResultDTO>> getNewsCountGroupByCategory(@RequestHeader("CustomerId") String customerId){ | 
			
		
	
		
			
				
					|  |  |  |         return new Result<List<ScreenKcCategoryNewsCountResultDTO>>().ok(kcScreenService.getNewsCountOfCategory(customerId)); | 
			
		
	
		
			
				
					|  |  |  |     } | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |     /** | 
			
		
	
		
			
				
					|  |  |  |      * 党建声音-分类的用户参与数排行 | 
			
		
	
		
			
				
					|  |  |  |      * @param externalAppRequestParam | 
			
		
	
		
			
				
					|  |  |  |      * @return | 
			
		
	
		
			
				
					|  |  |  |      */ | 
			
		
	
		
			
				
					|  |  |  |     @PostMapping("news/userparticategoryrank") | 
			
		
	
		
			
				
					|  |  |  |     public Result<ScreenKcCategoryNewsRankResultDTO> getNewsPartiCategoryRank(ExternalAppRequestParam externalAppRequestParam){ | 
			
		
	
		
			
				
					|  |  |  |         String customerId = externalAppRequestParam.getCustomerId(); | 
			
		
	
		
			
				
					|  |  |  |     public Result<ScreenKcCategoryNewsRankResultDTO> getNewsPartiCategoryRank(@RequestHeader("CustomerId") String customerId){ | 
			
		
	
		
			
				
					|  |  |  |         return new Result<ScreenKcCategoryNewsRankResultDTO>().ok(kcScreenService.getNewsPartiCategoryRank(customerId)); | 
			
		
	
		
			
				
					|  |  |  |     } | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |     /** | 
			
		
	
		
			
				
					|  |  |  |      * 党建声音-热点新闻排行 | 
			
		
	
		
			
				
					|  |  |  |      * @param externalAppRequestParam | 
			
		
	
		
			
				
					|  |  |  |      * @return | 
			
		
	
		
			
				
					|  |  |  |      */ | 
			
		
	
		
			
				
					|  |  |  |     @PostMapping("news/hotrank") | 
			
		
	
		
			
				
					|  |  |  |     public Result<List<ScreenKcNewsHotRankResultDTO>> listNewsHotRank(ExternalAppRequestParam externalAppRequestParam, | 
			
		
	
		
			
				
					|  |  |  |     public Result<List<ScreenKcNewsHotRankResultDTO>> listNewsHotRank(@RequestHeader("CustomerId") String customerId, | 
			
		
	
		
			
				
					|  |  |  |                                                                       @RequestBody PageFormDTO form){ | 
			
		
	
		
			
				
					|  |  |  |         String customerId = externalAppRequestParam.getCustomerId(); | 
			
		
	
		
			
				
					|  |  |  |         return new Result<List<ScreenKcNewsHotRankResultDTO>>().ok(kcScreenService.getNewsHotRank(customerId, form.getPageNo(), form.getPageSize())); | 
			
		
	
		
			
				
					|  |  |  |     } | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
	
		
			
				
					|  |  | 
 |