diff --git a/epmet-commons/epmet-commons-tools/src/main/java/com/epmet/commons/tools/aspect/CustomerApplicationRunner.java b/epmet-commons/epmet-commons-tools/src/main/java/com/epmet/commons/tools/aspect/CustomerApplicationRunner.java
new file mode 100644
index 0000000000..b1bfe5d08e
--- /dev/null
+++ b/epmet-commons/epmet-commons-tools/src/main/java/com/epmet/commons/tools/aspect/CustomerApplicationRunner.java
@@ -0,0 +1,66 @@
+/**
+ * Copyright (c) 2018 人人开源 All rights reserved.
+ *
+ * https://www.renren.io
+ *
+ * 版权所有,侵权必究!
+ */
+
+package com.epmet.commons.tools.aspect;
+
+import com.epmet.commons.tools.dto.form.DingTalkTextMsg;
+import com.epmet.commons.tools.enums.EnvEnum;
+import com.epmet.commons.tools.utils.HttpClientManager;
+import com.epmet.commons.tools.utils.Result;
+import com.epmet.commons.tools.utils.SpringContextUtils;
+import org.apache.logging.log4j.LogManager;
+import org.apache.logging.log4j.Logger;
+import org.springframework.beans.factory.annotation.Value;
+import org.springframework.boot.ApplicationArguments;
+import org.springframework.boot.ApplicationRunner;
+import org.springframework.cloud.commons.util.InetUtils;
+import org.springframework.core.annotation.Order;
+import org.springframework.stereotype.Component;
+
+/**
+ * 应用 启动健康检查 通知类
+ * CustomerApplicationRunner
+ *
+ * @author Mark sunlightcs@gmail.com
+ * @since 1.0.0
+ */
+@Component
+@Order(value = 99)
+public class CustomerApplicationRunner implements ApplicationRunner {
+ private static Logger logger = LogManager.getLogger(CustomerApplicationRunner.class);
+ @Value("${spring.application.name}")
+ private String appName;
+
+ @Override
+ public void run(ApplicationArguments args) {
+ //发送启动成功消息
+ EnvEnum currentEnv = EnvEnum.getCurrentEnv();
+ if (!EnvEnum.DEV.getCode().equals(currentEnv.getCode())) {
+ InetUtils inetUtils = SpringContextUtils.getBean(InetUtils.class);
+ String serverIp = inetUtils.findFirstNonLoopbackHostInfo().getIpAddress();
+
+ //开发小组 群机器人地址
+ String url = "https://oapi.dingtalk.com/robot/send?access_token=ffd7c972b0525e249283df1a16b65a8b9d0012601f3a458dfc588c2eac497bb5";
+ StringBuilder stringBuilder = new StringBuilder();
+ stringBuilder.append(EnvEnum.getCurrentEnv().getName())
+ .append("【")
+ .append(appName)
+ .append("】")
+ .append("ip地址: ")
+ .append(serverIp)
+ .append("部署完毕!");
+ DingTalkTextMsg msg = new DingTalkTextMsg();
+ msg.setWebHook(url);
+ msg.setAtAll(true);
+ msg.setContent(stringBuilder.toString());
+ Result stringResult = HttpClientManager.getInstance().sendPostByJSON(url, msg.getMsgContent());
+ logger.info(stringResult);
+ }
+ }
+
+}
diff --git a/epmet-commons/epmet-commons-tools/src/main/java/com/epmet/commons/tools/exception/EpmetErrorCode.java b/epmet-commons/epmet-commons-tools/src/main/java/com/epmet/commons/tools/exception/EpmetErrorCode.java
index 80100ea470..fffbc50cc8 100644
--- a/epmet-commons/epmet-commons-tools/src/main/java/com/epmet/commons/tools/exception/EpmetErrorCode.java
+++ b/epmet-commons/epmet-commons-tools/src/main/java/com/epmet/commons/tools/exception/EpmetErrorCode.java
@@ -108,6 +108,7 @@ public enum EpmetErrorCode {
OPER_EXTERNAL_APP_EXISTS(8711, "应用已存在"),
OPER_CUSTOMER_FOOTBAR_EXISTS(8712, "footbar已存在"),
OPER_CUSTOMER_FOOTBAR_NOT_FOUND(8713, "footbar不存在"),
+ OPER_EXT_APP_SECRET_RESET_FAIL(8712, "秘钥更新失败"),
// 党建声音 前端提示 88段
DRAFT_CONTENT_IS_NULL(8801, "至少需要添加一个段落"),
diff --git a/epmet-gateway/pom.xml b/epmet-gateway/pom.xml
index 847c53fbd2..42687e7517 100644
--- a/epmet-gateway/pom.xml
+++ b/epmet-gateway/pom.xml
@@ -182,7 +182,7 @@
lb://data-statistical-server
-
+
lb://epmet-openapi-scan
diff --git a/epmet-module/data-statistical/data-statistical-client/src/main/java/com/epmet/constant/IndexCalConstant.java b/epmet-module/data-statistical/data-statistical-client/src/main/java/com/epmet/constant/IndexCalConstant.java
index bc7295ccda..f02185071f 100644
--- a/epmet-module/data-statistical/data-statistical-client/src/main/java/com/epmet/constant/IndexCalConstant.java
+++ b/epmet-module/data-statistical/data-statistical-client/src/main/java/com/epmet/constant/IndexCalConstant.java
@@ -31,6 +31,8 @@ public interface IndexCalConstant {
String STREET_LEVEL = "street";
+ String DISTRICT_LEVEL = "district";
+
String COMMUNITY_RELATE = "shequxiangguan";
@@ -55,7 +57,9 @@ public interface IndexCalConstant {
String INDEX_DETAIL_LIST_NULL = "指标明细查询集合为空";
String COMMUNITY_PARTY_AVG_NULL = "查询下属所有【社区】的党建能力平均值集合为空";
String GRID_PARTY_AVG_NULL = "查询下属所有【网格】的党建能力平均值集合为空";
+ String DISTRICT_PARTY_AVG_NULL = "查询【区县】的党建能力平均值集合为空";
String STREET_PUBLISH_ARTICLE_LIST_NULL = "查询【街道】名义发文数量集合为空";
+ String DISTRICT_PUBLISH_ARTICLE_LIST_NULL = "查询【区/县】名义发文数量集合为空";
String COMMUNITY_PUBLISH_ARTICLE_LIST_NULL = "查询【社区】名义发文数量集合为空";
String INDEX_CODE_NULL = "指标Code未查询出对应字段 【 %s 】";
String STREET_GOVERN_ABILITY_NULL = "查询【街道】治理能力的六个五级指标集合为空";
diff --git a/epmet-module/data-statistical/data-statistical-client/src/main/java/com/epmet/dto/indexcal/SubAgencyScoreAvgResultDTO.java b/epmet-module/data-statistical/data-statistical-client/src/main/java/com/epmet/dto/indexcal/SubAgencyScoreAvgResultDTO.java
new file mode 100644
index 0000000000..f88e035b7b
--- /dev/null
+++ b/epmet-module/data-statistical/data-statistical-client/src/main/java/com/epmet/dto/indexcal/SubAgencyScoreAvgResultDTO.java
@@ -0,0 +1,51 @@
+package com.epmet.dto.indexcal;
+
+import lombok.Data;
+
+import java.io.Serializable;
+import java.math.BigDecimal;
+
+/**
+ * @Author zxc
+ * @DateTime 2020/9/4 9:32 上午
+ */
+@Data
+public class SubAgencyScoreAvgResultDTO implements Serializable {
+
+ private static final long serialVersionUID = 6913351504675726385L;
+
+ /**
+ *
+ */
+ private String customerId;
+
+ /**
+ * 机关ID
+ */
+ private String agencyId;
+
+ /**
+ * 上级组织ID
+ */
+ private String parentId;
+
+ /**
+ * 月度ID
+ */
+ private String monthId;
+
+ /**
+ * 季度ID
+ */
+ private String quarterId;
+
+ /**
+ * 年度ID
+ */
+ private String yearId;
+
+ /**
+ * 分数
+ */
+ private BigDecimal score;
+}
diff --git a/epmet-module/data-statistical/data-statistical-client/src/main/java/com/epmet/dto/indexcollect/form/GridPartyMemberDataDetailFormDTO.java b/epmet-module/data-statistical/data-statistical-client/src/main/java/com/epmet/dto/indexcollect/form/GridPartyMemberDataDetailFormDTO.java
new file mode 100644
index 0000000000..364b19c34f
--- /dev/null
+++ b/epmet-module/data-statistical/data-statistical-client/src/main/java/com/epmet/dto/indexcollect/form/GridPartyMemberDataDetailFormDTO.java
@@ -0,0 +1,96 @@
+package com.epmet.dto.indexcollect.form;
+
+import lombok.Data;
+
+import java.io.Serializable;
+import java.math.BigDecimal;
+
+/**
+ * 1、党建能力-党员相关指标上报(按照月份) 入参
+ *
+ * @author yinzuomei@elink-cn.com
+ * @date 2020/9/4 16:04
+ */
+@Data
+public class GridPartyMemberDataDetailFormDTO implements Serializable {
+ private static final long serialVersionUID = 2923515319015973995L;
+ /**
+ * 机关id:网格所属的组织id
+ */
+ private String agencyId;
+
+ /**
+ * 网格id
+ */
+ private String gridId;
+
+ /**
+ * yyyyMM
+ */
+ private String monthId;
+
+ /**
+ * yyyyQ1, yyyyQ2, yyyyQ3, yyyyQ4
+ */
+ private String quarterId;
+
+ /**
+ * yyyy
+ */
+ private String yearId;
+
+ /**
+ * 党员提出的话题数
+ */
+ private Integer createTopicCount;
+
+ /**
+ * 党员参与话题数(支持,反对,评论,浏览)
+ */
+ private Integer joinTopicCount;
+
+ /**
+ * 话题转议题数
+ */
+ private Integer shiftIssueCount;
+
+ /**
+ * 议题转项目数
+ */
+ private Integer shiftProjectCount;
+
+ /**
+ * 参加三会一课次数
+ */
+ private Integer joinThreeMeetsCount;
+
+ /**
+ * 自建群群众人数
+ */
+ private Integer groupUserCount;
+
+ /**
+ * 自建群活跃度-话题数
+ */
+ private Integer groupTopicCount;
+
+ /**
+ * 议题转项目率
+ */
+ private BigDecimal topicToIssueRatio;
+
+ /**
+ * 上级组织Id
+ */
+ private String parentId;
+
+ /**
+ * 党员自建群活跃群众人数(08-24)
+ */
+ private Integer groupActiveUserCount;
+
+ /**
+ * 用户id
+ */
+ private String userId;
+}
diff --git a/epmet-module/data-statistical/data-statistical-client/src/main/java/com/epmet/dto/indexcollect/form/GridPartyMemberDataFormDTO.java b/epmet-module/data-statistical/data-statistical-client/src/main/java/com/epmet/dto/indexcollect/form/GridPartyMemberDataFormDTO.java
index 3c7c7a5141..5a0a9fb3c8 100644
--- a/epmet-module/data-statistical/data-statistical-client/src/main/java/com/epmet/dto/indexcollect/form/GridPartyMemberDataFormDTO.java
+++ b/epmet-module/data-statistical/data-statistical-client/src/main/java/com/epmet/dto/indexcollect/form/GridPartyMemberDataFormDTO.java
@@ -3,8 +3,11 @@ package com.epmet.dto.indexcollect.form;
import lombok.Data;
import org.apache.poi.hpsf.Decimal;
+import javax.validation.constraints.NotBlank;
+import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.math.BigDecimal;
+import java.util.List;
/**
* 1、党建能力-党员相关指标上报(按照月份) 入参
@@ -17,82 +20,14 @@ public class GridPartyMemberDataFormDTO implements Serializable {
private static final long serialVersionUID = 1L;
/**
- * 机关id:网格所属的组织id
+ * 当为true时后台将删除本月数据
*/
- private String agencyId;
-
- /**
- * 网格id
- */
- private String gridId;
+ private Boolean isFirst;
/**
* yyyyMM
*/
private String monthId;
- /**
- * yyyyQ1, yyyyQ2, yyyyQ3, yyyyQ4
- */
- private String quarterId;
-
- /**
- * yyyy
- */
- private String yearId;
-
- /**
- * 党员提出的话题数
- */
- private Integer createTopicCount;
-
- /**
- * 党员参与话题数(支持,反对,评论,浏览)
- */
- private Integer joinTopicCount;
-
- /**
- * 话题转议题数
- */
- private Integer shiftIssueCount;
-
- /**
- * 议题转项目数
- */
- private Integer shiftProjectCount;
-
- /**
- * 参加三会一课次数
- */
- private Integer joinThreeMeetsCount;
-
- /**
- * 自建群群众人数
- */
- private Integer groupUserCount;
-
- /**
- * 自建群活跃度-话题数
- */
- private Integer groupTopicCount;
-
- /**
- * 议题转项目率
- */
- private BigDecimal topicToIssueRatio;
-
- /**
- * 上级组织Id
- */
- private String parentId;
-
- /**
- * 党员自建群活跃群众人数(08-24)
- */
- private Integer groupActiveUserCount;
-
- /**
- * 用户id
- */
- private String userId;
+ private List partyMemberDataList;
}
diff --git a/epmet-module/data-statistical/data-statistical-client/src/main/java/com/epmet/dto/screen/FactIndexGridScoreDTO.java b/epmet-module/data-statistical/data-statistical-client/src/main/java/com/epmet/dto/screen/FactIndexGridScoreDTO.java
index 6590da34cb..4d26f40f48 100644
--- a/epmet-module/data-statistical/data-statistical-client/src/main/java/com/epmet/dto/screen/FactIndexGridScoreDTO.java
+++ b/epmet-module/data-statistical/data-statistical-client/src/main/java/com/epmet/dto/screen/FactIndexGridScoreDTO.java
@@ -60,24 +60,24 @@ public class FactIndexGridScoreDTO implements Serializable {
private String monthId;
/**
- * 总指数分值
+ * 年维度Id: yyyy
*/
- private BigDecimal totalScore;
+ private String yearId;
/**
- * 党建能力分值
+ * 1:总分;0不是;默认0
*/
- private BigDecimal partyAblityScore;
+ private String isTotal;
/**
- * 治理能力分值
+ * 分值
*/
- private BigDecimal govrnAblityScore;
+ private BigDecimal score;
/**
- * 服务能力分值
+ * 党建能力:dangjiannengli;治理能力:zhilinengli;服务能力:fuwunengli;网格相关(前三者之和):wanggexiangguan
*/
- private BigDecimal serviceAblityScore;
+ private String indexCode;
/**
* 删除标识 0未删除;1已删除
@@ -109,4 +109,4 @@ public class FactIndexGridScoreDTO implements Serializable {
*/
private Date updatedTime;
-}
\ No newline at end of file
+}
diff --git a/epmet-module/data-statistical/data-statistical-client/src/main/java/com/epmet/dto/screencoll/form/DifficultyDataDetailFormDTO.java b/epmet-module/data-statistical/data-statistical-client/src/main/java/com/epmet/dto/screencoll/form/DifficultyDataDetailFormDTO.java
new file mode 100644
index 0000000000..ab77a2363c
--- /dev/null
+++ b/epmet-module/data-statistical/data-statistical-client/src/main/java/com/epmet/dto/screencoll/form/DifficultyDataDetailFormDTO.java
@@ -0,0 +1,105 @@
+package com.epmet.dto.screencoll.form;
+
+import lombok.Data;
+
+import java.io.Serializable;
+
+/**
+ * 描述一下
+ *
+ * @author yinzuomei@elink-cn.com
+ * @date 2020/9/4 15:43
+ */
+@Data
+public class DifficultyDataDetailFormDTO implements Serializable {
+ private static final long serialVersionUID = 4893795146396420078L;
+ /**
+ * 组织类别 agency:组织;部门:department;网格:grid
+ */
+ private String orgType;
+
+ /**
+ * 组织Id 可以为网格,机关id
+ */
+ private String orgId;
+
+ /**
+ * 上级组织Id
+ */
+ private String parentId;
+
+ /**
+ * 组织名称
+ */
+ private String orgName;
+
+ /**
+ * 事件原Id
+ */
+ private String eventId;
+
+ /**
+ * 事件图片 URL
+ */
+ private String eventImgUrl;
+
+ /**
+ * 事件来源 eg: XXX街道-xx社区-网格
+ */
+ private String eventSource;
+
+ /**
+ * 事件内容
+ */
+ private String eventContent;
+
+ /**
+ * 事件耗时单位:分钟
+ */
+ private Integer eventCostTime;
+
+ /**
+ * 事件设计部门数
+ */
+ private Integer eventReOrg;
+
+ /**
+ * 事件类别编码
+ */
+ private String eventCategoryCode;
+
+ /**
+ * 事件状态编码
+ */
+ private String eventStatusCode;
+
+ /**
+ * 事件类别名称
+ */
+ private String eventCategoryName;
+
+ /**
+ * 事件状态描述
+ */
+ private String eventStatusDesc;
+
+ /**
+ * 最近一次操作说明 eg: 转项目,结案,流转
+ */
+ private String latestOperateDesc;
+
+ /**
+ * 事件被处理次数(08-21新增)
+ */
+ private Integer eventHandledCount;
+
+ /**
+ * 数据更新至: yyyy|yyyyMM|yyyyMMdd(08-21新增)
+ */
+ private String dataEndTime;
+
+ /**
+ * 所有上级ID,用英文逗号分开(8.26新增)
+ */
+ private String allParentIds;
+}
diff --git a/epmet-module/data-statistical/data-statistical-client/src/main/java/com/epmet/dto/screencoll/form/DifficultyDataFormDTO.java b/epmet-module/data-statistical/data-statistical-client/src/main/java/com/epmet/dto/screencoll/form/DifficultyDataFormDTO.java
index e446e073a3..a0de181acb 100644
--- a/epmet-module/data-statistical/data-statistical-client/src/main/java/com/epmet/dto/screencoll/form/DifficultyDataFormDTO.java
+++ b/epmet-module/data-statistical/data-statistical-client/src/main/java/com/epmet/dto/screencoll/form/DifficultyDataFormDTO.java
@@ -3,6 +3,7 @@ package com.epmet.dto.screencoll.form;
import lombok.Data;
import java.io.Serializable;
+import java.util.List;
/**
* 3、难点赌点 入参
@@ -11,96 +12,15 @@ import java.io.Serializable;
*/
@Data
public class DifficultyDataFormDTO implements Serializable {
-
private static final long serialVersionUID = 1L;
-
/**
- * 组织类别 agency:组织;部门:department;网格:grid
+ * 当为true时后台将删除本月数据
*/
- private String orgType;
+ private Boolean isFirst;
/**
- * 组织Id 可以为网格,机关id
+ * 难点堵点数据
*/
- private String orgId;
+ private List diffcultyDataList;
- /**
- * 上级组织Id
- */
- private String parentId;
-
- /**
- * 组织名称
- */
- private String orgName;
-
- /**
- * 事件原Id
- */
- private String eventId;
-
- /**
- * 事件图片 URL
- */
- private String eventImgUrl;
-
- /**
- * 事件来源 eg: XXX街道-xx社区-网格
- */
- private String eventSource;
-
- /**
- * 事件内容
- */
- private String eventContent;
-
- /**
- * 事件耗时单位:分钟
- */
- private Integer eventCostTime;
-
- /**
- * 事件设计部门数
- */
- private Integer eventReOrg;
-
- /**
- * 事件类别编码
- */
- private String eventCategoryCode;
-
- /**
- * 事件状态编码
- */
- private String eventStatusCode;
-
- /**
- * 事件类别名称
- */
- private String eventCategoryName;
-
- /**
- * 事件状态描述
- */
- private String eventStatusDesc;
-
- /**
- * 最近一次操作说明 eg: 转项目,结案,流转
- */
- private String latestOperateDesc;
-
- /**
- * 事件被处理次数(08-21新增)
- */
- private Integer eventHandledCount;
-
- /**
- * 数据更新至: yyyy|yyyyMM|yyyyMMdd(08-21新增)
- */
- private String dataEndTime;
-
- /**
- * 所有上级ID,用英文逗号分开(8.26新增)
- */
- private String allParentIds;
}
diff --git a/epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/constant/OrgTypeConstant.java b/epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/constant/OrgTypeConstant.java
new file mode 100644
index 0000000000..95919792d9
--- /dev/null
+++ b/epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/constant/OrgTypeConstant.java
@@ -0,0 +1,33 @@
+/**
+ * Copyright (c) 2018 人人开源 All rights reserved.
+ *
+ * https://www.renren.io
+ *
+ * 版权所有,侵权必究!
+ */
+
+package com.epmet.constant;
+
+/**
+ * 组织类别 常量
+ *
+ * @author sun
+ * @since 1.0.0
+ */
+public interface OrgTypeConstant {
+
+ /**
+ * 部门
+ */
+ String DEPARTMENT = "department";
+
+ /**
+ * 网格
+ */
+ String GRID = "grid";
+
+ /**
+ * 组织
+ */
+ String AGENCY = "agency";
+}
diff --git a/epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/controller/DemoController.java b/epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/controller/DemoController.java
index 380b2f3b86..397d99df7a 100644
--- a/epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/controller/DemoController.java
+++ b/epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/controller/DemoController.java
@@ -17,10 +17,7 @@ import com.epmet.entity.evaluationindex.indexcoll.FactIndexServiceAblityGridMont
import com.epmet.entity.evaluationindex.screen.ScreenCustomerGridEntity;
import com.epmet.entity.stats.DimAgencyEntity;
import com.epmet.service.StatsDemoService;
-import com.epmet.service.evaluationindex.indexcal.DeptScoreService;
-import com.epmet.service.evaluationindex.indexcal.GridCorreLationService;
-import com.epmet.service.evaluationindex.indexcal.IndexCalculateCommunityService;
-import com.epmet.service.evaluationindex.indexcal.IndexCalculateStreetService;
+import com.epmet.service.evaluationindex.indexcal.*;
import com.epmet.service.stats.DimAgencyService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
@@ -56,6 +53,8 @@ public class DemoController {
private IndexCalculateStreetService indexCalculateStreetService;
@Autowired
private DeptScoreService deptScoreService;
+ @Autowired
+ private IndexCalculateDistrictService indexCalculateDistrictService;
@GetMapping("testAlarm")
public void testAlarm() {
@@ -456,4 +455,11 @@ public class DemoController {
String monthId = "202008";
indexCalculateStreetService.calStreetAll(customerId,monthId);
}
+
+ @PostMapping("districtZxc")
+ public void getDistrict(){
+ String customerId = "b09527201c4409e19d1dbc5e3c3429a1";
+ String monthId = "202008";
+ indexCalculateDistrictService.calDistrictAll(customerId,monthId);
+ }
}
diff --git a/epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/controller/FactIndexCollectController.java b/epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/controller/FactIndexCollectController.java
index eaa7c921b1..138ab5cbb7 100644
--- a/epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/controller/FactIndexCollectController.java
+++ b/epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/controller/FactIndexCollectController.java
@@ -4,12 +4,10 @@ import com.epmet.commons.extappauth.annotation.ExternalAppRequestAuth;
import com.epmet.commons.extappauth.bean.ExternalAppRequestParam;
import com.epmet.commons.tools.utils.Result;
import com.epmet.dto.indexcollect.form.*;
+import com.epmet.dto.screencoll.form.IndexDataMonthlyFormDTO;
import com.epmet.service.evaluationindex.indexcoll.FactIndexCollectService;
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;
@@ -37,8 +35,8 @@ public class FactIndexCollectController {
**/
@ExternalAppRequestAuth
@PostMapping("gridpartymemberdata")
- public Result gridPartyMemberData(ExternalAppRequestParam externalAppRequestParam, @RequestBody List formDTO) {
- factIndexCollectService.insertGridPartyMemberData(formDTO, externalAppRequestParam.getCustomerId());
+ public Result gridPartyMemberData(ExternalAppRequestParam externalAppRequestParam, @RequestBody GridPartyMemberDataFormDTO formDTO) {
+ factIndexCollectService.insertGridPartyMemberData(formDTO,externalAppRequestParam.getCustomerId() );
return new Result();
}
diff --git a/epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/controller/ScreenCollController.java b/epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/controller/ScreenCollController.java
index 99ba483433..d83f8df3c5 100644
--- a/epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/controller/ScreenCollController.java
+++ b/epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/controller/ScreenCollController.java
@@ -133,7 +133,7 @@ public class ScreenCollController {
**/
@ExternalAppRequestAuth
@PostMapping("difficultydata")
- public Result difficultyData(ExternalAppRequestParam externalAppRequestParam, @RequestBody List formDTO) {
+ public Result difficultyData(ExternalAppRequestParam externalAppRequestParam, @RequestBody DifficultyDataFormDTO formDTO) {
screenCollService.insertDifficultyData(formDTO, externalAppRequestParam.getCustomerId());
return new Result();
}
diff --git a/epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/dao/evaluationindex/indexcal/AgencyScoreDao.java b/epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/dao/evaluationindex/indexcal/AgencyScoreDao.java
index 5c6a90ad02..b30d2751d1 100644
--- a/epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/dao/evaluationindex/indexcal/AgencyScoreDao.java
+++ b/epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/dao/evaluationindex/indexcal/AgencyScoreDao.java
@@ -19,7 +19,7 @@ package com.epmet.dao.evaluationindex.indexcal;
import com.epmet.commons.mybatis.dao.BaseDao;
import com.epmet.dto.indexcal.AgencyScoreDTO;
-import com.epmet.dto.screen.FactIndexCommunityScoreDTO;
+import com.epmet.dto.indexcal.SubAgencyScoreAvgResultDTO;
import com.epmet.entity.evaluationindex.indexcal.AgencyScoreEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
@@ -27,7 +27,7 @@ import org.apache.ibatis.annotations.Param;
import java.util.List;
/**
- * 区/街道相关分数表
+ * 区/街道相关分数表
*
* @author generator generator@elink-cn.com
* @since v1.0.0 2020-09-02
@@ -54,12 +54,31 @@ public interface AgencyScoreDao extends BaseDao {
void deleteOldRecord(@Param("customerId") String customerId, @Param("monthId")String monthId, @Param("indexCode")String indexCode,@Param("dataType")String dataType);
/**
- * @Description 查询街道相关信息
+ * @Description 查询【fact_index_agency_score】相关信息
* @param customerId
* @param monthId
* @author zxc
* @date 2020/9/1 9:41 上午
*/
- List selectStreetInfo(@Param("customerId") String customerId, @Param("monthId")String monthId,@Param("dataType")String dataType);
+ List selectAgencyScoreInfo(@Param("customerId") String customerId, @Param("monthId")String monthId, @Param("dataType")String dataType);
-}
\ No newline at end of file
+ /**
+ * @Description 区下级街道得分平均值
+ * @param customerId
+ * @param monthId
+ * @author zxc
+ * @date 2020/8/31 1:51 下午
+ */
+ List selectAgencyScoreAvg(@Param("customerId")String customerId, @Param("monthId")String monthId, @Param("indexCode")String indexCode);
+
+
+ /**
+ * 根据入参查询 区/街道相关分数表 记录
+ * @param customerId
+ * @param monthId
+ * @return java.util.List
+ * @Author zhangyong
+ * @Date 10:43 2020-09-03
+ **/
+ List selectListAgencyScore(@Param("customerId")String customerId, @Param("monthId")String monthId);
+}
diff --git a/epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/dao/evaluationindex/indexcal/DeptScoreDao.java b/epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/dao/evaluationindex/indexcal/DeptScoreDao.java
index 4f670bbfe2..b77849a5d5 100644
--- a/epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/dao/evaluationindex/indexcal/DeptScoreDao.java
+++ b/epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/dao/evaluationindex/indexcal/DeptScoreDao.java
@@ -18,8 +18,13 @@
package com.epmet.dao.evaluationindex.indexcal;
import com.epmet.commons.mybatis.dao.BaseDao;
+import com.epmet.dto.indexcal.DeptScoreDTO;
+import com.epmet.dto.indexcal.SubAgencyScoreAvgResultDTO;
import com.epmet.entity.evaluationindex.indexcal.DeptScoreEntity;
import org.apache.ibatis.annotations.Mapper;
+import org.apache.ibatis.annotations.Param;
+
+import java.util.List;
/**
* 区直部门分值表
@@ -29,5 +34,26 @@ import org.apache.ibatis.annotations.Mapper;
*/
@Mapper
public interface DeptScoreDao extends BaseDao {
-
-}
\ No newline at end of file
+
+ /**
+ * 根据入参查询 区直部门分值表 记录
+ * @param customerId
+ * @param monthId
+ * @return java.util.List
+ * @Author zhangyong
+ * @Date 10:43 2020-09-03
+ **/
+ List selectListDeptScore(@Param("customerId")String customerId, @Param("monthId")String monthId);
+
+
+ /**
+ * @Description 所有直属部门治理能力平均值
+ * @param customerId
+ * @param monthId
+ * @param indexCode
+ * @author zxc
+ * @date 2020/9/4 10:53 上午
+ */
+ List selectGovernDeptScoreAvg(@Param("customerId")String customerId, @Param("monthId")String monthId, @Param("indexCode")String indexCode);
+
+}
diff --git a/epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/dao/evaluationindex/indexcoll/FactIndexGovrnAblityDeptMonthlyDao.java b/epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/dao/evaluationindex/indexcoll/FactIndexGovrnAblityDeptMonthlyDao.java
index abdabd7465..5a9350a63e 100644
--- a/epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/dao/evaluationindex/indexcoll/FactIndexGovrnAblityDeptMonthlyDao.java
+++ b/epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/dao/evaluationindex/indexcoll/FactIndexGovrnAblityDeptMonthlyDao.java
@@ -18,6 +18,7 @@ package com.epmet.dao.evaluationindex.indexcoll; /**
import com.epmet.commons.mybatis.dao.BaseDao;
import com.epmet.dto.indexcal.CalculateCommonFormDTO;
+import com.epmet.dto.indexcal.SubAgencyScoreAvgResultDTO;
import com.epmet.dto.indexcollect.form.DeptGovrnAbilityFormDTO;
import com.epmet.entity.evaluationindex.indexcoll.FactIndexGovrnAblityDeptMonthlyEntity;
import org.apache.ibatis.annotations.Mapper;
diff --git a/epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/dao/evaluationindex/indexcoll/FactIndexPartyAblityCpcMonthlyDao.java b/epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/dao/evaluationindex/indexcoll/FactIndexPartyAblityCpcMonthlyDao.java
index c23bf91b4c..ffdc533581 100644
--- a/epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/dao/evaluationindex/indexcoll/FactIndexPartyAblityCpcMonthlyDao.java
+++ b/epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/dao/evaluationindex/indexcoll/FactIndexPartyAblityCpcMonthlyDao.java
@@ -18,6 +18,7 @@
package com.epmet.dao.evaluationindex.indexcoll;
import com.epmet.commons.mybatis.dao.BaseDao;
+import com.epmet.dto.indexcollect.form.GridPartyMemberDataDetailFormDTO;
import com.epmet.dto.indexcollect.form.GridPartyMemberDataFormDTO;
import com.epmet.entity.evaluationindex.indexcoll.FactIndexPartyAblityCpcMonthlyEntity;
import org.apache.ibatis.annotations.Mapper;
@@ -40,22 +41,12 @@ public interface FactIndexPartyAblityCpcMonthlyDao extends BaseDao list,
+ int batchInsertFactIndexPartyAblityCpcMonthly(@Param("list") List list,
@Param("customerId") String customerId);
List