diff --git a/epmet-module/data-report/data-report-server/pom.xml b/epmet-module/data-report/data-report-server/pom.xml
index 6dd6fefbcb..3f0c56a777 100644
--- a/epmet-module/data-report/data-report-server/pom.xml
+++ b/epmet-module/data-report/data-report-server/pom.xml
@@ -62,11 +62,11 @@
0.3.1
-
+
com.epmet
diff --git a/epmet-module/data-report/data-report-server/src/main/java/com/epmet/datareport/controller/fact/FactIndexController.java b/epmet-module/data-report/data-report-server/src/main/java/com/epmet/datareport/controller/fact/FactIndexController.java
index c7eb8ac820..fbf0e78748 100644
--- a/epmet-module/data-report/data-report-server/src/main/java/com/epmet/datareport/controller/fact/FactIndexController.java
+++ b/epmet-module/data-report/data-report-server/src/main/java/com/epmet/datareport/controller/fact/FactIndexController.java
@@ -1,6 +1,5 @@
package com.epmet.datareport.controller.fact;
-import com.epmet.commons.extappauth.annotation.InternalAppRequestAuth;
import com.epmet.commons.tools.annotation.LoginUser;
import com.epmet.commons.tools.security.dto.TokenDto;
import com.epmet.commons.tools.utils.Result;
diff --git a/epmet-module/data-report/data-report-server/src/main/java/com/epmet/datareport/controller/screen/AgencyController.java b/epmet-module/data-report/data-report-server/src/main/java/com/epmet/datareport/controller/screen/AgencyController.java
index 07b6bf2093..035dab63d9 100644
--- a/epmet-module/data-report/data-report-server/src/main/java/com/epmet/datareport/controller/screen/AgencyController.java
+++ b/epmet-module/data-report/data-report-server/src/main/java/com/epmet/datareport/controller/screen/AgencyController.java
@@ -1,21 +1,13 @@
package com.epmet.datareport.controller.screen;
-import com.epmet.commons.extappauth.annotation.ExternalAppRequestAuth;
-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.AgencyService;
import com.epmet.evaluationindex.screen.dto.form.CompartmentFormDTO;
import com.epmet.evaluationindex.screen.dto.result.CompartmentResultDTO;
import com.epmet.evaluationindex.screen.dto.result.TreeResultDTO;
-import org.apache.commons.lang3.StringUtils;
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 javax.servlet.http.HttpServletRequest;
+import org.springframework.web.bind.annotation.*;
/**
* 组织相关api
@@ -36,14 +28,9 @@ public class AgencyController {
* @author zxc
* @date 2020/8/18 2:04 下午
*/
- @ExternalAppRequestAuth
@PostMapping("tree")
- public Result tree(HttpServletRequest request, ExternalAppRequestParam externalAppRequestParam){
- String customerId = request.getHeader("CustomerId");
- if(StringUtils.isBlank(externalAppRequestParam.getCustomerId())){
- externalAppRequestParam.setCustomerId(customerId);
- }
- return new Result().ok(agencyService.tree(externalAppRequestParam));
+ public Result tree(@RequestHeader("CustomerId") String customerId){
+ return new Result().ok(agencyService.tree(customerId));
}
/**
@@ -52,7 +39,6 @@ public class AgencyController {
* @author zxc
* @date 2020/8/18 2:33 下午
*/
- @ExternalAppRequestAuth
@PostMapping("compartment")
public Result compartment(@RequestBody CompartmentFormDTO compartmentFormDTO){
ValidatorUtils.validateEntity(compartmentFormDTO, CompartmentFormDTO.Compartment.class);
diff --git a/epmet-module/data-report/data-report-server/src/main/java/com/epmet/datareport/controller/screen/DistributionController.java b/epmet-module/data-report/data-report-server/src/main/java/com/epmet/datareport/controller/screen/DistributionController.java
index 30f0f82584..8c17f03238 100644
--- a/epmet-module/data-report/data-report-server/src/main/java/com/epmet/datareport/controller/screen/DistributionController.java
+++ b/epmet-module/data-report/data-report-server/src/main/java/com/epmet/datareport/controller/screen/DistributionController.java
@@ -1,6 +1,5 @@
package com.epmet.datareport.controller.screen;
-import com.epmet.commons.extappauth.annotation.ExternalAppRequestAuth;
import com.epmet.commons.tools.utils.Result;
import com.epmet.commons.tools.validator.ValidatorUtils;
import com.epmet.datareport.service.evaluationindex.screen.DistributionService;
@@ -33,7 +32,6 @@ public class DistributionController {
* @author zxc
* @date 2020/8/18 10:59 上午
*/
- @ExternalAppRequestAuth
@PostMapping("branch")
public Result> branch(@RequestBody BranchFormDTO formDTO){
ValidatorUtils.validateEntity(formDTO, BranchFormDTO.Branch.class);
@@ -46,7 +44,6 @@ public class DistributionController {
* @author zxc
* @date 2020/8/18 11:10 上午
*/
- @ExternalAppRequestAuth
@PostMapping("user")
public Result user(@RequestBody UserFormDTO userFormDTO){
ValidatorUtils.validateEntity(userFormDTO, UserFormDTO.User.class);
@@ -59,7 +56,6 @@ public class DistributionController {
* @author zxc
* @date 2020/8/18 11:20 上午
*/
- @ExternalAppRequestAuth
@PostMapping("parymember")
public Result parymember(@RequestBody ParymemberFormDTO parymemberFormDTO){
ValidatorUtils.validateEntity(parymemberFormDTO, ParymemberFormDTO.Parymember.class);
@@ -72,7 +68,6 @@ public class DistributionController {
* @author zxc
* @date 2020/8/19 1:29 下午
*/
- @ExternalAppRequestAuth
@PostMapping("project")
public Result> project(@RequestBody ProjectFormDTO projectFormDTO){
ValidatorUtils.validateEntity(projectFormDTO, ProjectFormDTO.Project.class);
@@ -85,7 +80,6 @@ public class DistributionController {
* @author zxc
* @date 2020/8/19 1:52 下午
*/
- @ExternalAppRequestAuth
@PostMapping("topprofile")
public Result topProfile(@RequestBody TopProfileFormDTO topProfileFormDTO){
ValidatorUtils.validateEntity(topProfileFormDTO, TopProfileFormDTO.TopProfile.class);
diff --git a/epmet-module/data-report/data-report-server/src/main/java/com/epmet/datareport/controller/screen/GrassRootsGovernController.java b/epmet-module/data-report/data-report-server/src/main/java/com/epmet/datareport/controller/screen/GrassRootsGovernController.java
index 1ee85baeb4..4cec62dc66 100644
--- a/epmet-module/data-report/data-report-server/src/main/java/com/epmet/datareport/controller/screen/GrassRootsGovernController.java
+++ b/epmet-module/data-report/data-report-server/src/main/java/com/epmet/datareport/controller/screen/GrassRootsGovernController.java
@@ -1,6 +1,5 @@
package com.epmet.datareport.controller.screen;
-import com.epmet.commons.extappauth.annotation.ExternalAppRequestAuth;
import com.epmet.commons.tools.utils.Result;
import com.epmet.commons.tools.validator.ValidatorUtils;
import com.epmet.datareport.service.evaluationindex.screen.GrassRootsGovernService;
@@ -39,7 +38,6 @@ public class GrassRootsGovernController {
* @author wangc
* @date 2020.08.20 11:16
**/
- @ExternalAppRequestAuth
@PostMapping("userpointrank")
public Result userPointRank(@RequestBody AgencyAndNumFormDTO param){
ValidatorUtils.validateEntity(param,AgencyFormDTO.CommonAgencyIdGroup.class);
@@ -54,7 +52,6 @@ public class GrassRootsGovernController {
* @author wangc
* @date 2020.08.20 13:55
**/
- @ExternalAppRequestAuth
@PostMapping("difficultprojects")
public Result> difficultProject(@RequestBody AgencyNumTypeParamFormDTO param){
ValidatorUtils.validateEntity(param, AgencyNumTypeParamFormDTO.AgencyNumTypeParamGroup.class);
@@ -69,7 +66,6 @@ public class GrassRootsGovernController {
* @author wangc
* @date 2020.08.20 14:37
**/
- @ExternalAppRequestAuth
@PostMapping("publicpartiprofile")
public Result publicPartiProfile(@RequestBody AgencyFormDTO param){
ValidatorUtils.validateEntity(param, AgencyFormDTO.CommonAgencyIdGroup.class);
@@ -84,7 +80,6 @@ public class GrassRootsGovernController {
* @author wangc
* @date 2020.08.20 15:32
**/
- @ExternalAppRequestAuth
@PostMapping("publicpartirank")
public Result> publicPartiRank(@RequestBody AgencyAndNumFormDTO param){
ValidatorUtils.validateEntity(param,AgencyFormDTO.CommonAgencyIdGroup.class);
@@ -99,7 +94,6 @@ public class GrassRootsGovernController {
* @author wangc
* @date 2020.08.20 17:46
**/
- @ExternalAppRequestAuth
@PostMapping("governcapacityrank")
public Result> governCapacityRank(@RequestBody AgencyAndNumFormDTO param){
ValidatorUtils.validateEntity(param,AgencyFormDTO.CommonAgencyIdGroup.class);
diff --git a/epmet-module/data-report/data-report-server/src/main/java/com/epmet/datareport/controller/screen/GrassrootsPartyDevController.java b/epmet-module/data-report/data-report-server/src/main/java/com/epmet/datareport/controller/screen/GrassrootsPartyDevController.java
index db7c83089f..f7273b3da8 100644
--- a/epmet-module/data-report/data-report-server/src/main/java/com/epmet/datareport/controller/screen/GrassrootsPartyDevController.java
+++ b/epmet-module/data-report/data-report-server/src/main/java/com/epmet/datareport/controller/screen/GrassrootsPartyDevController.java
@@ -1,6 +1,5 @@
package com.epmet.datareport.controller.screen;
-import com.epmet.commons.extappauth.annotation.ExternalAppRequestAuth;
import com.epmet.commons.tools.utils.Result;
import com.epmet.commons.tools.validator.ValidatorUtils;
import com.epmet.datareport.service.evaluationindex.screen.GrassrootsPartyDevService;
@@ -38,7 +37,6 @@ public class GrassrootsPartyDevController {
* @author wangc
* @date 2020.08.18 16:59
**/
- @ExternalAppRequestAuth
@PostMapping("basicinfo")
public Result baseInfo(@RequestBody ParymemberFormDTO param){
ValidatorUtils.validateEntity(param, ParymemberFormDTO.Parymember.class);
@@ -53,7 +51,6 @@ public class GrassrootsPartyDevController {
* @author wangc
* @date 2020.08.18 17:54
**/
- @ExternalAppRequestAuth
@PostMapping("ageinfo")
public Result ageInfo(@RequestBody ParymemberFormDTO param){
ValidatorUtils.validateEntity(param, ParymemberFormDTO.Parymember.class);
@@ -68,7 +65,6 @@ public class GrassrootsPartyDevController {
* @author wangc
* @date 2020.08.19 11:02
**/
- @ExternalAppRequestAuth
@PostMapping("branchbuildtrend")
public Result branchBuildTrend(@RequestBody BranchBuildTrendFormDTO param){
ValidatorUtils.validateEntity(param, BranchBuildTrendFormDTO.branchBuildTrendGroup.class);
@@ -83,7 +79,6 @@ public class GrassrootsPartyDevController {
* @author wangc
* @date 2020.08.19 15:25
**/
- @ExternalAppRequestAuth
@PostMapping("branchbuildrank")
public Result branchBuildRank(@RequestBody BranchBuildRankFormDTO param){
ValidatorUtils.validateEntity(param, BranchBuildRankFormDTO.BranchBuildRankGroup.class);
diff --git a/epmet-module/data-report/data-report-server/src/main/java/com/epmet/datareport/controller/screen/IndexController.java b/epmet-module/data-report/data-report-server/src/main/java/com/epmet/datareport/controller/screen/IndexController.java
index 162065563b..d3ece6a658 100644
--- a/epmet-module/data-report/data-report-server/src/main/java/com/epmet/datareport/controller/screen/IndexController.java
+++ b/epmet-module/data-report/data-report-server/src/main/java/com/epmet/datareport/controller/screen/IndexController.java
@@ -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.eum.OrgTypeEnum;
@@ -10,10 +7,7 @@ import com.epmet.datareport.service.evaluationindex.screen.IndexService;
import com.epmet.evaluationindex.screen.dto.form.*;
import com.epmet.evaluationindex.screen.dto.result.*;
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;
@@ -36,7 +30,6 @@ public class IndexController {
* @author zxc
* @date 2020/8/19 2:53 下午
*/
- @ExternalAppRequestAuth
@PostMapping("yearaverageindex")
public Result yearAverageIndex(@RequestBody YearAverageIndexFormDTO yearAverageIndexFormDTO){
ValidatorUtils.validateEntity(yearAverageIndexFormDTO, YearAverageIndexFormDTO.YearAverageIndex.class);
@@ -49,7 +42,6 @@ public class IndexController {
* @author zxc
* @date 2020/8/19 3:17 下午
*/
- @ExternalAppRequestAuth
@PostMapping("monthindexanalysis/piechart")
public Result monthPieChart(@RequestBody MonthPieChartFormDTO monthPieChartFormDTO){
ValidatorUtils.validateEntity(monthPieChartFormDTO, MonthPieChartFormDTO.MonthPieChart.class);
@@ -62,7 +54,6 @@ public class IndexController {
* @author zxc
* @date 2020/8/19 5:27 下午
*/
- @ExternalAppRequestAuth
@PostMapping("monthindexanalysis/barchart")
public Result monthBarchart(@RequestBody MonthBarchartFormDTO monthBarchartFormDTO){
ValidatorUtils.validateEntity(monthBarchartFormDTO, MonthBarchartFormDTO.MonthBarchart.class);
@@ -75,7 +66,6 @@ public class IndexController {
* @author zxc
* @date 2020/8/20 10:02 上午
*/
- @ExternalAppRequestAuth
@PostMapping("subagencyindexrank")
public Result> subAgencyIndexRank(@RequestBody SubAgencyIndexRankFormDTO subAgencyIndexRankFormDTO){
ValidatorUtils.validateEntity(subAgencyIndexRankFormDTO, SubAgencyIndexRankFormDTO.SubAgencyIndexRank.class);
@@ -90,8 +80,6 @@ public class IndexController {
* @Author zhangyong
* @Date 13:39 2020-09-11
**/
- @InternalAppRequestAuth
- @ExternalAppRequestAuth
@PostMapping("dataclient/subagencyindexrank")
public Result> getSubAgencyIndexRank(@RequestBody SubAgencyIndexRankYMFormDTO formDTO) {
ValidatorUtils.validateEntity(formDTO, SubAgencyIndexRankYMFormDTO.SubAgencyIndexRank.class);
@@ -104,10 +92,9 @@ public class IndexController {
* @author jianjun.liu
* @date 2020/8/20 10:02 上午
*/
- @ExternalAppRequestAuth
@PostMapping("gridindexrank")
- public Result> gridIndexRank(ExternalAppRequestParam extParam, @RequestBody GridIndexRankFormDTO formDTO) {
- formDTO.setCustomerId(extParam.getCustomerId());
+ public Result> gridIndexRank(@RequestHeader("CustomerId") String customerId, @RequestBody GridIndexRankFormDTO formDTO) {
+ formDTO.setCustomerId(customerId);
ValidatorUtils.validateEntity(formDTO);
formDTO.setOrgType(OrgTypeEnum.GRID.getCode());
return new Result>().ok(indexService.selectIndexRankByOrgType(formDTO));
diff --git a/epmet-module/data-report/data-report-server/src/main/java/com/epmet/datareport/controller/screen/KcScreenController.java b/epmet-module/data-report/data-report-server/src/main/java/com/epmet/datareport/controller/screen/KcScreenController.java
index 8e9a3d0bfa..855be093c1 100644
--- a/epmet-module/data-report/data-report-server/src/main/java/com/epmet/datareport/controller/screen/KcScreenController.java
+++ b/epmet-module/data-report/data-report-server/src/main/java/com/epmet/datareport/controller/screen/KcScreenController.java
@@ -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 homepageSummary(ExternalAppRequestParam externalAppRequestParam){
- return new Result().ok(kcScreenService.homepageSummary(externalAppRequestParam));
+ public Result homepageSummary(@RequestHeader("CustomerId") String customerId){
+ return new Result().ok(kcScreenService.homepageSummary(customerId));
}
/**
- * @param externalAppRequestParam
* @Description 公益互助-各类总数汇总
* @author sun
*/
@PostMapping("heart/summary")
- public Result heartSummary(ExternalAppRequestParam externalAppRequestParam){
- return new Result().ok(kcScreenService.heartSummary(externalAppRequestParam));
+ public Result heartSummary(@RequestHeader("CustomerId") String customerId){
+ return new Result().ok(kcScreenService.heartSummary(customerId));
}
/**
- * @param externalAppRequestParam
* @Description 公益互助-公益活动次数
* @author sun
*/
@PostMapping("heart/actcounttrend")
- public Result heartActcounttrend(ExternalAppRequestParam externalAppRequestParam){
- return new Result().ok(kcScreenService.heartActcounttrend(externalAppRequestParam));
+ public Result heartActcounttrend(@RequestHeader("CustomerId") String customerId){
+ return new Result().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 heartVolunteerportrayal(ExternalAppRequestParam externalAppRequestParam){
- return new Result().ok(kcScreenService.heartVolunteerportrayal(externalAppRequestParam));
+ public Result heartVolunteerportrayal(@RequestHeader("CustomerId") String customerId){
+ return new Result().ok(kcScreenService.heartVolunteerportrayal(customerId));
}
/**
- * @param externalAppRequestParam
* @Description 公益互助-个人(志愿者)公益时长排名
* @author sun
*/
@PostMapping("heart/volunteerrank")
- public Result> heartVolunteerrank(ExternalAppRequestParam externalAppRequestParam, @RequestBody HeartVolunteerrankFormDTO formDTO){
+ public Result> heartVolunteerrank(@RequestHeader("CustomerId") String customerId, @RequestBody HeartVolunteerrankFormDTO formDTO){
ValidatorUtils.validateEntity(formDTO, HeartVolunteerrankFormDTO.AddUserInternalGroup.class);
- formDTO.setCustomerId(externalAppRequestParam.getCustomerId());
+ formDTO.setCustomerId(customerId);
return new Result>().ok(kcScreenService.heartVolunteerrank(formDTO));
}
/**
- * @param externalAppRequestParam
* @Description 邻里党群-各类总数
* @author sun
*/
@PostMapping("group/summary")
- public Result groupSummary(ExternalAppRequestParam externalAppRequestParam){
- return new Result().ok(kcScreenService.groupSummary(externalAppRequestParam));
+ public Result groupSummary(@RequestHeader("CustomerId") String customerId){
+ return new Result().ok(kcScreenService.groupSummary(customerId));
}
/**
- * @param externalAppRequestParam
* @Description 邻里党群-话题参与趋势
* @author sun
*/
@PostMapping("group/partitopictrend")
- public Result groupPartitopictrend(ExternalAppRequestParam externalAppRequestParam){
- return new Result().ok(kcScreenService.groupPartitopictrend(externalAppRequestParam));
+ public Result groupPartitopictrend(@RequestHeader("CustomerId") String customerId){
+ return new Result().ok(kcScreenService.groupPartitopictrend(customerId));
}
/**
- * @param externalAppRequestParam
* @Description 邻里党群-社群数量排名
* @author sun
*/
@PostMapping("group/gridgroupcountrank")
- public Result groupGridgroupcountrank(ExternalAppRequestParam externalAppRequestParam){
- return new Result().ok(kcScreenService.groupGridgroupcountrank(externalAppRequestParam));
+ public Result groupGridgroupcountrank(@RequestHeader("CustomerId") String customerId){
+ return new Result().ok(kcScreenService.groupGridgroupcountrank(customerId));
}
/**
- * @param externalAppRequestParam
* @Description 邻里党群-社群数量排名
* @author sun
*/
@PostMapping("group/usercountrank")
- public Result> groupUserCountRank(ExternalAppRequestParam externalAppRequestParam, @RequestBody GroupUserCountRankFormDTO formDTO){
+ public Result> groupUserCountRank(@RequestHeader("CustomerId") String customerId, @RequestBody GroupUserCountRankFormDTO formDTO){
ValidatorUtils.validateEntity(formDTO, GroupUserCountRankFormDTO.AddUserInternalGroup.class);
- formDTO.setCustomerId(externalAppRequestParam.getCustomerId());
+ formDTO.setCustomerId(customerId);
return new Result>().ok(kcScreenService.groupUserCountRank(formDTO));
}
/**
- * @param externalAppRequestParam
* @Description 邻里党群-话题转化率排名
* @author sun
*/
@PostMapping("group/topicshiftissueratiorank")
- public Result> groupTopicShiftIssueRatioRank(ExternalAppRequestParam externalAppRequestParam, @RequestBody GroupTopicShiftIssueRatioRankFormDTO formDTO){
+ public Result> groupTopicShiftIssueRatioRank(@RequestHeader("CustomerId") String customerId, @RequestBody GroupTopicShiftIssueRatioRankFormDTO formDTO){
ValidatorUtils.validateEntity(formDTO, GroupTopicShiftIssueRatioRankFormDTO.AddUserInternalGroup.class);
- formDTO.setCustomerId(externalAppRequestParam.getCustomerId());
+ formDTO.setCustomerId(customerId);
return new Result>().ok(kcScreenService.groupTopicShiftIssueRatioRank(formDTO));
}
/**
* 项目各类总数汇总
- * @param externalAppRequestParam
* @return
*/
@PostMapping("project/summary")
- public Result getProjectSummary(ExternalAppRequestParam externalAppRequestParam){
- //String customerId = "2fe0065f70ca0e23ce4c26fca5f1d933";
- String customerId = externalAppRequestParam.getCustomerId();
+ public Result getProjectSummary(@RequestHeader("CustomerId") String customerId){
return new Result().ok(kcScreenService.getProjectSummary(customerId));
}
/**
* 项目分析-网格下项目数量排名
- * @param externalAppRequestParam
* @return
*/
@PostMapping("project/gridcountrank")
- public Result getProjectGridCountRank(ExternalAppRequestParam externalAppRequestParam){
- //String customerId = "2fe0065f70ca0e23ce4c26fca5f1d933";
- String customerId = externalAppRequestParam.getCustomerId();
+ public Result getProjectGridCountRank(@RequestHeader("CustomerId") String customerId){
return new Result().ok(kcScreenService.getGridProjectCountRank(customerId));
}
/**
* 项目分析-项目类别
- * @param externalAppRequestParam
* @return
*/
@PostMapping("project/categoryanalysis")
- public Result> getProjectCategoryAnalysis(ExternalAppRequestParam externalAppRequestParam){
- //String customerId = "2fe0065f70ca0e23ce4c26fca5f1d933";
- String customerId = externalAppRequestParam.getCustomerId();
+ public Result> getProjectCategoryAnalysis(@RequestHeader("CustomerId") String customerId){
return new Result>().ok(kcScreenService.getProjectCategoryAnalysis(customerId));
}
/**
* 网格项目平均结案时间
- * @param externalAppRequestParam
* @return
*/
@PostMapping("project/avgclosedtimeanalysis")
- public Result> getGridProjectAvgClosedTimeAnalysis(ExternalAppRequestParam externalAppRequestParam){
- //String customerId = "2fe0065f70ca0e23ce4c26fca5f1d933";
- String customerId = externalAppRequestParam.getCustomerId();
+ public Result> getGridProjectAvgClosedTimeAnalysis(@RequestHeader("CustomerId") String customerId){
return new Result>().ok(kcScreenService.getGridProjectAvgClosedTimeAnalysis(customerId));
}
/**
* 项目分析-居民满意度
- * @param externalAppRequestParam
* @return
*/
@PostMapping("project/statis")
- public Result getProjectSatisfactionAnalyze(ExternalAppRequestParam externalAppRequestParam){
- String customerId = externalAppRequestParam.getCustomerId();
+ public Result getProjectSatisfactionAnalyze(@RequestHeader("CustomerId") String customerId){
return new Result().ok(kcScreenService.getProjectSatisfactionAnalyze(customerId));
}
/**
* 用户-summary
- * @param externalAppRequestParam
* @return
*/
@PostMapping("user/summary")
- public Result getUserSummary(ExternalAppRequestParam externalAppRequestParam){
- String customerId = externalAppRequestParam.getCustomerId();
- //String customerId = "2fe0065f70ca0e23ce4c26fca5f1d933";
+ public Result getUserSummary(@RequestHeader("CustomerId") String customerId){
return new Result().ok(kcScreenService.getUserSummary(customerId));
}
/**
* 用户量趋势
- * @param externalAppRequestParam
* @return
*/
@PostMapping("user/trend")
- public Result getUserTrend(ExternalAppRequestParam externalAppRequestParam){
- String customerId = externalAppRequestParam.getCustomerId();
+ public Result getUserTrend(@RequestHeader("CustomerId") String customerId){
return new Result().ok(kcScreenService.getUserTrend(customerId));
}
/**
* 网格用户数量排名
- * @param externalAppRequestParam
* @return
*/
@PostMapping("user/griduserrank")
- public Result getUserRank(ExternalAppRequestParam externalAppRequestParam){
- String customerId = externalAppRequestParam.getCustomerId();
+ public Result getUserRank(@RequestHeader("CustomerId") String customerId){
return new Result().ok(kcScreenService.getUserRank(customerId));
}
/**
* 用户画像
- * @param externalAppRequestParam
* @return
*/
@PostMapping("user/userportrayal")
- public Result getUserPortrayal(ExternalAppRequestParam externalAppRequestParam){
- String customerId = externalAppRequestParam.getCustomerId();
+ public Result getUserPortrayal(@RequestHeader("CustomerId") String customerId){
return new Result().ok(kcScreenService.getUserPortrayal(customerId));
}
/**
* 用户积分排名
- * @param externalAppRequestParam
* @return
*/
@PostMapping("user/pointsrank")
- public Result getUserPointsRank(ExternalAppRequestParam externalAppRequestParam,
+ public Result getUserPointsRank(@RequestHeader("CustomerId") String customerId,
@RequestBody PageFormDTO form) {
- String customerId = externalAppRequestParam.getCustomerId();
return new Result().ok(kcScreenService.getUserPointsRank(customerId, form.getPageNo(), form.getPageSize()));
}
/**
* 党建声音-各类总数
- * @param externalAppRequestParam
* @return
*/
@PostMapping("news/summary")
- public Result getNewsSummary(ExternalAppRequestParam externalAppRequestParam){
- String customerId = externalAppRequestParam.getCustomerId();
+ public Result getNewsSummary(@RequestHeader("CustomerId") String customerId){
return new Result().ok(kcScreenService.getNewsSummary(customerId));
}
/**
* 新闻阅读参与趋势
- * @param externalAppRequestParam
* @return
*/
@PostMapping("news/partitrend")
- public Result getNewsPartiTrend(ExternalAppRequestParam externalAppRequestParam){
- String customerId = externalAppRequestParam.getCustomerId();
+ public Result getNewsPartiTrend(@RequestHeader("CustomerId") String customerId){
return new Result().ok(kcScreenService.getNewsPartiTrend(customerId));
}
/**
* 党建声音-分类的news数量
- * @param externalAppRequestParam
* @return
*/
@PostMapping("news/category")
- public Result> getNewsCountGroupByCategory(ExternalAppRequestParam externalAppRequestParam){
- String customerId = externalAppRequestParam.getCustomerId();
+ public Result> getNewsCountGroupByCategory(@RequestHeader("CustomerId") String customerId){
return new Result>().ok(kcScreenService.getNewsCountOfCategory(customerId));
}
/**
* 党建声音-分类的用户参与数排行
- * @param externalAppRequestParam
* @return
*/
@PostMapping("news/userparticategoryrank")
- public Result getNewsPartiCategoryRank(ExternalAppRequestParam externalAppRequestParam){
- String customerId = externalAppRequestParam.getCustomerId();
+ public Result getNewsPartiCategoryRank(@RequestHeader("CustomerId") String customerId){
return new Result().ok(kcScreenService.getNewsPartiCategoryRank(customerId));
}
/**
* 党建声音-热点新闻排行
- * @param externalAppRequestParam
* @return
*/
@PostMapping("news/hotrank")
- public Result> listNewsHotRank(ExternalAppRequestParam externalAppRequestParam,
+ public Result> listNewsHotRank(@RequestHeader("CustomerId") String customerId,
@RequestBody PageFormDTO form){
- String customerId = externalAppRequestParam.getCustomerId();
return new Result>().ok(kcScreenService.getNewsHotRank(customerId, form.getPageNo(), form.getPageSize()));
}
diff --git a/epmet-module/data-report/data-report-server/src/main/java/com/epmet/datareport/controller/screen/PartyMemberLeadController.java b/epmet-module/data-report/data-report-server/src/main/java/com/epmet/datareport/controller/screen/PartyMemberLeadController.java
index 5530fae8b0..ca1104f534 100644
--- a/epmet-module/data-report/data-report-server/src/main/java/com/epmet/datareport/controller/screen/PartyMemberLeadController.java
+++ b/epmet-module/data-report/data-report-server/src/main/java/com/epmet/datareport/controller/screen/PartyMemberLeadController.java
@@ -1,6 +1,5 @@
package com.epmet.datareport.controller.screen;
-import com.epmet.commons.extappauth.annotation.ExternalAppRequestAuth;
import com.epmet.commons.tools.utils.Result;
import com.epmet.commons.tools.validator.ValidatorUtils;
import com.epmet.datareport.service.evaluationindex.screen.PartyMemberLeadService;
@@ -33,7 +32,6 @@ public class PartyMemberLeadController {
* @author zxc
* @date 2020/8/20 1:56 下午
*/
- @ExternalAppRequestAuth
@PostMapping("fineexample")
public Result fineExample(@RequestBody FineExampleFormDTO fineExampleFormDTO){
ValidatorUtils.validateEntity(fineExampleFormDTO, FineExampleFormDTO.FineExample.class);
@@ -46,7 +44,6 @@ public class PartyMemberLeadController {
* @author zxc
* @date 2020/8/20 2:35 下午
*/
- @ExternalAppRequestAuth
@PostMapping("contactmasslinechart")
public Result contactMassLineChart(@RequestBody ContactMassLineChartFormDTO contactMassLineChartFormDTO){
ValidatorUtils.validateEntity(contactMassLineChartFormDTO, ContactMassLineChartFormDTO.ContactMassLineChart.class);
@@ -59,7 +56,6 @@ public class PartyMemberLeadController {
* @author zxc
* @date 2020/8/20 3:19 下午
*/
- @ExternalAppRequestAuth
@PostMapping("volunteerservice")
public Result volunteerService(@RequestBody VolunteerServiceFormDTO volunteerServiceFormDTO){
ValidatorUtils.validateEntity(volunteerServiceFormDTO, VolunteerServiceFormDTO.VolunteerService.class);
@@ -74,7 +70,6 @@ public class PartyMemberLeadController {
* @author wangc
* @date 2020.08.21 11:05
**/
- @ExternalAppRequestAuth
@PostMapping("advancedbranchrank")
Result> advancedBranchRank(@RequestBody AgencyAndNumFormDTO param){
ValidatorUtils.validateEntity(param, AgencyFormDTO.CommonAgencyIdGroup.class);
@@ -89,7 +84,6 @@ public class PartyMemberLeadController {
* @author wangc
* @date 2020.08.21 14:22
**/
- @ExternalAppRequestAuth
@PostMapping("advancedpartymemberrank")
Result> advancedPartymemberRank(@RequestBody AgencyAndNumFormDTO param){
ValidatorUtils.validateEntity(param, AgencyFormDTO.CommonAgencyIdGroup.class);
diff --git a/epmet-module/data-report/data-report-server/src/main/java/com/epmet/datareport/controller/screen/ScreenProjectController.java b/epmet-module/data-report/data-report-server/src/main/java/com/epmet/datareport/controller/screen/ScreenProjectController.java
index 5417767ee6..483e3edcc1 100644
--- a/epmet-module/data-report/data-report-server/src/main/java/com/epmet/datareport/controller/screen/ScreenProjectController.java
+++ b/epmet-module/data-report/data-report-server/src/main/java/com/epmet/datareport/controller/screen/ScreenProjectController.java
@@ -1,6 +1,5 @@
package com.epmet.datareport.controller.screen;
-import com.epmet.commons.extappauth.annotation.ExternalAppRequestAuth;
import com.epmet.commons.tools.utils.Result;
import com.epmet.commons.tools.validator.ValidatorUtils;
import com.epmet.datareport.service.evaluationindex.screen.ScreenProjectService;
@@ -31,7 +30,6 @@ public class ScreenProjectController {
* @author zxc
* @date 2020/8/19 4:36 下午
*/
- @ExternalAppRequestAuth
@PostMapping("detail")
public Result projectDetail(@RequestBody ProjectDetailFormDTO projectDetailFormDTO){
ValidatorUtils.validateEntity(projectDetailFormDTO, ProjectDetailFormDTO.ProjectDetail.class);
diff --git a/epmet-module/data-report/data-report-server/src/main/java/com/epmet/datareport/controller/screen/ScreenUserController.java b/epmet-module/data-report/data-report-server/src/main/java/com/epmet/datareport/controller/screen/ScreenUserController.java
index 5e7c544c38..bc6997d45f 100644
--- a/epmet-module/data-report/data-report-server/src/main/java/com/epmet/datareport/controller/screen/ScreenUserController.java
+++ b/epmet-module/data-report/data-report-server/src/main/java/com/epmet/datareport/controller/screen/ScreenUserController.java
@@ -1,6 +1,5 @@
package com.epmet.datareport.controller.screen;
-import com.epmet.commons.extappauth.annotation.InternalAppRequestAuth;
import com.epmet.commons.tools.annotation.LoginUser;
import com.epmet.commons.tools.security.dto.TokenDto;
import com.epmet.commons.tools.utils.Result;
@@ -35,7 +34,6 @@ public class ScreenUserController {
* @Description 热心市民积分排行列表
* @author sun
*/
- @InternalAppRequestAuth
@PostMapping("userpointrank")
public Result> userPointRank(@LoginUser TokenDto tokenDTO, @RequestBody UserPointRankFormDTO formDTO) {
ValidatorUtils.validateEntity(formDTO, UserPointRankFormDTO.AddUserInternalGroup.class);
@@ -47,7 +45,6 @@ public class ScreenUserController {
* @Description 党员(指标得分)排行
* @author sun
*/
- @InternalAppRequestAuth
@PostMapping("partindexscroerank")
public Result> partIndexScroeRank(@LoginUser TokenDto tokenDTO, @RequestBody PartIndexScroeRankFormDTO formDTO) {
ValidatorUtils.validateEntity(formDTO, PartIndexScroeRankFormDTO.AddUserInternalGroup.class);
diff --git a/epmet-module/data-report/data-report-server/src/main/java/com/epmet/datareport/service/evaluationindex/screen/AgencyService.java b/epmet-module/data-report/data-report-server/src/main/java/com/epmet/datareport/service/evaluationindex/screen/AgencyService.java
index f881373c1b..eee423ca41 100644
--- a/epmet-module/data-report/data-report-server/src/main/java/com/epmet/datareport/service/evaluationindex/screen/AgencyService.java
+++ b/epmet-module/data-report/data-report-server/src/main/java/com/epmet/datareport/service/evaluationindex/screen/AgencyService.java
@@ -1,6 +1,5 @@
package com.epmet.datareport.service.evaluationindex.screen;
-import com.epmet.commons.extappauth.bean.ExternalAppRequestParam;
import com.epmet.evaluationindex.screen.dto.form.CompartmentFormDTO;
import com.epmet.evaluationindex.screen.dto.result.CompartmentResultDTO;
import com.epmet.evaluationindex.screen.dto.result.TreeResultDTO;
@@ -19,7 +18,7 @@ public interface AgencyService {
* @author zxc
* @date 2020/8/18 2:04 下午
*/
- TreeResultDTO tree(ExternalAppRequestParam externalAppRequestParam);
+ TreeResultDTO tree(String customerId);
/**
* @Description 2、组织区域查询
diff --git a/epmet-module/data-report/data-report-server/src/main/java/com/epmet/datareport/service/evaluationindex/screen/KcScreenService.java b/epmet-module/data-report/data-report-server/src/main/java/com/epmet/datareport/service/evaluationindex/screen/KcScreenService.java
index d17df56ba1..480601a129 100644
--- a/epmet-module/data-report/data-report-server/src/main/java/com/epmet/datareport/service/evaluationindex/screen/KcScreenService.java
+++ b/epmet-module/data-report/data-report-server/src/main/java/com/epmet/datareport/service/evaluationindex/screen/KcScreenService.java
@@ -1,6 +1,5 @@
package com.epmet.datareport.service.evaluationindex.screen;
-import com.epmet.commons.extappauth.bean.ExternalAppRequestParam;
import com.epmet.dto.result.issue.*;
import com.epmet.dto.result.project.*;
import com.epmet.dto.result.user.*;
@@ -22,32 +21,28 @@ import com.epmet.evaluationindex.screen.dto.result.HomepageSummaryResultDTO;
public interface KcScreenService {
/**
- * @param externalAppRequestParam
* @Description 首页-平台各类总数
* @author sun
*/
- HomepageSummaryResultDTO homepageSummary(ExternalAppRequestParam externalAppRequestParam);
+ HomepageSummaryResultDTO homepageSummary(String customerId);
/**
- * @param externalAppRequestParam
* @Description 公益互助-各类总数汇总
* @author sun
*/
- HeartSummaryResultDTO heartSummary(ExternalAppRequestParam externalAppRequestParam);
+ HeartSummaryResultDTO heartSummary(String customerId);
/**
- * @param externalAppRequestParam
* @Description 公益互助-公益活动次数
* @author sun
*/
- HeartActcounttrendResultDTO heartActcounttrend(ExternalAppRequestParam externalAppRequestParam);
+ HeartActcounttrendResultDTO heartActcounttrend(String customerId);
/**
- * @param externalAppRequestParam
* @Description 公益互助-志愿者画像
* @author sun
*/
- HeartVolunteerportrayalResultDTO heartVolunteerportrayal(ExternalAppRequestParam externalAppRequestParam);
+ HeartVolunteerportrayalResultDTO heartVolunteerportrayal(String customerId);
/**
* @param formDTO
@@ -67,25 +62,22 @@ public interface KcScreenService {
/**
- * @param externalAppRequestParam
* @Description 邻里党群-各类总数
* @author sun
*/
- GroupSummaryResultDTO groupSummary(ExternalAppRequestParam externalAppRequestParam);
+ GroupSummaryResultDTO groupSummary(String customerId);
/**
- * @param externalAppRequestParam
* @Description 邻里党群-话题参与趋势
* @author sun
*/
- GroupPartitopictrendResultDTO groupPartitopictrend(ExternalAppRequestParam externalAppRequestParam);
+ GroupPartitopictrendResultDTO groupPartitopictrend(String customerId);
/**
- * @param externalAppRequestParam
* @Description 邻里党群-社群数量排名
* @author sun
*/
- GroupGridgroupcountrankResultDTO groupGridgroupcountrank(ExternalAppRequestParam externalAppRequestParam);
+ GroupGridgroupcountrankResultDTO groupGridgroupcountrank(String customerId);
/**
* @param formDTO
diff --git a/epmet-module/data-report/data-report-server/src/main/java/com/epmet/datareport/service/evaluationindex/screen/impl/AgencyServiceImpl.java b/epmet-module/data-report/data-report-server/src/main/java/com/epmet/datareport/service/evaluationindex/screen/impl/AgencyServiceImpl.java
index 3ecb962cc8..104e941333 100644
--- a/epmet-module/data-report/data-report-server/src/main/java/com/epmet/datareport/service/evaluationindex/screen/impl/AgencyServiceImpl.java
+++ b/epmet-module/data-report/data-report-server/src/main/java/com/epmet/datareport/service/evaluationindex/screen/impl/AgencyServiceImpl.java
@@ -1,7 +1,6 @@
package com.epmet.datareport.service.evaluationindex.screen.impl;
import com.epmet.commons.dynamic.datasource.annotation.DataSource;
-import com.epmet.commons.extappauth.bean.ExternalAppRequestParam;
import com.epmet.commons.tools.constant.NumConstant;
import com.epmet.commons.tools.exception.RenException;
import com.epmet.constant.DataSourceConstant;
@@ -43,9 +42,8 @@ public class AgencyServiceImpl implements AgencyService {
*/
@DataSource(value = DataSourceConstant.EVALUATION_INDEX,datasourceNameFromArg = true)
@Override
- public TreeResultDTO tree(ExternalAppRequestParam externalAppRequestParam) {
+ public TreeResultDTO tree(String customerId) {
// 1. 查询客户根组织ID
- String customerId = externalAppRequestParam.getCustomerId();
TreeResultDTO rootAgency = null;
try {
diff --git a/epmet-module/data-report/data-report-server/src/main/java/com/epmet/datareport/service/evaluationindex/screen/impl/KcScreenServiceImpl.java b/epmet-module/data-report/data-report-server/src/main/java/com/epmet/datareport/service/evaluationindex/screen/impl/KcScreenServiceImpl.java
index b82d6b654f..6a84e531d7 100644
--- a/epmet-module/data-report/data-report-server/src/main/java/com/epmet/datareport/service/evaluationindex/screen/impl/KcScreenServiceImpl.java
+++ b/epmet-module/data-report/data-report-server/src/main/java/com/epmet/datareport/service/evaluationindex/screen/impl/KcScreenServiceImpl.java
@@ -1,7 +1,6 @@
package com.epmet.datareport.service.evaluationindex.screen.impl;
import com.epmet.commons.dynamic.datasource.annotation.DataSource;
-import com.epmet.commons.extappauth.bean.ExternalAppRequestParam;
import com.epmet.commons.tools.constant.NumConstant;
import com.epmet.constant.DataSourceConstant;
import com.epmet.datareport.dao.evaluationindex.screen.ScreenPartyUserRankDataDao;
@@ -99,37 +98,34 @@ public class KcScreenServiceImpl implements KcScreenService {
private ScreenKcNewsRankDao screenKcNewsRankDao;
/**
- * @param externalAppRequestParam
* @Description 首页-平台各类总数
* @author sun
*/
@Override
- public HomepageSummaryResultDTO homepageSummary(ExternalAppRequestParam externalAppRequestParam) {
- return screenKcPlatformSummaryDailyDao.selectSummaryDaily(externalAppRequestParam.getCustomerId());
+ public HomepageSummaryResultDTO homepageSummary(String customerId) {
+ return screenKcPlatformSummaryDailyDao.selectSummaryDaily(customerId);
}
/**
- * @param externalAppRequestParam
* @Description 公益互助-各类总数汇总
* @author sun
*/
@Override
- public HeartSummaryResultDTO heartSummary(ExternalAppRequestParam externalAppRequestParam) {
- return screenKcActSummaryDailyDao.selectHeartSummary(externalAppRequestParam.getCustomerId());
+ public HeartSummaryResultDTO heartSummary(String customerId) {
+ return screenKcActSummaryDailyDao.selectHeartSummary(customerId);
}
/**
- * @param externalAppRequestParam
* @Description 公益互助-公益活动次数
* @author sun
*/
@Override
- public HeartActcounttrendResultDTO heartActcounttrend(ExternalAppRequestParam externalAppRequestParam) {
+ public HeartActcounttrendResultDTO heartActcounttrend(String customerId) {
HeartActcounttrendResultDTO resultDTO = new HeartActcounttrendResultDTO();
LinkedList xAxis = new LinkedList<>();
LinkedList actCountDataList = new LinkedList<>();
//1.按客户查询最近十二个月数据
- List list = screenKcActTrendMonthlyDao.selectActTrendMonthly(externalAppRequestParam.getCustomerId());
+ List list = screenKcActTrendMonthlyDao.selectActTrendMonthly(customerId);
//2.倒序遍历封装数据
for (int i = list.size() - 1; i >= 0; i--) {
xAxis.add(list.get(i).getMonthId());
@@ -142,16 +138,15 @@ public class KcScreenServiceImpl implements KcScreenService {
}
/**
- * @param externalAppRequestParam
* @Description 公益互助-志愿者画像
* @author sun
*/
@Override
- public HeartVolunteerportrayalResultDTO heartVolunteerportrayal(ExternalAppRequestParam externalAppRequestParam) {
+ public HeartVolunteerportrayalResultDTO heartVolunteerportrayal(String customerId) {
HeartVolunteerportrayalResultDTO resultDTO = new HeartVolunteerportrayalResultDTO();
GenderDistributionResultDTO genderDistribution = new GenderDistributionResultDTO();
//1.根据客户Id查询最近日期志愿者统计数据
- AgeDistributionResultDTO ageDistribution = screenKcVolunteerSummaryDailyDao.selectVolunteerSummaryDaily(externalAppRequestParam.getCustomerId());
+ AgeDistributionResultDTO ageDistribution = screenKcVolunteerSummaryDailyDao.selectVolunteerSummaryDaily(customerId);
//2.封装数据并返回
if (null == ageDistribution) {
resultDTO.setAgeDistribution(new AgeDistributionResultDTO());
@@ -219,14 +214,13 @@ public class KcScreenServiceImpl implements KcScreenService {
}
/**
- * @param externalAppRequestParam
* @Description 邻里党群-各类总数
* @author sun
*/
@Override
- public GroupSummaryResultDTO groupSummary(ExternalAppRequestParam externalAppRequestParam) {
+ public GroupSummaryResultDTO groupSummary(String customerId) {
//1.按客户查询最近一天各网格各项数据的汇总值
- GroupSummaryResultDTO resultDTO = screenKcGroupSummaryGridDailyDao.selectGroupSummaryDaily(externalAppRequestParam.getCustomerId());
+ GroupSummaryResultDTO resultDTO = screenKcGroupSummaryGridDailyDao.selectGroupSummaryDaily(customerId);
if (null == resultDTO) {
return new GroupSummaryResultDTO();
}
@@ -246,17 +240,16 @@ public class KcScreenServiceImpl implements KcScreenService {
}
/**
- * @param externalAppRequestParam
* @Description 邻里党群-话题参与趋势
* @author sun
*/
@Override
- public GroupPartitopictrendResultDTO groupPartitopictrend(ExternalAppRequestParam externalAppRequestParam) {
+ public GroupPartitopictrendResultDTO groupPartitopictrend(String customerId) {
GroupPartitopictrendResultDTO resultDTO = new GroupPartitopictrendResultDTO();
LinkedList xAxis = new LinkedList<>();
LinkedList actCountDataList = new LinkedList<>();
//1.按客户查询最近十二个月所有网格汇总数据
- List list = screenKcTopicTrendGridMonthlyDao.selectActTrendMonthly(externalAppRequestParam.getCustomerId());
+ List list = screenKcTopicTrendGridMonthlyDao.selectActTrendMonthly(customerId);
//2.倒序遍历封装数据
for (int i = list.size() - 1; i >= 0; i--) {
xAxis.add(list.get(i).getMonthId());
@@ -269,17 +262,16 @@ public class KcScreenServiceImpl implements KcScreenService {
}
/**
- * @param externalAppRequestParam
* @Description 邻里党群-社群数量排名
* @author sun
*/
@Override
- public GroupGridgroupcountrankResultDTO groupGridgroupcountrank(ExternalAppRequestParam externalAppRequestParam) {
+ public GroupGridgroupcountrankResultDTO groupGridgroupcountrank(String customerId) {
GroupGridgroupcountrankResultDTO resultDTO = new GroupGridgroupcountrankResultDTO();
LinkedList gridNameDataList = new LinkedList<>();
LinkedList groupCountDataList = new LinkedList<>();
//1.按日期降序,查询客户最近一天所有网格数据,按每个网格的社区总数降序排列
- LinkedList list = screenKcGroupSummaryGridDailyDao.selectGridDailyList(externalAppRequestParam.getCustomerId());
+ LinkedList list = screenKcGroupSummaryGridDailyDao.selectGridDailyList(customerId);
//2.封装数据
list.forEach(l -> {
gridNameDataList.add(l.getGridName());