Browse Source

Merge branch 'master' into feature/lc_personExport

# Conflicts:
#	esua-epdc/epdc-gateway/pom.xml
#	esua-epdc/epdc-module/epdc-custom/epdc-custom-server/src/main/java/com/elink/esua/epdc/modules/enterprisereport/service/impl/EnterpriseReportServiceImpl.java
feature/screenDataPush
zhangyongzhangyong 4 years ago
parent
commit
6e717c4aad
  1. 16
      esua-epdc/epdc-admin/epdc-admin-server/pom.xml
  2. 12
      esua-epdc/epdc-admin/epdc-admin-server/src/main/java/com/elink/esua/epdc/controller/SysDeptController.java
  3. 9
      esua-epdc/epdc-admin/epdc-admin-server/src/main/java/com/elink/esua/epdc/dao/SysDeptDao.java
  4. 9
      esua-epdc/epdc-admin/epdc-admin-server/src/main/java/com/elink/esua/epdc/service/SysDeptService.java
  5. 66
      esua-epdc/epdc-admin/epdc-admin-server/src/main/java/com/elink/esua/epdc/service/impl/SysDeptServiceImpl.java
  6. 14
      esua-epdc/epdc-admin/epdc-admin-server/src/main/resources/mapper/SysDeptDao.xml
  7. 16
      esua-epdc/epdc-auth/pom.xml
  8. 16
      esua-epdc/epdc-commons/epdc-commons-tools/src/main/java/com/elink/esua/epdc/commons/tools/constant/EpmetConstant.java
  9. 11
      esua-epdc/epdc-commons/epdc-commons-tools/src/main/java/com/elink/esua/epdc/commons/tools/redis/RedisKeys.java
  10. 6
      esua-epdc/epdc-commons/epdc-commons-tools/src/main/java/com/elink/esua/epdc/commons/tools/security/content/CheckDataUtils.java
  11. 10
      esua-epdc/epdc-commons/epdc-commons-tools/src/main/java/com/elink/esua/epdc/commons/tools/utils/DateUtils.java
  12. 16
      esua-epdc/epdc-gateway/pom.xml
  13. 141
      esua-epdc/epdc-module/epdc-analysis/epdc-analysis-client/src/main/java/com/elink/esua/epdc/dto/screen/result/ScreenAgencyGovernDailyResultDTO.java
  14. 106
      esua-epdc/epdc-module/epdc-analysis/epdc-analysis-client/src/main/java/com/elink/esua/epdc/dto/screen/result/ScreenGovernRankDataDailyResultDTO.java
  15. 14
      esua-epdc/epdc-module/epdc-analysis/epdc-analysis-client/src/main/java/com/elink/esua/epdc/dto/screen/result/ScreenGovernanceResultDTO.java
  16. 156
      esua-epdc/epdc-module/epdc-analysis/epdc-analysis-client/src/main/java/com/elink/esua/epdc/dto/screen/result/ScreenGridGovernDailyResultDTO.java
  17. 18
      esua-epdc/epdc-module/epdc-analysis/epdc-analysis-server/pom.xml
  18. 70
      esua-epdc/epdc-module/epdc-analysis/epdc-analysis-server/src/main/java/com/elink/esua/epdc/modules/screen/controller/ScreenGovernanceController.java
  19. 84
      esua-epdc/epdc-module/epdc-analysis/epdc-analysis-server/src/main/java/com/elink/esua/epdc/modules/screen/dao/ScreenGovernanceDao.java
  20. 44
      esua-epdc/epdc-module/epdc-analysis/epdc-analysis-server/src/main/java/com/elink/esua/epdc/modules/screen/service/ScreenGovernanceService.java
  21. 145
      esua-epdc/epdc-module/epdc-analysis/epdc-analysis-server/src/main/java/com/elink/esua/epdc/modules/screen/service/impl/ScreenGovernanceServiceImpl.java
  22. 895
      esua-epdc/epdc-module/epdc-analysis/epdc-analysis-server/src/main/resources/mapper/screen/ScreenGovernanceDao.xml
  23. 16
      esua-epdc/epdc-module/epdc-api/epdc-api-server/pom.xml
  24. 43
      esua-epdc/epdc-module/epdc-api/epdc-api-server/src/main/java/com/elink/esua/epdc/controller/ApiActUserRelationController.java
  25. 18
      esua-epdc/epdc-module/epdc-api/epdc-api-server/src/main/java/com/elink/esua/epdc/controller/ApiScreenPopulationController.java
  26. 10
      esua-epdc/epdc-module/epdc-api/epdc-api-server/src/main/java/com/elink/esua/epdc/feign/AdminFeignClient.java
  27. 18
      esua-epdc/epdc-module/epdc-api/epdc-api-server/src/main/java/com/elink/esua/epdc/feign/AppActUserRelationFeignClient.java
  28. 11
      esua-epdc/epdc-module/epdc-api/epdc-api-server/src/main/java/com/elink/esua/epdc/feign/CustomFeignClient.java
  29. 5
      esua-epdc/epdc-module/epdc-api/epdc-api-server/src/main/java/com/elink/esua/epdc/feign/fallback/AdminFeignClientFallback.java
  30. 12
      esua-epdc/epdc-module/epdc-api/epdc-api-server/src/main/java/com/elink/esua/epdc/feign/fallback/AppActUserRelationFeignClientFallback.java
  31. 5
      esua-epdc/epdc-module/epdc-api/epdc-api-server/src/main/java/com/elink/esua/epdc/feign/fallback/CustomFeignClientFallback.java
  32. 17
      esua-epdc/epdc-module/epdc-api/epdc-api-server/src/main/java/com/elink/esua/epdc/service/ActUserRelationService.java
  33. 10
      esua-epdc/epdc-module/epdc-api/epdc-api-server/src/main/java/com/elink/esua/epdc/service/CustomService.java
  34. 15
      esua-epdc/epdc-module/epdc-api/epdc-api-server/src/main/java/com/elink/esua/epdc/service/impl/ActUserRelationServiceImpl.java
  35. 2
      esua-epdc/epdc-module/epdc-api/epdc-api-server/src/main/java/com/elink/esua/epdc/service/impl/AppUserServiceImpl.java
  36. 5
      esua-epdc/epdc-module/epdc-api/epdc-api-server/src/main/java/com/elink/esua/epdc/service/impl/CustomServiceImpl.java
  37. 16
      esua-epdc/epdc-module/epdc-content-security/epdc-content-security-server/pom.xml
  38. 5
      esua-epdc/epdc-module/epdc-custom/epdc-custom-client/src/main/java/com/elink/esua/epdc/constant/CustomImageConstant.java
  39. 129
      esua-epdc/epdc-module/epdc-custom/epdc-custom-client/src/main/java/com/elink/esua/epdc/dto/ScreenCompanyDTO.java
  40. 29
      esua-epdc/epdc-module/epdc-custom/epdc-custom-client/src/main/java/com/elink/esua/epdc/dto/form/EpdcScreenCompanyListFormDTO.java
  41. 57
      esua-epdc/epdc-module/epdc-custom/epdc-custom-client/src/main/java/com/elink/esua/epdc/dto/result/EpdcScreenCompanyListResultDTO.java
  42. 13
      esua-epdc/epdc-module/epdc-custom/epdc-custom-client/src/main/java/com/elink/esua/epdc/dto/result/ScreenCompanyImagesResultDTO.java
  43. 16
      esua-epdc/epdc-module/epdc-custom/epdc-custom-server/pom.xml
  44. 111
      esua-epdc/epdc-module/epdc-custom/epdc-custom-server/src/main/java/com/elink/esua/epdc/modules/epidemic/controller/ScreenCompanyController.java
  45. 58
      esua-epdc/epdc-module/epdc-custom/epdc-custom-server/src/main/java/com/elink/esua/epdc/modules/epidemic/dao/ScreenCompanyDao.java
  46. 91
      esua-epdc/epdc-module/epdc-custom/epdc-custom-server/src/main/java/com/elink/esua/epdc/modules/epidemic/entity/ScreenCompanyEntity.java
  47. 86
      esua-epdc/epdc-module/epdc-custom/epdc-custom-server/src/main/java/com/elink/esua/epdc/modules/epidemic/excel/ScreenCompanyExcel.java
  48. 107
      esua-epdc/epdc-module/epdc-custom/epdc-custom-server/src/main/java/com/elink/esua/epdc/modules/epidemic/service/ScreenCompanyService.java
  49. 140
      esua-epdc/epdc-module/epdc-custom/epdc-custom-server/src/main/java/com/elink/esua/epdc/modules/epidemic/service/impl/ScreenCompanyServiceImpl.java
  50. 13
      esua-epdc/epdc-module/epdc-custom/epdc-custom-server/src/main/java/com/elink/esua/epdc/modules/reportissue/dao/CustomImgDao.java
  51. 13
      esua-epdc/epdc-module/epdc-custom/epdc-custom-server/src/main/java/com/elink/esua/epdc/modules/reportissue/service/CustomImgService.java
  52. 8
      esua-epdc/epdc-module/epdc-custom/epdc-custom-server/src/main/java/com/elink/esua/epdc/modules/reportissue/service/impl/CustomImgServiceImpl.java
  53. 82
      esua-epdc/epdc-module/epdc-custom/epdc-custom-server/src/main/resources/mapper/epidemic/ScreenCompanyDao.xml
  54. 6
      esua-epdc/epdc-module/epdc-custom/epdc-custom-server/src/main/resources/mapper/reportissue/CustomImgDao.xml
  55. 16
      esua-epdc/epdc-module/epdc-events/epdc-events-server/pom.xml
  56. 16
      esua-epdc/epdc-module/epdc-group/epdc-group-server/pom.xml
  57. 6
      esua-epdc/epdc-module/epdc-heart/epdc-heart-client/src/main/java/com/elink/esua/epdc/activity/ActInfoDTO.java
  58. 86
      esua-epdc/epdc-module/epdc-heart/epdc-heart-client/src/main/java/com/elink/esua/epdc/activity/ActPeriodDTO.java
  59. 81
      esua-epdc/epdc-module/epdc-heart/epdc-heart-client/src/main/java/com/elink/esua/epdc/activity/ActPeriodUserDTO.java
  60. 8
      esua-epdc/epdc-module/epdc-heart/epdc-heart-client/src/main/java/com/elink/esua/epdc/activity/ActUserRelationDTO.java
  61. 7
      esua-epdc/epdc-module/epdc-heart/epdc-heart-client/src/main/java/com/elink/esua/epdc/activity/form/ActInfoAppFormDTO.java
  62. 29
      esua-epdc/epdc-module/epdc-heart/epdc-heart-client/src/main/java/com/elink/esua/epdc/activity/form/EpdcActSignupFormDTO.java
  63. 5
      esua-epdc/epdc-module/epdc-heart/epdc-heart-client/src/main/java/com/elink/esua/epdc/activity/result/ActInfoDetailResultDTO.java
  64. 7
      esua-epdc/epdc-module/epdc-heart/epdc-heart-client/src/main/java/com/elink/esua/epdc/activity/result/ActUserRelationResultDTO.java
  65. 16
      esua-epdc/epdc-module/epdc-heart/epdc-heart-server/pom.xml
  66. 5
      esua-epdc/epdc-module/epdc-heart/epdc-heart-server/src/main/java/com/elink/esua/epdc/modules/activity/controller/ActInfoController.java
  67. 84
      esua-epdc/epdc-module/epdc-heart/epdc-heart-server/src/main/java/com/elink/esua/epdc/modules/activity/controller/ActPeriodController.java
  68. 87
      esua-epdc/epdc-module/epdc-heart/epdc-heart-server/src/main/java/com/elink/esua/epdc/modules/activity/controller/ActPeriodUserController.java
  69. 21
      esua-epdc/epdc-module/epdc-heart/epdc-heart-server/src/main/java/com/elink/esua/epdc/modules/activity/controller/AppActUserRelationController.java
  70. 67
      esua-epdc/epdc-module/epdc-heart/epdc-heart-server/src/main/java/com/elink/esua/epdc/modules/activity/dao/ActPeriodDao.java
  71. 56
      esua-epdc/epdc-module/epdc-heart/epdc-heart-server/src/main/java/com/elink/esua/epdc/modules/activity/dao/ActPeriodUserDao.java
  72. 56
      esua-epdc/epdc-module/epdc-heart/epdc-heart-server/src/main/java/com/elink/esua/epdc/modules/activity/entity/ActPeriodEntity.java
  73. 51
      esua-epdc/epdc-module/epdc-heart/epdc-heart-server/src/main/java/com/elink/esua/epdc/modules/activity/entity/ActPeriodUserEntity.java
  74. 115
      esua-epdc/epdc-module/epdc-heart/epdc-heart-server/src/main/java/com/elink/esua/epdc/modules/activity/service/ActPeriodService.java
  75. 116
      esua-epdc/epdc-module/epdc-heart/epdc-heart-server/src/main/java/com/elink/esua/epdc/modules/activity/service/ActPeriodUserService.java
  76. 11
      esua-epdc/epdc-module/epdc-heart/epdc-heart-server/src/main/java/com/elink/esua/epdc/modules/activity/service/ActUserRelationService.java
  77. 85
      esua-epdc/epdc-module/epdc-heart/epdc-heart-server/src/main/java/com/elink/esua/epdc/modules/activity/service/impl/ActInfoServiceImpl.java
  78. 121
      esua-epdc/epdc-module/epdc-heart/epdc-heart-server/src/main/java/com/elink/esua/epdc/modules/activity/service/impl/ActPeriodServiceImpl.java
  79. 111
      esua-epdc/epdc-module/epdc-heart/epdc-heart-server/src/main/java/com/elink/esua/epdc/modules/activity/service/impl/ActPeriodUserServiceImpl.java
  80. 31
      esua-epdc/epdc-module/epdc-heart/epdc-heart-server/src/main/java/com/elink/esua/epdc/modules/activity/service/impl/ActUserRelationServiceImpl.java
  81. 4
      esua-epdc/epdc-module/epdc-heart/epdc-heart-server/src/main/resources/mapper/activity/ActInfoDao.xml
  82. 41
      esua-epdc/epdc-module/epdc-heart/epdc-heart-server/src/main/resources/mapper/activity/ActPeriodDao.xml
  83. 40
      esua-epdc/epdc-module/epdc-heart/epdc-heart-server/src/main/resources/mapper/activity/ActPeriodUserDao.xml
  84. 17
      esua-epdc/epdc-module/epdc-heart/epdc-heart-server/src/main/resources/mapper/activity/ActUserRelationDao.xml
  85. 33
      esua-epdc/epdc-module/epdc-job/epdc-job-client/src/main/java/com/elink/esua/epdc/dto/ScreenGovernanceParamDTO.java
  86. 16
      esua-epdc/epdc-module/epdc-job/epdc-job-server/pom.xml
  87. 34
      esua-epdc/epdc-module/epdc-job/epdc-job-server/src/main/java/com/elink/esua/epdc/feign/AnalysisFeignClient.java
  88. 15
      esua-epdc/epdc-module/epdc-job/epdc-job-server/src/main/java/com/elink/esua/epdc/feign/fallback/AnalysisFeignClientFallback.java
  89. 21
      esua-epdc/epdc-module/epdc-job/epdc-job-server/src/main/java/com/elink/esua/epdc/task/screen/ScreenGovernancePushTask.java
  90. 97
      esua-epdc/epdc-module/epdc-job/epdc-job-server/src/main/java/com/elink/esua/epdc/task/screen/ScreenGovernancePushTaskImpl.java
  91. 16
      esua-epdc/epdc-module/epdc-kpi/epdc-kpi-server/pom.xml
  92. 16
      esua-epdc/epdc-module/epdc-message/epdc-message-server/pom.xml
  93. 16
      esua-epdc/epdc-module/epdc-news/epdc-news-server/pom.xml
  94. 16
      esua-epdc/epdc-module/epdc-oss/epdc-oss-server/pom.xml
  95. 16
      esua-epdc/epdc-module/epdc-party-group/epdc-party-group-server/pom.xml
  96. 16
      esua-epdc/epdc-module/epdc-points/epdc-points-server/pom.xml
  97. 16
      esua-epdc/epdc-module/epdc-user/epdc-user-server/pom.xml
  98. 16
      esua-epdc/epdc-module/epdc-websocket/epdc-websocket-server/pom.xml

16
esua-epdc/epdc-admin/epdc-admin-server/pom.xml

@ -145,10 +145,10 @@
<server.port>9092</server.port>
<spring.profiles.active>dev</spring.profiles.active>
<spring.redis.index>2</spring.redis.index>
<spring.redis.host>114.215.125.123</spring.redis.host>
<spring.redis.port>9603</spring.redis.port>
<spring.redis.password>epdc!redis@master1405</spring.redis.password>
<spring.redis.index>11</spring.redis.index>
<spring.redis.host>r-m5eh5czgb1nucti6azpd.redis.rds.aliyuncs.com</spring.redis.host>
<spring.redis.port>10001</spring.redis.port>
<spring.redis.password>elink!888</spring.redis.password>
<spring.datasource.druid.url>
<![CDATA[jdbc:mysql://rm-m5eguiv2827bdye798o.mysql.rds.aliyuncs.com:10001/js_esua_epdc_admin?allowMultiQueries=true&useUnicode=true&characterEncoding=UTF-8&useSSL=false&serverTimezone=Asia/Shanghai]]>
@ -188,10 +188,10 @@
<server.port>11002</server.port>
<spring.profiles.active>test</spring.profiles.active>
<spring.redis.index>2</spring.redis.index>
<spring.redis.host>114.215.125.123</spring.redis.host>
<spring.redis.port>9603</spring.redis.port>
<spring.redis.password>epdc!redis@master1405</spring.redis.password>
<spring.redis.index>11</spring.redis.index>
<spring.redis.host>r-m5eh5czgb1nucti6azpd.redis.rds.aliyuncs.com</spring.redis.host>
<spring.redis.port>10001</spring.redis.port>
<spring.redis.password>elink!888</spring.redis.password>
<spring.datasource.druid.url>
<![CDATA[jdbc:mysql://rm-m5eguiv2827bdye798o.mysql.rds.aliyuncs.com:10001/js_esua_epdc_admin?allowMultiQueries=true&useUnicode=true&characterEncoding=UTF-8&useSSL=false&serverTimezone=Asia/Shanghai]]>

12
esua-epdc/epdc-admin/epdc-admin-server/src/main/java/com/elink/esua/epdc/controller/SysDeptController.java

@ -224,6 +224,18 @@ public class SysDeptController {
return sysDeptService.getDeptTreeWithTypeKey();
}
/**
* 组织机构树街道-社区-网格
*
* @return com.elink.esua.epdc.commons.tools.utils.Result<com.elink.esua.epdc.dto.DeptOption>
* @author lc
* @since 2021/8/17 16:05
*/
@GetMapping("party/getOrgTree")
public Result<DeptOption> getOrgTree() {
return sysDeptService.getOrgTree();
}
/**
* @param
* @return com.elink.esua.epdc.commons.tools.utils.Result<com.elink.esua.epdc.dto.DeptOption>

9
esua-epdc/epdc-admin/epdc-admin-server/src/main/java/com/elink/esua/epdc/dao/SysDeptDao.java

@ -153,6 +153,15 @@ public interface SysDeptDao extends BaseDao<SysDeptEntity> {
*/
List<DeptTreeWithTypeKeyDTO> selectListDeptTreeWithTypeKey();
/**
* 组织机构树街道-社区-网格
*
* @return java.util.List<com.elink.esua.epdc.dto.epdc.DeptTreeWithTypeKeyDTO>
* @author lc
* @since 2021/8/17 15:56
*/
List<DeptTreeWithTypeKeyDTO> selectListOrgTree();
/**
* @param params
* @return java.util.List<com.elink.esua.epdc.dto.CompleteDeptDTO>

9
esua-epdc/epdc-admin/epdc-admin-server/src/main/java/com/elink/esua/epdc/service/SysDeptService.java

@ -218,6 +218,15 @@ public interface SysDeptService extends BaseService<SysDeptEntity> {
*/
Result<DeptOption> getDeptTreeWithTypeKey();
/**
* 组织机构树街道-社区-网格
*
* @return com.elink.esua.epdc.commons.tools.utils.Result<com.elink.esua.epdc.dto.DeptOption>
* @author lc
* @since 2021/8/17 16:03
*/
Result<DeptOption> getOrgTree();
/**
* @param
* @return com.elink.esua.epdc.commons.tools.utils.Result<com.elink.esua.epdc.dto.DeptOption>

66
esua-epdc/epdc-admin/epdc-admin-server/src/main/java/com/elink/esua/epdc/service/impl/SysDeptServiceImpl.java

@ -684,6 +684,61 @@ public class SysDeptServiceImpl extends BaseServiceImpl<SysDeptDao, SysDeptEntit
redisUtils.set(RedisKeys.getAllDeptOptionKeyWithTypeKey(), option);
}
private void packgeAllOrgOption() {
List<DeptTreeWithTypeKeyDTO> deptList = baseDao.selectListOrgTree();
JSONObject node;
JSONArray headNodes = new JSONArray();
for (DeptTreeWithTypeKeyDTO deptItemDto : deptList) {
if (deptItemDto.getPid().longValue() == NumConstant.ZERO_L) {
node = new JSONObject();
node.put("value", deptItemDto.getId());
node.put("label", deptItemDto.getName());
node.put("typeKey", deptItemDto.getTypeKey());
headNodes.add(node);
}
}
// 用于存放所有父级节点
JSONArray parent;
parent = headNodes;
// 用于存放所有子级节点
JSONArray allChildren = new JSONArray();
JSONArray children;
// 用于存放单个子级节点
JSONObject childNode;
// 存放其余未处理的类别(节点)
List<DeptTreeWithTypeKeyDTO> others = this.getOtherDeptWithTypeKey(deptList, parent);
while (!others.isEmpty()) {
for (int i = 0; i < parent.size(); i++) {
node = parent.getJSONObject(i);
children = new JSONArray();
for (DeptTreeWithTypeKeyDTO categoryTreeDto : others) {
if (categoryTreeDto.getPid().equals(node.get("value"))) {
childNode = new JSONObject();
childNode.put("value", categoryTreeDto.getId());
childNode.put("label", categoryTreeDto.getName());
childNode.put("typeKey", categoryTreeDto.getTypeKey());
children.add(childNode);
allChildren.add(childNode);
}
}
if (!children.isEmpty()) {
node.put("children", children);
}
}
parent = allChildren;
others = this.getOtherDeptWithTypeKey(others, parent);
}
//存放到redis中
List<JSONArray> cache = Lists.newArrayList();
cache.add(headNodes);
DeptOption option = new DeptOption();
option.setOptions(cache.get(0));
redisUtils.set(RedisKeys.getAllOrgOptionKey(), option);
}
List<DeptTreeDTO> getOtherDept(List<DeptTreeDTO> deptList, JSONArray parent) {
List<Long> already = Lists.newArrayList();
@ -748,6 +803,17 @@ public class SysDeptServiceImpl extends BaseServiceImpl<SysDeptDao, SysDeptEntit
return new Result<DeptOption>().ok((DeptOption) obj);
}
@Override
public Result<DeptOption> getOrgTree() {
String deptKey = RedisKeys.getAllOrgOptionKey();
Object obj = redisUtils.get(deptKey);
if (null == obj) {
this.packgeAllOrgOption();
obj = redisUtils.get(deptKey);
}
return new Result<DeptOption>().ok((DeptOption) obj);
}
/**
* @param
* @return com.elink.esua.epdc.commons.tools.utils.Result<com.elink.esua.epdc.dto.DeptOption>

14
esua-epdc/epdc-admin/epdc-admin-server/src/main/resources/mapper/SysDeptDao.xml

@ -254,6 +254,18 @@
where sd.del_flag='0'
and sd.type_key in ('district_party','street_party','street_dept')
</select>
<select id="selectListOrgTree"
resultType="com.elink.esua.epdc.dto.epdc.DeptTreeWithTypeKeyDTO">
SELECT
sd.id,
sd.pid,
sd.`name`,
sd.type_key
FROM
sys_dept sd
where sd.del_flag='0' and sd.type_key in ('district_party', 'street_party', 'community_party', 'grid_party') and sd.ID not in(select dept_id from sys_dept_config t where t.del_flag ='0')
</select>
<select id="selectListDeptTreeWithTypeKey"
resultType="com.elink.esua.epdc.dto.epdc.DeptTreeWithTypeKeyDTO">
SELECT
@ -263,7 +275,7 @@
sd.type_key
FROM
sys_dept sd
where sd.del_flag='0' and sd.ID not in(select dept_id from sys_dept_config t where t.del_flag ='0' and congig_type = 'screen_not_dept')
where sd.del_flag='0' and sd.ID not in(select dept_id from sys_dept_config t where t.del_flag ='0')
</select>
<select id="selectListOfDeptInfoByTypeKey" resultType="com.elink.esua.epdc.dto.SysDeptDTO">

16
esua-epdc/epdc-auth/pom.xml

@ -107,10 +107,10 @@
<spring.profiles.active>dev</spring.profiles.active>
<!-- redis配置 -->
<spring.redis.index>2</spring.redis.index>
<spring.redis.host>114.215.125.123</spring.redis.host>
<spring.redis.port>9603</spring.redis.port>
<spring.redis.password>epdc!redis@master1405</spring.redis.password>
<spring.redis.index>11</spring.redis.index>
<spring.redis.host>r-m5eh5czgb1nucti6azpd.redis.rds.aliyuncs.com</spring.redis.host>
<spring.redis.port>10001</spring.redis.port>
<spring.redis.password>elink!888</spring.redis.password>
<!-- nacos -->
<nacos.register-enabled>false</nacos.register-enabled>
@ -128,10 +128,10 @@
<spring.profiles.active>test</spring.profiles.active>
<!-- redis配置 -->
<spring.redis.index>2</spring.redis.index>
<spring.redis.host>114.215.125.123</spring.redis.host>
<spring.redis.port>9603</spring.redis.port>
<spring.redis.password>epdc!redis@master1405</spring.redis.password>
<spring.redis.index>11</spring.redis.index>
<spring.redis.host>r-m5eh5czgb1nucti6azpd.redis.rds.aliyuncs.com</spring.redis.host>
<spring.redis.port>10001</spring.redis.port>
<spring.redis.password>elink!888</spring.redis.password>
<!-- nacos -->
<nacos.register-enabled>true</nacos.register-enabled>

16
esua-epdc/epdc-commons/epdc-commons-tools/src/main/java/com/elink/esua/epdc/commons/tools/constant/EpmetConstant.java

@ -404,4 +404,20 @@ public interface EpmetConstant {
*/
String EPMET_SCREEN_STATS_USER_GRID_MANAGER_UPLOAD_DATA = "/data/stats/statsuser/gm-uploaddata";
// 治理能力排行数据
/**
* 01治理能力排行数据(按日统计)数据
*/
String EPMET_SCREEN_GOV_RANK_DATA = "/data/stats/governance/governrankdatadaily";
/**
* 02网格治理指数
*/
String EPMET_SCREEN_GOV_GRID_GOV_DATA = "/data/stats/governance/gridgoverndaily";
/**
* 03组织治理指数
*/
String EPMET_SCREEN_GOV_AGENCY_GOV_DATA = "/data/stats/governance/agencygoverndaily";
}

11
esua-epdc/epdc-commons/epdc-commons-tools/src/main/java/com/elink/esua/epdc/commons/tools/redis/RedisKeys.java

@ -191,6 +191,17 @@ public class RedisKeys {
return rootPrefix.concat("options:dept:allWithTypeKey:");
}
/**
* 组织机构树街道-社区-网格
*
* @return java.lang.String
* @author lc
* @since 2021/8/17 16:03
*/
public static String getAllOrgOptionKey() {
return rootPrefix.concat("options:org:all:");
}
/**
* @param
* @return java.lang.String

6
esua-epdc/epdc-commons/epdc-commons-tools/src/main/java/com/elink/esua/epdc/commons/tools/security/content/CheckDataUtils.java

@ -30,10 +30,10 @@ import java.util.List;
public class CheckDataUtils {
//内容审核地址
private static String contentUrl = "https://epmet-open.elinkservice.cn/api/epmetscan/api/textSyncScan";
private static String contentUrl = "https://epmet-open.pingyin.gov.cn/api/epmetscan/api/textSyncScan";
//图片审核地址
private static String imgUrl = "https://epmet-open.elinkservice.cn/api/epmetscan/api/imgSyncScan";
private static String imgUrl = "https://epmet-open.pingyin.gov.cn/api/epmetscan/api/imgSyncScan";
//文本正常
public static String pass = "pass";
@ -353,4 +353,4 @@ public class CheckDataUtils {
}
}
}

10
esua-epdc/epdc-commons/epdc-commons-tools/src/main/java/com/elink/esua/epdc/commons/tools/utils/DateUtils.java

@ -34,6 +34,8 @@ public class DateUtils {
public final static String DATE_PATTERN_YEAR_MONTH2 = "yyyyMM";
/** 时间格式(yyyy-MM-dd) */
public final static String DATE_PATTERN = "yyyy-MM-dd";
/** 时间格式(yyyyMMdd) */
public final static String DATE_PATTERN_NO_SPLIT = "yyyyMMdd";
/** 时间格式(yyyy-MM-dd HH:mm:ss) */
public final static String DATE_TIME_PATTERN = "yyyy-MM-dd HH:mm:ss";
@ -46,6 +48,14 @@ public class DateUtils {
return format(date, DATE_PATTERN);
}
/**
* 日期格式化 日期格式为yyyyMMdd
* @param date 日期
* @return 返回yyyyMMdd格式日期
*/
public static String formatNoSplit(Date date) {
return format(date, DATE_PATTERN_NO_SPLIT);
}
/**
* 日期格式化 日期格式为yyyy-MM-dd
* @param date 日期

16
esua-epdc/epdc-gateway/pom.xml

@ -93,10 +93,10 @@
<spring.profiles.active>dev</spring.profiles.active>
<!-- redis配置 -->
<spring.redis.index>2</spring.redis.index>
<spring.redis.host>114.215.125.123</spring.redis.host>
<spring.redis.port>9603</spring.redis.port>
<spring.redis.password>epdc!redis@master1405</spring.redis.password>
<spring.redis.index>11</spring.redis.index>
<spring.redis.host>r-m5eh5czgb1nucti6azpd.redis.rds.aliyuncs.com</spring.redis.host>
<spring.redis.port>10001</spring.redis.port>
<spring.redis.password>elink!888</spring.redis.password>
<!-- gateway routes -->
<gateway.routes.epdc-auth-server.uri>lb://epdc-auth-server</gateway.routes.epdc-auth-server.uri>
@ -158,10 +158,10 @@
<spring.profiles.active>test</spring.profiles.active>
<!-- redis配置 -->
<spring.redis.index>2</spring.redis.index>
<spring.redis.host>114.215.125.123</spring.redis.host>
<spring.redis.port>9603</spring.redis.port>
<spring.redis.password>epdc!redis@master1405</spring.redis.password>
<spring.redis.index>11</spring.redis.index>
<spring.redis.host>r-m5eh5czgb1nucti6azpd.redis.rds.aliyuncs.com</spring.redis.host>
<spring.redis.port>10001</spring.redis.port>
<spring.redis.password>elink!888</spring.redis.password>
<!-- gateway routes -->
<gateway.routes.epdc-auth-server.uri>lb://epdc-auth-server</gateway.routes.epdc-auth-server.uri>

141
esua-epdc/epdc-module/epdc-analysis/epdc-analysis-client/src/main/java/com/elink/esua/epdc/dto/screen/result/ScreenAgencyGovernDailyResultDTO.java

@ -0,0 +1,141 @@
package com.elink.esua.epdc.dto.screen.result;
import lombok.Data;
import java.io.Serializable;
/**
* 组织治理指数
*
* @author zhy
* @date 2021/6/28 9:28
*/
@Data
public class ScreenAgencyGovernDailyResultDTO implements Serializable {
private static final long serialVersionUID = -4035893591086943602L;
/**
* 组织Id
*/
private String agencyId;
/**
* agency_id所属的机关级别社区级community 街道:street, 区县级: district, 市级: city 省级:province
*/
private String level;
/**
* 上级组织Id
*/
private String pid;
/**
* 网格所有上级id
*/
private String pids;
/**
* 日期ID
*/
private String dateId;
/**
* 界面展示问题解决总数=1+2+3+4+5+6+7+8
*/
private Integer problemResolvedCount;
/**
* 界面展示党群自治占比=9+10/PROBLEM_RESOLVED_COUNT; 此列存储的是小数
*/
private String groupSelfGovernRatio;
/**
* 界面展示网格自治占比=GRID_SELF_GOVERN_PROJECT_TOTAL/PROBLEM_RESOLVED_COUNT此列存储的是小数
*/
private String gridSelfGovernRatio;
/**
* 界面展示社区解决占比=COMMUNITY_CLOSED_COUNT/PROBLEM_RESOLVED_COUNT此列存储的是小数
*/
private String communityClosedRatio;
/**
* 界面展示街道解决占比=STREET_CLOSED_COUNT/PROBLEM_RESOLVED_COUNT此列存储的是小数
*/
private String streetClosedRatio;
/**
* 界面展示区直部门解决占比=DISTRICT_DEPT_CLOSED_COUNT/PROBLEM_RESOLVED_COUNT此列存储的是小数
*/
private String districtDeptClosedRatio;
/**
* 1当前组织内话题关闭已解决数
*/
private Integer topicResolvedCount;
/**
* 2当前组织内话题关闭无需解决数
*/
private Integer topicUnResolvedCount;
/**
* 3当前组织内议题关闭已解决数
*/
private Integer issueResolvedCount;
/**
* 4当前组织内议题关闭无需解决数
*/
private Integer issueUnResolvedCount;
/**
* 5当前组织内来源于议题的项目结案已解决数
*/
private Integer issueProjectResolvedCount;
/**
* 6当前组织内来源于议题的项目结案无需解决数
*/
private Integer issueProjectUnResolvedCount;
/**
* 7当前组织内项目立项结案已解决数默认为0
*/
private Integer approvalProjectResolvedCount;
/**
* 8当前组织内项目立项结案无需解决数默认为0
*/
private Integer approvalProjectUnResolvedCount;
/**
* 9当前组织内未出小组即未转议题的话题关闭已解决数
*/
private Integer inGroupTopicResolvedCount;
/**
* 10当前组织内未出小组即未转议题的话题关闭无需解决数
*/
private Integer inGroupTopicUnResolvedCount;
/**
* 11未出当前组织的结案项目数
*/
private Integer gridSelfGovernProjectTotal;
/**
* 当前组织内出来的项目由社区结案(已解决+未解决)的项目总数
*/
private Integer communityClosedCount;
/**
* 当前组织内出来的项目由街道结案(已解决+未解决)的项目总数
*/
private Integer streetClosedCount;
/**
* 当前组织内出来的项目由区直部门(已解决+未解决)结案的项目总数
*/
private Integer districtDeptClosedCount;
}

106
esua-epdc/epdc-module/epdc-analysis/epdc-analysis-client/src/main/java/com/elink/esua/epdc/dto/screen/result/ScreenGovernRankDataDailyResultDTO.java

@ -0,0 +1,106 @@
package com.elink.esua.epdc.dto.screen.result;
import lombok.Data;
import java.io.Serializable;
/**
* 治理能力排行数据(按日统计)数据
*
* @author zhy
* @date 2021/6/28 9:28
*/
@Data
public class ScreenGovernRankDataDailyResultDTO implements Serializable {
private static final long serialVersionUID = -4035893591086943602L;
/**
* 组织Id 可以为网格机关id
*/
private String orgId;
/**
* 组织类别 agency组织部门department网格grid
*/
private String orgType;
/**
* 上级组织Id
*/
private String parentId;
/**
* 组织名称
*/
private String orgName;
/**
* 日期ID
*/
private String dateId;
/**
* 月ID
*/
private String monthId;
/**
* 年ID
*/
private String yearId;
/**
* 响应率最大值100保留小数点后4位
*/
private String responseRatio;
/**
* 响应数
*/
private Integer responseCount;
/**
* 项目转入次数
*/
private Integer transferCount;
/**
* 解决率 最大值100保留小数点后4位
*/
private String resolvedRatio;
/**
* 解决项目数
*/
private Integer resolvedCount;
/**
* 已关闭项目数
*/
private Integer closedCount;
/**
* 自治率 最大值100保留小数点后4位
*/
private String governRatio;
/**
* 自治项目数
*/
private Integer governCount;
/**
* 满意率最大值100保留小数点后四位
*/
private String satisfactionRatio;
/**
* 满意项目数
*/
private Integer satisfactionCount;
/**
* 已关闭项目由议题转的项目
*/
private Integer closedProjectCount;
}

14
esua-epdc/epdc-module/epdc-analysis/epdc-analysis-client/src/main/java/com/elink/esua/epdc/dto/screen/result/ScreenGovernanceResultDTO.java

@ -0,0 +1,14 @@
package com.elink.esua.epdc.dto.screen.result;
import lombok.Data;
import java.io.Serializable;
/**
* @author zhy
* @date 2021/6/28 14:12
*/
@Data
public class ScreenGovernanceResultDTO implements Serializable {
private static final long serialVersionUID = -4696640703716250973L;
}

156
esua-epdc/epdc-module/epdc-analysis/epdc-analysis-client/src/main/java/com/elink/esua/epdc/dto/screen/result/ScreenGridGovernDailyResultDTO.java

@ -0,0 +1,156 @@
package com.elink.esua.epdc.dto.screen.result;
import lombok.Data;
import java.io.Serializable;
/**
* 网格治理指数
*
* @author zhy
* @date 2021/6/28 9:28
*/
@Data
public class ScreenGridGovernDailyResultDTO implements Serializable {
private static final long serialVersionUID = -4035893591086943602L;
/**
* 组织Id 可以为网格机关id
*/
private String gridId;
/**
* 上级组织Id
*/
private String pid;
/**
* 网格所有上级id
*/
private String pids;
/**
* 日期ID
*/
private String dateId;
/**
* 界面展示问题解决总数=1+2+3+4+5+6+7+8
*/
private Integer problemResolvedCount;
/**
* 界面展示党群自治占比=9+10/PROBLEM_RESOLVED_COUNT; 此列存储的是小数
*/
private String groupSelfGovernRatio;
/**
* 界面展示网格自治占比=GRID_SELF_GOVERN_PROJECT_TOTAL/PROBLEM_RESOLVED_COUNT此列存储的是小数
*/
private String gridSelfGovernRatio;
/**
* 界面展示社区解决占比=COMMUNITY_CLOSED_COUNT/PROBLEM_RESOLVED_COUNT此列存储的是小数
*/
private String communityClosedRatio;
/**
* 界面展示街道解决占比=STREET_CLOSED_COUNT/PROBLEM_RESOLVED_COUNT此列存储的是小数
*/
private String streetClosedRatio;
/**
* 界面展示区直部门解决占比=DISTRICT_DEPT_CLOSED_COUNT/PROBLEM_RESOLVED_COUNT此列存储的是小数
*/
private String districtDeptClosedRatio;
/**
* 1当前网格内话题关闭已解决数
*/
private Integer topicResolvedCount;
/**
* 2当前网格内话题关闭无需解决数
*/
private Integer topicUnResolvedCount;
/**
* 3当前网格内议题关闭已解决数
*/
private Integer issueResolvedCount;
/**
* 4当前网格内议题关闭无需解决数
*/
private Integer issueUnResolvedCount;
/**
* 5当前网格内来源于议题的项目结案已解决数
*/
private Integer issueProjectResolvedCount;
/**
* 6当前网格内来源于议题的项目结案无需解决数
*/
private Integer issueProjectUnResolvedCount;
/**
* 7当前网格内项目立项结案已解决数默认为0
*/
private Integer approvalProjectResolvedCount;
/**
* 8当前网格内项目立项结案无需解决数默认为0
*/
private Integer approvalProjectUnResolvedCount;
/**
* 9当前网格内未出小组即未转议题的话题关闭已解决数
*/
private Integer inGroupTopicResolvedCount;
/**
* 10当前网格内未出小组即未转议题的话题关闭无需解决数
*/
private Integer inGroupTopicUnResolvedCount;
/**
* 11来源于议题的项目未出网格结案并且已解决的项目数
*/
private Integer fromIssueResolvedInGridCount;
/**
* 12来源于议题的项目未出网格结案并且无需解决的项目数
*/
private Integer fromIssueUnResolvedInGridCount;
/**
* 13来源于项目立项的项目未出网格结案并且已解决的项目数因现在网格不能立项所以此列默认为0
*/
private Integer fromAgencyResolvedInGridCount;
/**
* 14来源于项目立项的项目未出网格结案并且无需解决的项目数因现在网格不能立项所以此列默认为0
*/
private Integer fromAgencyUnResolvedInGridCount;
/**
* 15未出当前网格的结案项目数=11+12+13+14
*/
private Integer gridSelfGovernProjectTotal;
/**
* 当前网格内出来的项目由社区结案(已解决+未解决)的项目总数
*/
private Integer communityClosedCount;
/**
* 当前网格内出来的项目由街道结案(已解决+未解决)的项目总数
*/
private Integer streetClosedCount;
/**
* 当前网格内出来的项目由区直部门(已解决+未解决)结案的项目总数
*/
private Integer districtDeptClosedCount;
}

18
esua-epdc/epdc-module/epdc-analysis/epdc-analysis-server/pom.xml

@ -126,10 +126,10 @@
<docker.tag>dev</docker.tag>
<!-- redis -->
<spring.redis.index>2</spring.redis.index>
<spring.redis.host>114.215.125.123</spring.redis.host>
<spring.redis.port>9603</spring.redis.port>
<spring.redis.password>epdc!redis@master1405</spring.redis.password>
<spring.redis.index>11</spring.redis.index>
<spring.redis.host>r-m5eh5czgb1nucti6azpd.redis.rds.aliyuncs.com</spring.redis.host>
<spring.redis.port>10001</spring.redis.port>
<spring.redis.password>elink!888</spring.redis.password>
<!-- nacos -->
<nacos.register-enabled>false</nacos.register-enabled>
@ -155,10 +155,10 @@
<docker.tag>test</docker.tag>
<!-- redis -->
<spring.redis.index>2</spring.redis.index>
<spring.redis.host>114.215.125.123</spring.redis.host>
<spring.redis.port>9603</spring.redis.port>
<spring.redis.password>epdc!redis@master1405</spring.redis.password>
<spring.redis.index>11</spring.redis.index>
<spring.redis.host>r-m5eh5czgb1nucti6azpd.redis.rds.aliyuncs.com</spring.redis.host>
<spring.redis.port>10001</spring.redis.port>
<spring.redis.password>elink!888</spring.redis.password>
<!-- nacos -->
<nacos.register-enabled>true</nacos.register-enabled>
@ -192,7 +192,7 @@
<nacos.server-addr>172.16.0.7:10000,172.16.0.7:10001</nacos.server-addr>
<nacos.ip>172.16.0.8</nacos.ip>
<nacos.namespace></nacos.namespace>
<epmet.url>https://epmet-open.elinkservice.cn/api</epmet.url>
<epmet.url>https://epmet-open.pingyin.gov.cn/api</epmet.url>
<epmet.secret>0f2ad2929f1e4f778dc1e90a64d154e572af864ea0eb4d73be56480f0af34ba1</epmet.secret>
<epmet.appId>f257a3497224ae078af12966b068a81c</epmet.appId>
<epmet.customerId>44876154d10d7cb7affd92000f84f833</epmet.customerId>

70
esua-epdc/epdc-module/epdc-analysis/epdc-analysis-server/src/main/java/com/elink/esua/epdc/modules/screen/controller/ScreenGovernanceController.java

@ -0,0 +1,70 @@
package com.elink.esua.epdc.modules.screen.controller;
import com.elink.esua.epdc.commons.tools.utils.Result;
import com.elink.esua.epdc.dto.screen.form.ScreenJobFormDTO;
import com.elink.esua.epdc.modules.screen.service.ScreenGovernanceService;
import lombok.extern.slf4j.Slf4j;
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;
/**
* 治理能力数据推送
*
* @author zhy
* @date 2021/6/28 11:07
*/
@Slf4j
@RestController
@RequestMapping("data/stats/governance")
public class ScreenGovernanceController {
@Autowired
private ScreenGovernanceService screenGovernanceService;
/**
* 01治理能力排行数据(按日统计)数据
*
* @param
* @return com.elink.esua.epdc.commons.tools.utils.Result
* @author zhy
* @date 2021/6/28 11:05
*/
@PostMapping("governrankdatadaily")
public Result governrankdatadaily(@RequestBody ScreenJobFormDTO formDto) {
log.info("<governrankdatadaily|治理能力排行数据(按日统计)数据>定时任务执行");
return screenGovernanceService.governrankdatadaily(formDto);
}
/**
* 02网格治理指数
*
* @param
* @return com.elink.esua.epdc.commons.tools.utils.Result
* @author zhy
* @date 2021/6/28 11:05
*/
@PostMapping("gridgoverndaily")
public Result gridgoverndaily(@RequestBody ScreenJobFormDTO formDto) {
log.info("<gridgoverndaily|网格治理指数(天)>定时任务执行");
return screenGovernanceService.gridgoverndaily(formDto);
}
/**
* 03组织治理指数
*
* @param
* @return com.elink.esua.epdc.commons.tools.utils.Result
* @author zhy
* @date 2021/6/28 11:05
*/
@PostMapping("agencygoverndaily")
public Result agencygoverndaily(@RequestBody ScreenJobFormDTO formDto) {
log.info("<agencygoverndaily|组织治理指数(天)>定时任务执行");
return screenGovernanceService.agencygoverndaily(formDto);
}
}

84
esua-epdc/epdc-module/epdc-analysis/epdc-analysis-server/src/main/java/com/elink/esua/epdc/modules/screen/dao/ScreenGovernanceDao.java

@ -0,0 +1,84 @@
package com.elink.esua.epdc.modules.screen.dao;
import com.elink.esua.epdc.commons.mybatis.dao.BaseDao;
import com.elink.esua.epdc.dto.SysDeptDTO;
import com.elink.esua.epdc.dto.screen.result.ScreenAgencyGovernDailyResultDTO;
import com.elink.esua.epdc.dto.screen.result.ScreenGovernRankDataDailyResultDTO;
import com.elink.esua.epdc.dto.screen.result.ScreenGovernanceResultDTO;
import com.elink.esua.epdc.dto.screen.result.ScreenGridGovernDailyResultDTO;
import org.apache.ibatis.annotations.Mapper;
import java.util.List;
/**
* @author zhy
* @date 2021/6/28 14:04
*/
@Mapper
public interface ScreenGovernanceDao extends BaseDao<ScreenGovernanceResultDTO> {
/**
* 获取街道列表
*
* @param
* @return java.util.List<com.elink.esua.epdc.dto.SysDeptDTO>
* @author zhy
* @date 2021/8/16 17:11
*/
List<SysDeptDTO> getStreetList();
/**
* 治理能力排行数据(按日统计)数据
* 网格统计
*
* @param
* @return java.util.List<com.elink.esua.epdc.dto.screen.result.ScreenGovernRankDataDailyResultDTO>
* @author zhy
* @date 2021/6/28 14:06
*/
List<ScreenGovernRankDataDailyResultDTO> governrankdatadaily();
/**
* 治理能力排行数据(按日统计)数据
* 组织统计
*
* @param
* @return java.util.List<com.elink.esua.epdc.dto.screen.result.ScreenGovernRankDataDailyResultDTO>
* @author zhy
* @date 2021/6/28 14:06
*/
List<ScreenGovernRankDataDailyResultDTO> governrankdatadailyAgency();
/**
* 治理能力排行数据(按日统计)数据
* 未响应数
*
* @param
* @return java.util.List<com.elink.esua.epdc.dto.screen.result.ScreenGovernRankDataDailyResultDTO>
* @author zhy
* @date 2021/6/28 14:06
*/
List<ScreenGovernRankDataDailyResultDTO> governrankdatadailyNoResp();
/**
* 网格治理指数
*
* @param
* @return java.util.List<com.elink.esua.epdc.dto.screen.result.ScreenGridGovernDailyResultDTO>
* @author zhy
* @date 2021/8/13 17:55
*/
List<ScreenGridGovernDailyResultDTO> gridgoverndaily();
/**
* 组织治理指数
*
* @param
* @return java.util.List<com.elink.esua.epdc.dto.screen.result.ScreenGridGovernDailyResultDTO>
* @author zhy
* @date 2021/8/13 17:55
*/
List<ScreenAgencyGovernDailyResultDTO> agencygoverndaily();
}

44
esua-epdc/epdc-module/epdc-analysis/epdc-analysis-server/src/main/java/com/elink/esua/epdc/modules/screen/service/ScreenGovernanceService.java

@ -0,0 +1,44 @@
package com.elink.esua.epdc.modules.screen.service;
import com.elink.esua.epdc.commons.tools.utils.Result;
import com.elink.esua.epdc.dto.screen.form.ScreenJobFormDTO;
/**
* 治理能力数据推送
*
* @author zhy
* @date 2021/6/28 13:51
*/
public interface ScreenGovernanceService {
/**
* 01治理能力排行数据(按日统计)数据
*
* @param
* @return com.elink.esua.epdc.commons.tools.utils.Result
* @author zhy
* @date 2021/6/28 13:47
*/
Result governrankdatadaily(ScreenJobFormDTO formDto);
/**
* 02网格治理指数
*
* @param
* @return com.elink.esua.epdc.commons.tools.utils.Result
* @author zhy
* @date 2021/6/28 13:47
*/
Result gridgoverndaily(ScreenJobFormDTO formDto);
/**
* 03组织治理指数
*
* @param
* @return com.elink.esua.epdc.commons.tools.utils.Result
* @author zhy
* @date 2021/6/28 13:47
*/
Result agencygoverndaily(ScreenJobFormDTO formDto);
}

145
esua-epdc/epdc-module/epdc-analysis/epdc-analysis-server/src/main/java/com/elink/esua/epdc/modules/screen/service/impl/ScreenGovernanceServiceImpl.java

@ -0,0 +1,145 @@
package com.elink.esua.epdc.modules.screen.service.impl;
import com.alibaba.fastjson.JSONObject;
import com.elink.esua.epdc.commons.mybatis.service.impl.BaseServiceImpl;
import com.elink.esua.epdc.commons.tools.constant.EpmetConstant;
import com.elink.esua.epdc.commons.tools.utils.DateUtils;
import com.elink.esua.epdc.commons.tools.utils.Result;
import com.elink.esua.epdc.dto.SysDeptDTO;
import com.elink.esua.epdc.dto.screen.form.ScreenJobFormDTO;
import com.elink.esua.epdc.dto.screen.result.ScreenAgencyGovernDailyResultDTO;
import com.elink.esua.epdc.dto.screen.result.ScreenGovernRankDataDailyResultDTO;
import com.elink.esua.epdc.dto.screen.result.ScreenGovernanceResultDTO;
import com.elink.esua.epdc.dto.screen.result.ScreenGridGovernDailyResultDTO;
import com.elink.esua.epdc.modules.screen.dao.ScreenGovernanceDao;
import com.elink.esua.epdc.modules.screen.service.ScreenGovernanceService;
import com.elink.esua.epdc.utils.EpmetUtils;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;
import java.text.DecimalFormat;
import java.util.Date;
import java.util.List;
import java.util.Optional;
/**
* 治理能力数据推送
*
* @author zhy
* @date 2021/6/28 13:51
*/
@Service
public class ScreenGovernanceServiceImpl extends BaseServiceImpl<ScreenGovernanceDao, ScreenGovernanceResultDTO> implements ScreenGovernanceService {
@Autowired
private EpmetUtils epmetUtils;
@Value("${epmet.config.customerId}")
private String EPMET_CONFIG_CUSTOMER_ID;
@Override
public Result governrankdatadaily(ScreenJobFormDTO formDto) {
String yearMonthDay = DateUtils.formatNoSplit(DateUtils.addDateDays(new Date(), -1));
List<ScreenGovernRankDataDailyResultDTO> data = baseDao.governrankdatadaily();
List<ScreenGovernRankDataDailyResultDTO> agencyData = baseDao.governrankdatadailyAgency();
List<ScreenGovernRankDataDailyResultDTO> noRespData = baseDao.governrankdatadailyNoResp();
List<SysDeptDTO> streetList = baseDao.getStreetList();
// 处理未响应和项目转入次数
noRespHandle(data, noRespData);
noRespHandle(agencyData, noRespData);
// 社区数据需要在本身基础上再加上网格的合计
data.forEach(item -> {
Optional<ScreenGovernRankDataDailyResultDTO> agencyOptional = agencyData.stream().filter(agency -> agency.getOrgId().equals(item.getParentId())).findFirst();
if (agencyOptional.isPresent()) {
ScreenGovernRankDataDailyResultDTO agencyResult = agencyOptional.get();
agencyResult.setResponseCount(agencyResult.getResponseCount() + item.getResponseCount());
agencyResult.setTransferCount(agencyResult.getTransferCount() + item.getTransferCount());
}
});
streetList.forEach(street -> {
String streetId = street.getId().toString();
// 街道数据需要在本身基础上再加上社区的合计
Optional<ScreenGovernRankDataDailyResultDTO> agencyOptional = agencyData.stream().filter(agency -> agency.getOrgId().equals(streetId)).findFirst();
if (agencyOptional.isPresent()) {
ScreenGovernRankDataDailyResultDTO agencyResult = agencyOptional.get();
Integer responseCount = agencyResult.getResponseCount() + agencyData.stream().filter(agency -> agency.getParentId().equals(streetId)).mapToInt(ScreenGovernRankDataDailyResultDTO::getResponseCount).sum();
Integer transferCount = agencyResult.getTransferCount() + agencyData.stream().filter(agency -> agency.getParentId().equals(streetId)).mapToInt(ScreenGovernRankDataDailyResultDTO::getTransferCount).sum();
agencyResult.setResponseCount(responseCount);
agencyResult.setTransferCount(transferCount);
}
});
// 合并网格社区街道数据
data.addAll(agencyData);
// 计算响应率
data.forEach(item -> {
if (0 == item.getTransferCount() || 0 == item.getResponseCount()) {
item.setResponseRatio("0.0000");
} else {
DecimalFormat df = new DecimalFormat("0.0000");
item.setResponseRatio(df.format((float) item.getResponseCount() / item.getTransferCount()));
}
});
JSONObject jsonObject = new JSONObject();
jsonObject.put("isFirst", true);
jsonObject.put("dateId", yearMonthDay);
jsonObject.put("dataList", data);
epmetUtils.httpPost(EpmetConstant.EPMET_SCREEN_GOV_RANK_DATA, JSONObject.toJSONString(jsonObject));
return new Result();
}
@Override
public Result gridgoverndaily(ScreenJobFormDTO formDto) {
String yearMonthDay = DateUtils.formatNoSplit(DateUtils.addDateDays(new Date(), -1));
List<ScreenGridGovernDailyResultDTO> data = baseDao.gridgoverndaily();
JSONObject jsonObject = new JSONObject();
jsonObject.put("isFirst", true);
jsonObject.put("dataList", data);
jsonObject.put("dateId", yearMonthDay);
epmetUtils.httpPost(EpmetConstant.EPMET_SCREEN_GOV_GRID_GOV_DATA, JSONObject.toJSONString(jsonObject));
return new Result();
}
@Override
public Result agencygoverndaily(ScreenJobFormDTO formDto) {
String yearMonthDay = DateUtils.formatNoSplit(DateUtils.addDateDays(new Date(), -1));
List<ScreenAgencyGovernDailyResultDTO> data = baseDao.agencygoverndaily();
JSONObject jsonObject = new JSONObject();
jsonObject.put("isFirst", true);
jsonObject.put("dateId", yearMonthDay);
jsonObject.put("dataList", data);
epmetUtils.httpPost(EpmetConstant.EPMET_SCREEN_GOV_AGENCY_GOV_DATA, JSONObject.toJSONString(jsonObject));
return new Result();
}
/**
* 追加未响应数据
*
* @param data
* @param noRespData
* @return void
* @author zhy
* @date 2021/8/13 14:48
*/
private void noRespHandle(List<ScreenGovernRankDataDailyResultDTO> data, List<ScreenGovernRankDataDailyResultDTO> noRespData) {
data.forEach(item -> {
Optional<ScreenGovernRankDataDailyResultDTO> noDataOptional = noRespData.stream().filter(agency -> agency.getOrgId().equals(item.getOrgId())).findFirst();
// 如果有未响应的,项目转入次数 = 响应数 + 未响应数,否则,项目转入次数 = 响应数
if (noDataOptional.isPresent()) {
ScreenGovernRankDataDailyResultDTO agencyResult = noDataOptional.get();
item.setTransferCount(agencyResult.getResponseCount() + item.getResponseCount());
} else {
item.setTransferCount(item.getResponseCount());
}
});
}
}

895
esua-epdc/epdc-module/epdc-analysis/epdc-analysis-server/src/main/resources/mapper/screen/ScreenGovernanceDao.xml

@ -0,0 +1,895 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.elink.esua.epdc.modules.screen.dao.ScreenGovernanceDao">
<select id="getStreetList" resultType="com.elink.esua.epdc.dto.SysDeptDTO">
SELECT
id,
pid,
pids,
NAME
FROM
esua_epdc_admin.sys_dept sd
WHERE
sd.del_flag = '0'
AND sd.type_key = 'street_party'
AND sd.id NOT IN (
SELECT
t.dept_id
FROM
esua_epdc_admin.sys_dept_config t
WHERE
t.del_flag = '0'
)
</select>
<select id="governrankdatadaily" resultType="com.elink.esua.epdc.dto.screen.result.ScreenGovernRankDataDailyResultDTO">
SELECT
DATE_FORMAT(
date_add(now(), INTERVAL - 1 DAY),
'%Y%m%d'
) AS dateId,
DATE_FORMAT(
STR_TO_DATE(
DATE_FORMAT(
date_add(now(), INTERVAL - 1 DAY),
'%Y-%m-%d'
),
'%Y'
),
'%Y'
) AS yearId,
DATE_FORMAT(
STR_TO_DATE(
DATE_FORMAT(
date_add(now(), INTERVAL - 1 DAY),
'%Y-%m-%d'
),
'%Y-%m'
),
'%Y%m'
) AS monthId,
'grid' AS orgType,
sd.id AS orgId,
sd.pid AS parentId,
sd. NAME AS orgName,
IFNULL(count(hp.id), 0) AS responseCount,
IFNULL(st.ITEM_SETTLE_TOTAL, 0) AS resolvedCount,
IFNULL(st.ITEM_CLOSED_TOTAL, 0) AS closedCount,
IFNULL(st.ITEM_CLOSED_TOTAL, 0) AS closedProjectCount,
IFNULL(
ROUND(
(
st.ITEM_SETTLE_TOTAL + st.ITEM_CLOSED_TOTAL
) / st.ITEM_TOTAL,
4
),
0
) AS resolvedRatio,
IFNULL(hs.BYSELF_TOTAL, 0) AS governCount,
IFNULL(
ROUND(
hs.BYSELF_TOTAL / hs.ITEM_TOTAL,
4
),
0
) AS governRatio,
IFNULL(
hs.EVA_GOOD_TOTAL + hs.EVA_VERYGOOD_TOTAL,
0
) AS satisfactionCount,
IFNULL(
ROUND(
(
hs.EVA_GOOD_TOTAL + hs.EVA_VERYGOOD_TOTAL
) / hs.ITEM_TOTAL,
4
),
0
) AS satisfactionRatio
FROM
esua_epdc_admin.sys_dept sd
LEFT JOIN esua_epdc_events.epdc_item_handle_process hp ON hp.HANDLER_DEPT_ID = sd.id
AND hp.DEL_FLAG = '0'
AND DATE_FORMAT(hp.CREATED_TIME, '%Y-%m-%d') &lt;= DATE_FORMAT(
date_add(now(), INTERVAL - 1 DAY),
'%Y-%m-%d'
)
LEFT JOIN esua_epdc_analysis.epdc_issue_item_statistics st ON st.GRID_ID = sd.id
LEFT JOIN esua_epdc_analysis.epdc_grid_handle_statistics hs ON hs.DEPT_ID = sd.id
WHERE
sd.del_flag = '0'
AND sd.type_key = 'grid_party'
AND sd.id NOT IN (
SELECT
t.dept_id
FROM
esua_epdc_admin.sys_dept_config t
WHERE
t.del_flag = '0'
)
GROUP BY
sd.id
</select>
<select id="governrankdatadailyAgency" resultType="com.elink.esua.epdc.dto.screen.result.ScreenGovernRankDataDailyResultDTO">
SELECT
DATE_FORMAT(
date_add(now(), INTERVAL - 1 DAY),
'%Y%m%d'
) AS dateId,
DATE_FORMAT(
STR_TO_DATE(
DATE_FORMAT(
date_add(now(), INTERVAL - 1 DAY),
'%Y-%m-%d'
),
'%Y'
),
'%Y'
) AS yearId,
DATE_FORMAT(
STR_TO_DATE(
DATE_FORMAT(
date_add(now(), INTERVAL - 1 DAY),
'%Y-%m-%d'
),
'%Y-%m'
),
'%Y%m'
) AS monthId,
'agency' AS orgType,
sd.id AS orgId,
sd.pid AS parentId,
sd. NAME AS orgName,
IFNULL(count(hp.id), 0) AS responseCount,
IFNULL(st.ITEM_SETTLE_TOTAL, 0) AS resolvedCount,
IFNULL(st.ITEM_CLOSED_TOTAL, 0) AS closedCount,
IFNULL(st.ITEM_CLOSED_TOTAL, 0) AS closedProjectCount,
IFNULL(
ROUND(
(
st.ITEM_SETTLE_TOTAL + st.ITEM_CLOSED_TOTAL
) / st.ITEM_TOTAL,
4
),
0
) AS resolvedRatio,
IFNULL(hs.BYSELF_TOTAL, 0) AS governCount,
IFNULL(
ROUND(
hs.BYSELF_TOTAL / hs.ITEM_TOTAL,
4
),
0
) AS governRatio,
IFNULL(
hs.EVA_GOOD_TOTAL + hs.EVA_VERYGOOD_TOTAL,
0
) AS satisfactionCount,
IFNULL(
ROUND(
(
hs.EVA_GOOD_TOTAL + hs.EVA_VERYGOOD_TOTAL
) / hs.ITEM_TOTAL,
4
),
0
) AS satisfactionRatio
FROM
esua_epdc_admin.sys_dept sd
LEFT JOIN esua_epdc_events.epdc_item_handle_process hp ON hp.HANDLER_DEPT_ID = sd.id
AND hp.DEL_FLAG = '0'
AND DATE_FORMAT(hp.CREATED_TIME, '%Y-%m-%d') &lt;= DATE_FORMAT(
date_add(now(), INTERVAL - 1 DAY),
'%Y-%m-%d'
)
LEFT JOIN esua_epdc_analysis.epdc_issue_item_statistics st ON st.GRID_ID = sd.id
LEFT JOIN esua_epdc_analysis.epdc_grid_handle_statistics hs ON hs.DEPT_ID = sd.id
WHERE
sd.del_flag = '0'
AND sd.id NOT IN (
SELECT
t.dept_id
FROM
esua_epdc_admin.sys_dept_config t
WHERE
t.del_flag = '0'
)
AND sd.type_key IN (
'community_party',
'street_party'
)
GROUP BY
sd.id
</select>
<select id="governrankdatadailyNoResp" resultType="com.elink.esua.epdc.dto.screen.result.ScreenGovernRankDataDailyResultDTO">
SELECT
d.DEPT_ID AS orgId,
COUNT(0) AS responseCount
FROM
esua_epdc_events.epdc_item_dept d
LEFT JOIN esua_epdc_events.epdc_item i ON i.ID = d.ITEM_ID
WHERE
d.ITEM_HANDLE_ID IS NOT NULL
AND d.DEL_FLAG = '0'
AND i.DEL_FLAG = '0'
AND i.ITEM_STATE = '0'
AND DATE_FORMAT(d.CREATED_TIME, '%Y-%m-%d') &lt;= DATE_FORMAT(
date_add(now(), INTERVAL - 1 DAY),
'%Y-%m-%d'
)
GROUP BY
d.DEPT_ID
</select>
<select id="gridgoverndaily" resultType="com.elink.esua.epdc.dto.screen.result.ScreenGridGovernDailyResultDTO">
SELECT
info.*, IFNULL(
(
info.inGroupTopicResolvedCount + info.inGroupTopicUnResolvedCount
) / info.problemResolvedCount,
0
) AS groupSelfGovernRatio,
IFNULL(
info.gridSelfGovernProjectTotal / info.problemResolvedCount,
0
) AS gridSelfGovernRatio,
IFNULL(
info.communityClosedCount / info.problemResolvedCount,
0
) AS communityClosedRatio,
IFNULL(
info.streetClosedCount / info.problemResolvedCount,
0
) AS streetClosedRatio,
0 AS districtDeptClosedRatio
FROM
(
SELECT
DATE_FORMAT(
date_add(now(), INTERVAL - 1 DAY),
'%Y%m%d'
) AS dateId,
sd.id AS gridId,
sd.pid,
sd.pids,
IFNULL(
(
IFNULL(topic.topicResolvedCount, 0) + IFNULL(topic.topicUnResolvedCount, 0) + IFNULL(issue.issueResolvedCount, 0) + IFNULL(issue.issueUnResolvedCount, 0) + IFNULL(item.issueProjectResolvedCount, 0) + IFNULL(item.issueProjectUnResolvedCount, 0)
),
0
) AS problemResolvedCount,
IFNULL(topic.topicResolvedCount, 0) AS topicResolvedCount,
IFNULL(
topic.topicUnResolvedCount,
0
) AS topicUnResolvedCount,
IFNULL(issue.issueResolvedCount, 0) AS issueResolvedCount,
IFNULL(
issue.issueUnResolvedCount,
0
) AS issueUnResolvedCount,
IFNULL(
item.issueProjectResolvedCount,
0
) AS issueProjectResolvedCount,
IFNULL(
item.issueProjectUnResolvedCount,
0
) AS issueProjectUnResolvedCount,
IFNULL(
item.approvalProjectResolvedCount,
0
) AS approvalProjectResolvedCount,
IFNULL(
item.approvalProjectUnResolvedCount,
0
) AS approvalProjectUnResolvedCount,
IFNULL(
topic.inGroupTopicResolvedCount,
0
) AS inGroupTopicResolvedCount,
IFNULL(
topic.inGroupTopicUnResolvedCount,
0
) AS inGroupTopicUnResolvedCount,
IFNULL(
selfsolved.fromIssueResolvedInGridCount,
0
) AS fromIssueResolvedInGridCount,
IFNULL(
selfsolved.fromIssueUnResolvedInGridCount,
0
) AS fromIssueUnResolvedInGridCount,
IFNULL(
selfsolved.fromAgencyResolvedInGridCount,
0
) AS fromAgencyResolvedInGridCount,
IFNULL(
selfsolved.fromAgencyUnResolvedInGridCount,
0
) AS fromAgencyUnResolvedInGridCount,
IFNULL(
(
selfsolved.fromIssueResolvedInGridCount + selfsolved.fromIssueUnResolvedInGridCount + selfsolved.fromIssueUnResolvedInGridCount + selfsolved.fromAgencyResolvedInGridCount
),
0
) AS gridSelfGovernProjectTotal,
IFNULL(
commsolved.communityClosedCount,
0
) AS communityClosedCount,
IFNULL(
streetsolved.streetClosedCount,
0
) AS streetClosedCount,
0 AS districtDeptClosedCount
FROM
esua_epdc_admin.sys_dept sd
LEFT JOIN (
SELECT
GRID_ID,
IFNULL(COUNT(0), 0) AS topicResolvedCount,
IFNULL(COUNT(0), 0) AS inGroupTopicResolvedCount,
0 AS topicUnResolvedCount,
0 AS inGroupTopicUnResolvedCount
FROM
esua_epdc_group.epdc_topic et
WHERE
et.DEL_FLAG = '0'
AND DATE_FORMAT(et.UPDATED_TIME, '%Y-%m-%d') &lt;= DATE_FORMAT(
date_add(now(), INTERVAL - 1 DAY),
'%Y-%m-%d'
)
AND et.STATE = '20'
GROUP BY
et.GRID_ID
) topic ON topic.GRID_ID = sd.id
LEFT JOIN (
SELECT
GRID_ID,
IFNULL(COUNT(0), 0) AS issueResolvedCount,
0 AS issueUnResolvedCount
FROM
esua_epdc_events.epdc_issue eis
WHERE
eis.DEL_FLAG = '0'
AND DATE_FORMAT(
eis.UPDATED_TIME,
'%Y-%m-%d'
) &lt;= DATE_FORMAT(
date_add(now(), INTERVAL - 1 DAY),
'%Y-%m-%d'
)
AND eis.ISSUE_STATE = '2'
GROUP BY
eis.GRID_ID
) issue ON issue.GRID_ID = sd.id
LEFT JOIN (
SELECT
GRID_ID,
IFNULL(COUNT(0), 0) AS issueProjectResolvedCount,
0 AS issueProjectUnResolvedCount,
0 AS approvalProjectResolvedCount,
0 AS approvalProjectUnResolvedCount
FROM
esua_epdc_events.epdc_item eit
WHERE
eit.DEL_FLAG = '0'
AND DATE_FORMAT(
eit.UPDATED_TIME,
'%Y-%m-%d'
) &lt;= DATE_FORMAT(
date_add(now(), INTERVAL - 1 DAY),
'%Y-%m-%d'
)
AND eit.ITEM_STATE IN ('5', '10')
GROUP BY
GRID_ID
) item ON item.GRID_ID = sd.id
LEFT JOIN (
SELECT
GRID_ID,
IFNULL(COUNT(0), 0) AS fromIssueResolvedInGridCount,
0 AS fromIssueUnResolvedInGridCount,
0 AS fromAgencyResolvedInGridCount,
0 AS fromAgencyUnResolvedInGridCount
FROM
(
SELECT
GRID_ID,
eit.id,
hp.HANDLER_DEPT_ID,
eit.UPDATED_TIME
FROM
esua_epdc_events.epdc_item eit
LEFT JOIN esua_epdc_events.epdc_item_handle_process hp ON hp.item_id = eit.id
WHERE
eit.DEL_FLAG = '0'
AND hp.DEL_FLAG = '0'
AND eit.ITEM_STATE IN ('5', '10')
GROUP BY
eit.GRID_ID,
eit.ID
HAVING
COUNT(DISTINCT hp.HANDLER_DEPT_ID) = 1
) t
WHERE
t.GRID_ID = t.HANDLER_DEPT_ID
AND DATE_FORMAT(t.UPDATED_TIME, '%Y-%m-%d') &lt;= DATE_FORMAT(
date_add(now(), INTERVAL - 1 DAY),
'%Y-%m-%d'
)
GROUP BY
t.GRID_ID
) selfsolved ON selfsolved.GRID_ID = sd.id
LEFT JOIN (
SELECT
GRID_ID,
IFNULL(COUNT(0), 0) AS communityClosedCount
FROM
(
SELECT
GRID_ID,
eit.id,
hp.HANDLER_DEPT_ID,
eit.UPDATED_TIME
FROM
esua_epdc_events.epdc_item eit
LEFT JOIN esua_epdc_events.epdc_item_handle_process hp ON hp.item_id = eit.id
LEFT JOIN esua_epdc_admin.sys_dept sd ON sd.id = hp.HANDLER_DEPT_ID
WHERE
eit.DEL_FLAG = '0'
AND hp.DEL_FLAG = '0'
AND eit.ITEM_STATE IN ('5', '10')
AND hp.STATE IN ('5', '10')
AND sd.type_key = 'community_party'
GROUP BY
eit.GRID_ID,
eit.ID
) t
WHERE
DATE_FORMAT(t.UPDATED_TIME, '%Y-%m-%d') &lt;= DATE_FORMAT(
date_add(now(), INTERVAL - 1 DAY),
'%Y-%m-%d'
)
GROUP BY
t.GRID_ID
) commsolved ON commsolved.GRID_ID = sd.id
LEFT JOIN (
SELECT
GRID_ID,
IFNULL(COUNT(0), 0) AS streetClosedCount
FROM
(
SELECT
GRID_ID,
eit.id,
hp.HANDLER_DEPT_ID,
eit.UPDATED_TIME
FROM
esua_epdc_events.epdc_item eit
LEFT JOIN esua_epdc_events.epdc_item_handle_process hp ON hp.item_id = eit.id
LEFT JOIN esua_epdc_admin.sys_dept sd ON sd.id = hp.HANDLER_DEPT_ID
WHERE
eit.DEL_FLAG = '0'
AND hp.DEL_FLAG = '0'
AND eit.ITEM_STATE IN ('5', '10')
AND hp.STATE IN ('5', '10')
AND sd.type_key = 'street_party'
GROUP BY
eit.GRID_ID,
eit.ID
) t
WHERE
DATE_FORMAT(t.UPDATED_TIME, '%Y-%m-%d') &lt;= DATE_FORMAT(
date_add(now(), INTERVAL - 1 DAY),
'%Y-%m-%d'
)
GROUP BY
t.GRID_ID
) streetsolved ON streetsolved.GRID_ID = sd.id
WHERE
sd.del_flag = '0'
AND sd.type_key = 'grid_party'
AND sd.id NOT IN (
SELECT
t.dept_id
FROM
esua_epdc_admin.sys_dept_config t
WHERE
t.del_flag = '0'
)
GROUP BY
sd.id
) info
</select>
<select id="agencygoverndaily" resultType="com.elink.esua.epdc.dto.screen.result.ScreenAgencyGovernDailyResultDTO">
SELECT
DATE_FORMAT(
date_add(now(), INTERVAL - 1 DAY),
'%Y%m%d'
) AS dateId,
sd.id AS agencyId,
CASE
WHEN sd.type_key = 'community_party' THEN
'community'
WHEN sd.type_key = 'street_party' THEN
'street'
END AS LEVEL,
sd.pid,
sd.pids,
IFNULL(
sum(info.problemResolvedCount),
0
) AS problemResolvedCount,
IFNULL(
sum(info.topicResolvedCount),
0
) AS topicResolvedCount,
IFNULL(
sum(info.topicUnResolvedCount),
0
) AS topicUnResolvedCount,
IFNULL(
sum(info.issueResolvedCount),
0
) AS issueResolvedCount,
IFNULL(
sum(info.issueUnResolvedCount),
0
) AS issueUnResolvedCount,
IFNULL(
sum(
info.issueProjectResolvedCount
),
0
) AS issueProjectResolvedCount,
IFNULL(
sum(
info.issueProjectUnResolvedCount
),
0
) AS issueProjectUnResolvedCount,
IFNULL(
sum(
info.approvalProjectResolvedCount
),
0
) AS approvalProjectResolvedCount,
IFNULL(
sum(
info.approvalProjectUnResolvedCount
),
0
) AS approvalProjectUnResolvedCount,
IFNULL(
sum(
info.inGroupTopicResolvedCount
),
0
) AS inGroupTopicResolvedCount,
IFNULL(
sum(
info.inGroupTopicUnResolvedCount
),
0
) AS inGroupTopicUnResolvedCount,
IFNULL(
sum(
info.gridSelfGovernProjectTotal
),
0
) AS gridSelfGovernProjectTotal,
IFNULL(
sum(info.communityClosedCount),
0
) AS communityClosedCount,
IFNULL(
sum(info.streetClosedCount),
0
) AS streetClosedCount,
0 AS districtDeptClosedCount,
IFNULL(
(
sum(
info.inGroupTopicResolvedCount
) + sum(
info.inGroupTopicUnResolvedCount
)
) / sum(info.problemResolvedCount),
0
) AS groupSelfGovernRatio,
IFNULL(
sum(
info.gridSelfGovernProjectTotal
) / sum(info.problemResolvedCount),
0
) AS gridSelfGovernRatio,
IFNULL(
sum(info.communityClosedCount) / sum(info.problemResolvedCount),
0
) AS communityClosedRatio,
IFNULL(
sum(info.streetClosedCount) / sum(info.problemResolvedCount),
0
) AS streetClosedRatio,
0 AS districtDeptClosedRatio
FROM
(
SELECT
sd.pids,
IFNULL(
(
IFNULL(topic.topicResolvedCount, 0) + IFNULL(topic.topicUnResolvedCount, 0) + IFNULL(issue.issueResolvedCount, 0) + IFNULL(issue.issueUnResolvedCount, 0) + IFNULL(item.issueProjectResolvedCount, 0) + IFNULL(item.issueProjectUnResolvedCount, 0)
),
0
) AS problemResolvedCount,
IFNULL(topic.topicResolvedCount, 0) AS topicResolvedCount,
IFNULL(
topic.topicUnResolvedCount,
0
) AS topicUnResolvedCount,
IFNULL(issue.issueResolvedCount, 0) AS issueResolvedCount,
IFNULL(
issue.issueUnResolvedCount,
0
) AS issueUnResolvedCount,
IFNULL(
item.issueProjectResolvedCount,
0
) AS issueProjectResolvedCount,
IFNULL(
item.issueProjectUnResolvedCount,
0
) AS issueProjectUnResolvedCount,
IFNULL(
item.approvalProjectResolvedCount,
0
) AS approvalProjectResolvedCount,
IFNULL(
item.approvalProjectUnResolvedCount,
0
) AS approvalProjectUnResolvedCount,
IFNULL(
topic.inGroupTopicResolvedCount,
0
) AS inGroupTopicResolvedCount,
IFNULL(
topic.inGroupTopicUnResolvedCount,
0
) AS inGroupTopicUnResolvedCount,
IFNULL(
selfsolved.fromIssueResolvedInGridCount,
0
) AS fromIssueResolvedInGridCount,
IFNULL(
selfsolved.fromIssueUnResolvedInGridCount,
0
) AS fromIssueUnResolvedInGridCount,
IFNULL(
selfsolved.fromAgencyResolvedInGridCount,
0
) AS fromAgencyResolvedInGridCount,
IFNULL(
selfsolved.fromAgencyUnResolvedInGridCount,
0
) AS fromAgencyUnResolvedInGridCount,
IFNULL(
(
selfsolved.fromIssueResolvedInGridCount + selfsolved.fromIssueUnResolvedInGridCount + selfsolved.fromIssueUnResolvedInGridCount + selfsolved.fromAgencyResolvedInGridCount
),
0
) AS gridSelfGovernProjectTotal,
IFNULL(
commsolved.communityClosedCount,
0
) AS communityClosedCount,
IFNULL(
streetsolved.streetClosedCount,
0
) AS streetClosedCount,
0 AS districtDeptClosedCount
FROM
esua_epdc_admin.sys_dept sd
LEFT JOIN (
SELECT
GRID_ID,
IFNULL(COUNT(0), 0) AS topicResolvedCount,
IFNULL(COUNT(0), 0) AS inGroupTopicResolvedCount,
0 AS topicUnResolvedCount,
0 AS inGroupTopicUnResolvedCount
FROM
esua_epdc_group.epdc_topic et
WHERE
et.DEL_FLAG = '0'
AND DATE_FORMAT(et.UPDATED_TIME, '%Y-%m-%d')&lt;= DATE_FORMAT(
date_add(now(), INTERVAL - 1 DAY),
'%Y-%m-%d'
)
AND et.STATE = '20'
GROUP BY
et.GRID_ID
) topic ON topic.GRID_ID = sd.id
LEFT JOIN (
SELECT
GRID_ID,
IFNULL(COUNT(0), 0) AS issueResolvedCount,
0 AS issueUnResolvedCount
FROM
esua_epdc_events.epdc_issue eis
WHERE
eis.DEL_FLAG = '0'
AND DATE_FORMAT(
eis.UPDATED_TIME,
'%Y-%m-%d'
)&lt;= DATE_FORMAT(
date_add(now(), INTERVAL - 1 DAY),
'%Y-%m-%d'
)
AND eis.ISSUE_STATE = '2'
GROUP BY
eis.GRID_ID
) issue ON issue.GRID_ID = sd.id
LEFT JOIN (
SELECT
GRID_ID,
IFNULL(COUNT(0), 0) AS issueProjectResolvedCount,
0 AS issueProjectUnResolvedCount,
0 AS approvalProjectResolvedCount,
0 AS approvalProjectUnResolvedCount
FROM
esua_epdc_events.epdc_item eit
WHERE
eit.DEL_FLAG = '0'
AND DATE_FORMAT(
eit.UPDATED_TIME,
'%Y-%m-%d'
)&lt;= DATE_FORMAT(
date_add(now(), INTERVAL - 1 DAY),
'%Y-%m-%d'
)
AND eit.ITEM_STATE IN ('5', '10')
GROUP BY
GRID_ID
) item ON item.GRID_ID = sd.id
LEFT JOIN (
SELECT
GRID_ID,
IFNULL(COUNT(0), 0) AS fromIssueResolvedInGridCount,
0 AS fromIssueUnResolvedInGridCount,
0 AS fromAgencyResolvedInGridCount,
0 AS fromAgencyUnResolvedInGridCount
FROM
(
SELECT
GRID_ID,
eit.id,
hp.HANDLER_DEPT_ID,
eit.UPDATED_TIME
FROM
esua_epdc_events.epdc_item eit
LEFT JOIN esua_epdc_events.epdc_item_handle_process hp ON hp.item_id = eit.id
WHERE
eit.DEL_FLAG = '0'
AND hp.DEL_FLAG = '0'
AND eit.ITEM_STATE IN ('5', '10')
GROUP BY
eit.GRID_ID,
eit.ID
HAVING
COUNT(DISTINCT hp.HANDLER_DEPT_ID) = 1
) t
WHERE
t.GRID_ID = t.HANDLER_DEPT_ID
AND DATE_FORMAT(t.UPDATED_TIME, '%Y-%m-%d')&lt;= DATE_FORMAT(
date_add(now(), INTERVAL - 1 DAY),
'%Y-%m-%d'
)
GROUP BY
t.GRID_ID
) selfsolved ON selfsolved.GRID_ID = sd.id
LEFT JOIN (
SELECT
GRID_ID,
IFNULL(COUNT(0), 0) AS communityClosedCount
FROM
(
SELECT
GRID_ID,
eit.id,
hp.HANDLER_DEPT_ID,
eit.UPDATED_TIME
FROM
esua_epdc_events.epdc_item eit
LEFT JOIN esua_epdc_events.epdc_item_handle_process hp ON hp.item_id = eit.id
LEFT JOIN esua_epdc_admin.sys_dept sd ON sd.id = hp.HANDLER_DEPT_ID
WHERE
eit.DEL_FLAG = '0'
AND hp.DEL_FLAG = '0'
AND eit.ITEM_STATE IN ('5', '10')
AND hp.STATE IN ('5', '10')
AND sd.type_key = 'community_party'
GROUP BY
eit.GRID_ID,
eit.ID
) t
WHERE
DATE_FORMAT(t.UPDATED_TIME, '%Y-%m-%d')&lt;= DATE_FORMAT(
date_add(now(), INTERVAL - 1 DAY),
'%Y-%m-%d'
)
GROUP BY
t.GRID_ID
) commsolved ON commsolved.GRID_ID = sd.id
LEFT JOIN (
SELECT
GRID_ID,
IFNULL(COUNT(0), 0) AS streetClosedCount
FROM
(
SELECT
GRID_ID,
eit.id,
hp.HANDLER_DEPT_ID,
eit.UPDATED_TIME
FROM
esua_epdc_events.epdc_item eit
LEFT JOIN esua_epdc_events.epdc_item_handle_process hp ON hp.item_id = eit.id
LEFT JOIN esua_epdc_admin.sys_dept sd ON sd.id = hp.HANDLER_DEPT_ID
WHERE
eit.DEL_FLAG = '0'
AND hp.DEL_FLAG = '0'
AND eit.ITEM_STATE IN ('5', '10')
AND hp.STATE IN ('5', '10')
AND sd.type_key = 'street_party'
GROUP BY
eit.GRID_ID,
eit.ID
) t
WHERE
DATE_FORMAT(t.UPDATED_TIME, '%Y-%m-%d')&lt;= DATE_FORMAT(
date_add(now(), INTERVAL - 1 DAY),
'%Y-%m-%d'
)
GROUP BY
t.GRID_ID
) streetsolved ON streetsolved.GRID_ID = sd.id
WHERE
sd.del_flag = '0'
AND sd.type_key = 'grid_party'
AND sd.id NOT IN (
SELECT
t.dept_id
FROM
esua_epdc_admin.sys_dept_config t
WHERE
t.del_flag = '0'
)
GROUP BY
sd.id
) info
LEFT JOIN esua_epdc_admin.sys_dept sd ON find_in_set(sd.`id`, info.pids)
WHERE
sd.del_flag = '0'
AND sd.id NOT IN (
SELECT
t.dept_id
FROM
esua_epdc_admin.sys_dept_config t
WHERE
t.del_flag = '0'
)
AND sd.type_key IN (
'community_party',
'street_party'
)
GROUP BY
sd.id
</select>
</mapper>

16
esua-epdc/epdc-module/epdc-api/epdc-api-server/pom.xml

@ -156,10 +156,10 @@
<server.port>9040</server.port>
<spring.redis.index>2</spring.redis.index>
<spring.redis.host>114.215.125.123</spring.redis.host>
<spring.redis.port>9603</spring.redis.port>
<spring.redis.password>epdc!redis@master1405</spring.redis.password>
<spring.redis.index>11</spring.redis.index>
<spring.redis.host>r-m5eh5czgb1nucti6azpd.redis.rds.aliyuncs.com</spring.redis.host>
<spring.redis.port>10001</spring.redis.port>
<spring.redis.password>elink!888</spring.redis.password>
<spring.datasource.druid.url>
<![CDATA[jdbc:mysql://rm-m5eguiv2827bdye798o.mysql.rds.aliyuncs.com:10001/js_esua_epdc_api?allowMultiQueries=true&useUnicode=true&characterEncoding=UTF-8&useSSL=false&serverTimezone=Asia/Shanghai]]>
@ -208,10 +208,10 @@
<server.port>11003</server.port>
<spring.redis.index>2</spring.redis.index>
<spring.redis.host>114.215.125.123</spring.redis.host>
<spring.redis.port>9603</spring.redis.port>
<spring.redis.password>epdc!redis@master1405</spring.redis.password>
<spring.redis.index>11</spring.redis.index>
<spring.redis.host>r-m5eh5czgb1nucti6azpd.redis.rds.aliyuncs.com</spring.redis.host>
<spring.redis.port>10001</spring.redis.port>
<spring.redis.password>elink!888</spring.redis.password>
<spring.datasource.druid.url>
<![CDATA[jdbc:mysql://rm-m5eguiv2827bdye798o.mysql.rds.aliyuncs.com:10001/js_esua_epdc_api?allowMultiQueries=true&useUnicode=true&characterEncoding=UTF-8&useSSL=false&serverTimezone=Asia/Shanghai]]>

43
esua-epdc/epdc-module/epdc-api/epdc-api-server/src/main/java/com/elink/esua/epdc/controller/ApiActUserRelationController.java

@ -1,9 +1,8 @@
package com.elink.esua.epdc.controller;
import com.elink.esua.epdc.activity.ActUserRelationDTO;
import com.elink.esua.epdc.activity.AppActUserCancelsignupDTO;
import com.elink.esua.epdc.activity.AppActUserClockLogDTO;
import com.elink.esua.epdc.activity.AppClockListDTO;
import cn.hutool.core.collection.CollectionUtil;
import com.elink.esua.epdc.activity.*;
import com.elink.esua.epdc.activity.form.EpdcActSignupFormDTO;
import com.elink.esua.epdc.activity.result.AppActInfoDTO;
import com.elink.esua.epdc.common.token.dto.TokenDto;
import com.elink.esua.epdc.commons.tools.annotation.LoginUser;
@ -26,7 +25,9 @@ import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
/**
* APP活动相关接口
@ -54,10 +55,8 @@ public class ApiActUserRelationController {
* @date 2019/12/13 14:41
*/
@PostMapping("signup")
public Result activitySignUp(@LoginUser TokenDto tokenDto, String actId) {
if (StringUtils.isBlank(actId)) {
return new Result().error("活动id不能为空");
}
public Result activitySignUp(@LoginUser TokenDto tokenDto, @RequestBody EpdcActSignupFormDTO formDto) {
ValidatorUtils.validateEntity(formDto);
//验证是否为志愿者
Result isVolunteer = appUserService.getVolunteerCountById(tokenDto);
int code = isVolunteer.getCode();
@ -69,7 +68,7 @@ public class ApiActUserRelationController {
EpdcUserInfoResultDTO epdcUserInfoResultDTO = userInfo.getData();
ActUserRelationDTO actUserRelationDTO = new ActUserRelationDTO();
actUserRelationDTO.setActId(actId);
actUserRelationDTO.setActId(formDto.getActId());
actUserRelationDTO.setUserId(tokenDto.getUserId());
actUserRelationDTO.setNickname(tokenDto.getNickname());
actUserRelationDTO.setFaceImg(tokenDto.getFaceImg());
@ -79,6 +78,19 @@ public class ApiActUserRelationController {
actUserRelationDTO.setPartyFlag(YesOrNoEnum.NO.value());
}
// 参与活动时间段
if (CollectionUtil.isEmpty(formDto.getActPeriodId())) {
return new Result().error("请选择参与活动时间段");
}
List<ActPeriodDTO> periods = new ArrayList<>();
for (String actPeriodId:
formDto.getActPeriodId()) {
ActPeriodDTO period = new ActPeriodDTO();
period.setId(actPeriodId);
periods.add(period);
}
actUserRelationDTO.setPeriods(periods);
String identityNo = epdcUserInfoResultDTO.getIdentityNo();
String identityNoVerification = IdentityNoUtils.IdentityNoVerification(identityNo);
@ -183,4 +195,17 @@ public class ApiActUserRelationController {
return actUserRelationService.clockAddressDetail(actId);
}
/**
* 获取活动可参与时间段
*
* @param actId
* @return com.elink.esua.epdc.commons.tools.utils.Result<java.util.List<com.elink.esua.epdc.activity.ActPeriodDTO>>
* @author lc
* @since 2021/9/3 15:54
*/
@GetMapping("getActPeriods")
public Result<List<ActPeriodDTO>> getActPeriods(String actId) {
return actUserRelationService.listOfActPeriods(actId);
}
}

18
esua-epdc/epdc-module/epdc-api/epdc-api-server/src/main/java/com/elink/esua/epdc/controller/ApiScreenPopulationController.java

@ -8,11 +8,15 @@ import com.elink.esua.epdc.dto.DeptOption;
import com.elink.esua.epdc.dto.PopulationInfoOverviewDTO;
import com.elink.esua.epdc.dto.epdc.form.*;
import com.elink.esua.epdc.dto.epdc.result.*;
import com.elink.esua.epdc.dto.form.EpdcScreenCompanyListFormDTO;
import com.elink.esua.epdc.dto.result.EpdcScreenCompanyListResultDTO;
import com.elink.esua.epdc.service.AppUserService;
import com.elink.esua.epdc.service.CustomService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import java.util.List;
/**
* 用户模块
*
@ -168,4 +172,18 @@ public class ApiScreenPopulationController {
public Result<PopulationInfoOverviewDTO> getPopulationInfoOverviewForScreen(@PathVariable("communityId")String communityId) {
return appUserService.getPopulationInfoOverviewForScreen(communityId);
}
/**
* 大屏-企业信息
*
* @param formDto
* @return com.elink.esua.epdc.commons.tools.utils.Result<java.util.List<com.elink.esua.epdc.dto.result.EpdcScreenCompanyListResultDTO>>
* @author lc
* @since 2021/9/3 18:59
*/
@PostMapping("screenCompany/list")
public Result<List<EpdcScreenCompanyListResultDTO>> screenCompanyList(@RequestBody EpdcScreenCompanyListFormDTO formDto) {
ValidatorUtils.validateEntity(formDto);
return customService.listOfCompanyListForScreen(formDto);
}
}

10
esua-epdc/epdc-module/epdc-api/epdc-api-server/src/main/java/com/elink/esua/epdc/feign/AdminFeignClient.java

@ -116,6 +116,16 @@ public interface AdminFeignClient {
@GetMapping("sys/dept/party/getDeptTreeWithTypeKey")
Result<DeptOption> getDeptTreeWithTypeKey();
/**
* 组织机构树街道-社区-网格
*
* @return com.elink.esua.epdc.commons.tools.utils.Result<com.elink.esua.epdc.dto.DeptOption>
* @author lc
* @since 2021/8/17 16:08
*/
@GetMapping("sys/dept/party/getOrgTree")
Result<DeptOption> getOrgTree();
/**
* 根据数据字典类型获取简版数据字典列表用于页面下拉菜单
*

18
esua-epdc/epdc-module/epdc-api/epdc-api-server/src/main/java/com/elink/esua/epdc/feign/AppActUserRelationFeignClient.java

@ -1,9 +1,6 @@
package com.elink.esua.epdc.feign;
import com.elink.esua.epdc.activity.ActUserRelationDTO;
import com.elink.esua.epdc.activity.AppActUserCancelsignupDTO;
import com.elink.esua.epdc.activity.AppActUserClockLogDTO;
import com.elink.esua.epdc.activity.AppClockListDTO;
import com.elink.esua.epdc.activity.*;
import com.elink.esua.epdc.activity.result.AppActInfoDTO;
import com.elink.esua.epdc.commons.tools.constant.ServiceConstant;
import com.elink.esua.epdc.commons.tools.utils.Result;
@ -14,6 +11,8 @@ import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import java.util.List;
/**
*
* 活动报名管理
@ -72,4 +71,15 @@ public interface AppActUserRelationFeignClient {
**/
@GetMapping(value = "heart/appactuserrelation/selectListV2ActUserRelation",consumes = MediaType.APPLICATION_JSON_UTF8_VALUE)
Result<AppClockListDTO> selectListV2ActUserRelation(EpdcClockListV2FormDTO epdcClockListV2FormDTO);
/**
* 获取活动可参与时间段
*
* @param actId
* @return com.elink.esua.epdc.commons.tools.utils.Result<java.util.List<com.elink.esua.epdc.activity.ActPeriodDTO>>
* @author lc
* @since 2021/9/3 15:54
*/
@GetMapping(value = "heart/appactuserrelation/getActPeriods/{actId}",consumes = MediaType.APPLICATION_JSON_UTF8_VALUE)
Result<List<ActPeriodDTO>> getActPeriods(@PathVariable("actId") String actId);
}

11
esua-epdc/epdc-module/epdc-api/epdc-api-server/src/main/java/com/elink/esua/epdc/feign/CustomFeignClient.java

@ -398,4 +398,15 @@ public interface CustomFeignClient {
@PostMapping(value = "custom/enterprisereport/addEnterpriseReport", consumes = MediaType.APPLICATION_JSON_VALUE)
Result addEnterpriseReport(@RequestBody EnterpriseReportAddFormDTO enterpriseReportAddFormDTO);
/**
* 大屏-企业列表
*
* @param formDto
* @return com.elink.esua.epdc.commons.tools.utils.Result<java.util.List<com.elink.esua.epdc.dto.result.EpdcScreenCompanyListResultDTO>>
* @author lc
* @since 2021/9/3 19:02
*/
@PostMapping(value = "custom/screencompany/screenCompanyList", consumes = MediaType.APPLICATION_JSON_VALUE)
Result<List<EpdcScreenCompanyListResultDTO>> listOfCompanyListForScreen(EpdcScreenCompanyListFormDTO formDto);
}

5
esua-epdc/epdc-module/epdc-api/epdc-api-server/src/main/java/com/elink/esua/epdc/feign/fallback/AdminFeignClientFallback.java

@ -62,6 +62,11 @@ public class AdminFeignClientFallback implements AdminFeignClient {
return ModuleUtils.feignConError(ServiceConstant.EPDC_ADMIN_SERVER, "getDeptTreeWithTypeKey");
}
@Override
public Result<DeptOption> getOrgTree() {
return ModuleUtils.feignConError(ServiceConstant.EPDC_ADMIN_SERVER, "getOrgTree");
}
@Override
public Result<List<SysSimpleDictDTO>> getListSimpleDictInfo(String dictType) {
return ModuleUtils.feignConError(ServiceConstant.EPDC_ADMIN_SERVER, "getListSimpleDictInfo", dictType);

12
esua-epdc/epdc-module/epdc-api/epdc-api-server/src/main/java/com/elink/esua/epdc/feign/fallback/AppActUserRelationFeignClientFallback.java

@ -1,9 +1,6 @@
package com.elink.esua.epdc.feign.fallback;
import com.elink.esua.epdc.activity.ActUserRelationDTO;
import com.elink.esua.epdc.activity.AppActUserCancelsignupDTO;
import com.elink.esua.epdc.activity.AppActUserClockLogDTO;
import com.elink.esua.epdc.activity.AppClockListDTO;
import com.elink.esua.epdc.activity.*;
import com.elink.esua.epdc.activity.result.AppActInfoDTO;
import com.elink.esua.epdc.commons.tools.constant.ServiceConstant;
import com.elink.esua.epdc.commons.tools.utils.ModuleUtils;
@ -12,6 +9,8 @@ import com.elink.esua.epdc.dto.form.EpdcClockListV2FormDTO;
import com.elink.esua.epdc.feign.AppActUserRelationFeignClient;
import org.springframework.stereotype.Component;
import java.util.List;
/**
* @Authorwanggongfeng
* @Date2019/12/16 15:11
@ -48,4 +47,9 @@ public class AppActUserRelationFeignClientFallback implements AppActUserRelation
return ModuleUtils.feignConError(ServiceConstant.EPDC_HEART_SERVER, "selectListV2ActUserRelation", epdcClockListV2FormDTO);
}
@Override
public Result<List<ActPeriodDTO>> getActPeriods(String actId) {
return ModuleUtils.feignConError(ServiceConstant.EPDC_HEART_SERVER, "getActPeriods", actId);
}
}

5
esua-epdc/epdc-module/epdc-api/epdc-api-server/src/main/java/com/elink/esua/epdc/feign/fallback/CustomFeignClientFallback.java

@ -215,4 +215,9 @@ public class CustomFeignClientFallback implements CustomFeignClient {
public Result addEnterpriseReport(EnterpriseReportAddFormDTO enterpriseReportAddFormDTO) {
return ModuleUtils.feignConError(ServiceConstant.EPDC_CUSTOM_SERVER, "addEnterpriseReport", enterpriseReportAddFormDTO);
}
@Override
public Result<List<EpdcScreenCompanyListResultDTO>> listOfCompanyListForScreen(EpdcScreenCompanyListFormDTO formDto) {
return ModuleUtils.feignConError(ServiceConstant.EPDC_CUSTOM_SERVER, "listOfCompanyListForScreen", formDto);
}
}

17
esua-epdc/epdc-module/epdc-api/epdc-api-server/src/main/java/com/elink/esua/epdc/service/ActUserRelationService.java

@ -1,13 +1,12 @@
package com.elink.esua.epdc.service;
import com.elink.esua.epdc.activity.ActUserRelationDTO;
import com.elink.esua.epdc.activity.AppActUserCancelsignupDTO;
import com.elink.esua.epdc.activity.AppActUserClockLogDTO;
import com.elink.esua.epdc.activity.AppClockListDTO;
import com.elink.esua.epdc.activity.*;
import com.elink.esua.epdc.activity.result.AppActInfoDTO;
import com.elink.esua.epdc.commons.tools.utils.Result;
import com.elink.esua.epdc.dto.form.EpdcClockListV2FormDTO;
import java.util.List;
/**
* @author wanggongfeng
* @date 2019/12/17 9:50
@ -61,4 +60,14 @@ public interface ActUserRelationService {
* @return com.elink.esua.epdc.commons.tools.utils.Result<com.elink.esua.epdc.activity.AppClockListDTO>
**/
Result<AppClockListDTO> getV2ClockList(EpdcClockListV2FormDTO epdcClockListV2FormDTO);
/**
* 获取活动可参与时间段
*
* @param actId
* @return com.elink.esua.epdc.commons.tools.utils.Result<java.util.List<com.elink.esua.epdc.activity.ActPeriodDTO>>
* @author lc
* @since 2021/9/3 15:55
*/
Result<List<ActPeriodDTO>> listOfActPeriods(String actId);
}

10
esua-epdc/epdc-module/epdc-api/epdc-api-server/src/main/java/com/elink/esua/epdc/service/CustomService.java

@ -382,4 +382,14 @@ public interface CustomService {
* @return com.elink.esua.epdc.commons.tools.utils.Result<com.elink.esua.epdc.dto.EnterpriseReportDTO>
**/
Result<EnterpriseReportDTO> getEnterpriseReportList(String id);
/**
* 大屏-企业信息
*
* @param formDto
* @return com.elink.esua.epdc.commons.tools.utils.Result<java.util.List<com.elink.esua.epdc.dto.result.EpdcScreenCompanyListResultDTO>>
* @author lc
* @since 2021/9/3 19:00
*/
Result<List<EpdcScreenCompanyListResultDTO>> listOfCompanyListForScreen(EpdcScreenCompanyListFormDTO formDto);
}

15
esua-epdc/epdc-module/epdc-api/epdc-api-server/src/main/java/com/elink/esua/epdc/service/impl/ActUserRelationServiceImpl.java

@ -1,9 +1,6 @@
package com.elink.esua.epdc.service.impl;
import com.elink.esua.epdc.activity.ActUserRelationDTO;
import com.elink.esua.epdc.activity.AppActUserCancelsignupDTO;
import com.elink.esua.epdc.activity.AppActUserClockLogDTO;
import com.elink.esua.epdc.activity.AppClockListDTO;
import com.elink.esua.epdc.activity.*;
import com.elink.esua.epdc.activity.result.AppActInfoDTO;
import com.elink.esua.epdc.commons.tools.utils.Result;
import com.elink.esua.epdc.dto.form.EpdcClockListV2FormDTO;
@ -13,6 +10,8 @@ import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
/**
* @author wanggongfeng
@ -58,6 +57,12 @@ public class ActUserRelationServiceImpl implements ActUserRelationService {
@Override
public Result<AppClockListDTO> getV2ClockList(EpdcClockListV2FormDTO epdcClockListV2FormDTO) {
Result<AppClockListDTO> result = actInfoFeignClient.selectListV2ActUserRelation(epdcClockListV2FormDTO);
return result; }
return result;
}
@Override
public Result<List<ActPeriodDTO>> listOfActPeriods(String actId) {
return actInfoFeignClient.getActPeriods(actId);
}
}

2
esua-epdc/epdc-module/epdc-api/epdc-api-server/src/main/java/com/elink/esua/epdc/service/impl/AppUserServiceImpl.java

@ -1702,7 +1702,7 @@ public class AppUserServiceImpl implements AppUserService {
@Override
public Result<DeptOption> getDeptTreeWithTypeKey() {
return adminFeignClient.getDeptTreeWithTypeKey();
return adminFeignClient.getOrgTree();
}
@Override

5
esua-epdc/epdc-module/epdc-api/epdc-api-server/src/main/java/com/elink/esua/epdc/service/impl/CustomServiceImpl.java

@ -417,4 +417,9 @@ public class CustomServiceImpl implements CustomService {
return customFeignClient.getEnterpriseReportList(id);
}
@Override
public Result<List<EpdcScreenCompanyListResultDTO>> listOfCompanyListForScreen(EpdcScreenCompanyListFormDTO formDto) {
return customFeignClient.listOfCompanyListForScreen(formDto);
}
}

16
esua-epdc/epdc-module/epdc-content-security/epdc-content-security-server/pom.xml

@ -139,10 +139,10 @@
<server.port>9079</server.port>
<spring.redis.index>2</spring.redis.index>
<spring.redis.host>114.215.125.123</spring.redis.host>
<spring.redis.port>9603</spring.redis.port>
<spring.redis.password>epdc!redis@master1405</spring.redis.password>
<spring.redis.index>11</spring.redis.index>
<spring.redis.host>r-m5eh5czgb1nucti6azpd.redis.rds.aliyuncs.com</spring.redis.host>
<spring.redis.port>10001</spring.redis.port>
<spring.redis.password>elink!888</spring.redis.password>
<spring.datasource.druid.url>
<![CDATA[jdbc:mysql://rm-m5eguiv2827bdye798o.mysql.rds.aliyuncs.com:10001/js_esua_epdc_content_security?allowMultiQueries=true&useUnicode=true&characterEncoding=UTF-8&useSSL=false&serverTimezone=Asia/Shanghai]]>
@ -181,10 +181,10 @@
<server.port>11017</server.port>
<spring.redis.index>2</spring.redis.index>
<spring.redis.host>114.215.125.123</spring.redis.host>
<spring.redis.port>9603</spring.redis.port>
<spring.redis.password>epdc!redis@master1405</spring.redis.password>
<spring.redis.index>11</spring.redis.index>
<spring.redis.host>r-m5eh5czgb1nucti6azpd.redis.rds.aliyuncs.com</spring.redis.host>
<spring.redis.port>10001</spring.redis.port>
<spring.redis.password>elink!888</spring.redis.password>
<spring.datasource.druid.url>
<![CDATA[jdbc:mysql://rm-m5eguiv2827bdye79.mysql.rds.aliyuncs.com:10001/js_esua_epdc_content_security?allowMultiQueries=true&useUnicode=true&characterEncoding=UTF-8&useSSL=false&serverTimezone=Asia/Shanghai]]>

5
esua-epdc/epdc-module/epdc-custom/epdc-custom-client/src/main/java/com/elink/esua/epdc/constant/CustomImageConstant.java

@ -20,4 +20,9 @@ public interface CustomImageConstant {
* 志愿者服务-拼团购-评价
*/
String IMAGE_TYPE_GROUP_BUY_EVALUATION = "group_buy_evaluation";
/**
* 大屏企业管理照片
*/
String SCREEN_COMPANY_IMAGE = "screen_company_image";
}

129
esua-epdc/epdc-module/epdc-custom/epdc-custom-client/src/main/java/com/elink/esua/epdc/dto/ScreenCompanyDTO.java

@ -0,0 +1,129 @@
/**
* Copyright 2018 人人开源 https://www.renren.io
* <p>
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* <p>
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* <p>
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.elink.esua.epdc.dto;
import java.io.Serializable;
import java.util.Date;
import java.util.List;
import com.elink.esua.epdc.dto.result.ScreenCompanyImagesResultDTO;
import lombok.Data;
/**
* 大屏企业信息表
*
* @author qu qu@elink-cn.com
* @since v1.0.0 2021-09-03
*/
@Data
public class ScreenCompanyDTO implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 主键
*/
private String id;
/**
* 企业名称
*/
private String companyName;
/**
* 企业简介
*/
private String companyIntroduction;
/**
* 联系人
*/
private String contactPerson;
/**
* 联系电话
*/
private String mobile;
/**
* 企业地址
*/
private String companyAddress;
/**
* 统一社会信用代码
*/
private String uniformSocialCreditCode;
/**
* 注册资金(万元)
*/
private Integer registeredCapital;
/**
* 企业人数
*/
private Integer employedPopulation;
/**
* 经度
*/
private String longitude;
/**
* 纬度
*/
private String latitude;
/**
* 乐观锁
*/
private Integer revision;
/**
* 删除标识 01
*/
private String delFlag;
/**
* 创建人
*/
private String createdBy;
/**
* 创建时间
*/
private Date createdTime;
/**
* 更新人
*/
private String updatedBy;
/**
* 更新时间
*/
private Date updatedTime;
/**
* 企业照片
*/
private List<ScreenCompanyImagesResultDTO> images;
}

29
esua-epdc/epdc-module/epdc-custom/epdc-custom-client/src/main/java/com/elink/esua/epdc/dto/form/EpdcScreenCompanyListFormDTO.java

@ -0,0 +1,29 @@
package com.elink.esua.epdc.dto.form;
import lombok.Data;
import javax.validation.constraints.Min;
import java.io.Serializable;
@Data
public class EpdcScreenCompanyListFormDTO implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 页码
*/
@Min(value = 1, message = "页码必须大于0")
private Integer pageIndex;
/**
* 页容量
*/
@Min(value = 1, message = "页容量必须大于0")
private Integer pageSize;
/**
* 企业名称
*/
private String companyName;
}

57
esua-epdc/epdc-module/epdc-custom/epdc-custom-client/src/main/java/com/elink/esua/epdc/dto/result/EpdcScreenCompanyListResultDTO.java

@ -0,0 +1,57 @@
package com.elink.esua.epdc.dto.result;
import lombok.Data;
import java.io.Serializable;
import java.util.List;
@Data
public class EpdcScreenCompanyListResultDTO implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 主键
*/
private String id;
/**
* 企业名称
*/
private String companyName;
/**
* 企业简介
*/
private String companyIntroduction;
/**
* 联系人
*/
private String contactPerson;
/**
* 联系电话
*/
private String mobile;
/**
* 企业地址
*/
private String companyAddress;
/**
* 经度
*/
private String longitude;
/**
* 纬度
*/
private String latitude;
/**
* 企业照片
*/
private List<String> images;
}

13
esua-epdc/epdc-module/epdc-custom/epdc-custom-client/src/main/java/com/elink/esua/epdc/dto/result/ScreenCompanyImagesResultDTO.java

@ -0,0 +1,13 @@
package com.elink.esua.epdc.dto.result;
import lombok.Data;
import java.io.Serializable;
@Data
public class ScreenCompanyImagesResultDTO implements Serializable {
private String name;
private String url;
}

16
esua-epdc/epdc-module/epdc-custom/epdc-custom-server/pom.xml

@ -139,10 +139,10 @@
<server.port>9076</server.port>
<spring.redis.index>2</spring.redis.index>
<spring.redis.host>114.215.125.123</spring.redis.host>
<spring.redis.port>9603</spring.redis.port>
<spring.redis.password>epdc!redis@master1405</spring.redis.password>
<spring.redis.index>11</spring.redis.index>
<spring.redis.host>r-m5eh5czgb1nucti6azpd.redis.rds.aliyuncs.com</spring.redis.host>
<spring.redis.port>10001</spring.redis.port>
<spring.redis.password>elink!888</spring.redis.password>
<spring.datasource.druid.url>
<![CDATA[jdbc:mysql://rm-m5eguiv2827bdye798o.mysql.rds.aliyuncs.com:10001/js_esua_epdc_custom?allowMultiQueries=true&useUnicode=true&characterEncoding=UTF-8&useSSL=false&serverTimezone=Asia/Shanghai]]>
@ -172,10 +172,10 @@
<server.port>11015</server.port>
<spring.redis.index>2</spring.redis.index>
<spring.redis.host>114.215.125.123</spring.redis.host>
<spring.redis.port>9603</spring.redis.port>
<spring.redis.password>epdc!redis@master1405</spring.redis.password>
<spring.redis.index>11</spring.redis.index>
<spring.redis.host>r-m5eh5czgb1nucti6azpd.redis.rds.aliyuncs.com</spring.redis.host>
<spring.redis.port>10001</spring.redis.port>
<spring.redis.password>elink!888</spring.redis.password>
<spring.datasource.druid.url>
<![CDATA[jdbc:mysql://rm-m5eguiv2827bdye798o.mysql.rds.aliyuncs.com:10001/js_esua_epdc_custom?allowMultiQueries=true&useUnicode=true&characterEncoding=UTF-8&useSSL=false&serverTimezone=Asia/Shanghai]]>

111
esua-epdc/epdc-module/epdc-custom/epdc-custom-server/src/main/java/com/elink/esua/epdc/modules/epidemic/controller/ScreenCompanyController.java

@ -0,0 +1,111 @@
/**
* Copyright 2018 人人开源 https://www.renren.io
* <p>
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* <p>
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* <p>
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.elink.esua.epdc.modules.epidemic.controller;
import com.elink.esua.epdc.commons.tools.page.PageData;
import com.elink.esua.epdc.commons.tools.utils.ExcelUtils;
import com.elink.esua.epdc.commons.tools.utils.Result;
import com.elink.esua.epdc.commons.tools.validator.AssertUtils;
import com.elink.esua.epdc.commons.tools.validator.ValidatorUtils;
import com.elink.esua.epdc.commons.tools.validator.group.AddGroup;
import com.elink.esua.epdc.commons.tools.validator.group.UpdateGroup;
import com.elink.esua.epdc.commons.tools.validator.group.DefaultGroup;
import com.elink.esua.epdc.dto.ScreenCompanyDTO;
import com.elink.esua.epdc.dto.form.EpdcScreenCompanyListFormDTO;
import com.elink.esua.epdc.dto.result.EpdcScreenCompanyListResultDTO;
import com.elink.esua.epdc.modules.epidemic.excel.ScreenCompanyExcel;
import com.elink.esua.epdc.modules.epidemic.service.ScreenCompanyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletResponse;
import java.util.List;
import java.util.Map;
/**
* 大屏企业信息表
*
* @author qu qu@elink-cn.com
* @since v1.0.0 2021-09-03
*/
@RestController
@RequestMapping("screencompany")
public class ScreenCompanyController {
@Autowired
private ScreenCompanyService screenCompanyService;
@GetMapping("page")
public Result<PageData<ScreenCompanyDTO>> page(@RequestParam Map<String, Object> params){
PageData<ScreenCompanyDTO> page = screenCompanyService.page(params);
return new Result<PageData<ScreenCompanyDTO>>().ok(page);
}
@GetMapping("{id}")
public Result<ScreenCompanyDTO> get(@PathVariable("id") String id){
ScreenCompanyDTO data = screenCompanyService.get(id);
return new Result<ScreenCompanyDTO>().ok(data);
}
@PostMapping
public Result save(@RequestBody ScreenCompanyDTO dto){
//效验数据
ValidatorUtils.validateEntity(dto, AddGroup.class, DefaultGroup.class);
screenCompanyService.save(dto);
return new Result();
}
@PutMapping
public Result update(@RequestBody ScreenCompanyDTO dto){
//效验数据
ValidatorUtils.validateEntity(dto, UpdateGroup.class, DefaultGroup.class);
screenCompanyService.update(dto);
return new Result();
}
@DeleteMapping
public Result delete(@RequestBody String[] ids){
//效验数据
AssertUtils.isArrayEmpty(ids, "id");
screenCompanyService.delete(ids);
return new Result();
}
@GetMapping("export")
public void export(@RequestParam Map<String, Object> params, HttpServletResponse response) throws Exception {
List<ScreenCompanyDTO> list = screenCompanyService.list(params);
ExcelUtils.exportExcelToTarget(response, null, list, ScreenCompanyExcel.class);
}
/**
* 大屏-企业列表
*
* @param formDto
* @return com.elink.esua.epdc.commons.tools.utils.Result<java.util.List<com.elink.esua.epdc.dto.result.EpdcScreenCompanyListResultDTO>>
* @author lc
* @since 2021/9/3 18:55
*/
@PostMapping("screenCompanyList")
public Result<List<EpdcScreenCompanyListResultDTO>> screenCompanyList(@RequestBody EpdcScreenCompanyListFormDTO formDto) {
ValidatorUtils.validateEntity(formDto);
List<EpdcScreenCompanyListResultDTO> data = screenCompanyService.listOfCompanyListForScreen(formDto);
return new Result<List<EpdcScreenCompanyListResultDTO>>().ok(data);
}
}

58
esua-epdc/epdc-module/epdc-custom/epdc-custom-server/src/main/java/com/elink/esua/epdc/modules/epidemic/dao/ScreenCompanyDao.java

@ -0,0 +1,58 @@
/**
* Copyright 2018 人人开源 https://www.renren.io
* <p>
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* <p>
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* <p>
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.elink.esua.epdc.modules.epidemic.dao;
import com.elink.esua.epdc.commons.mybatis.dao.BaseDao;
import com.elink.esua.epdc.dto.ScreenCompanyDTO;
import com.elink.esua.epdc.dto.form.EpdcScreenCompanyListFormDTO;
import com.elink.esua.epdc.dto.result.EpdcScreenCompanyListResultDTO;
import com.elink.esua.epdc.modules.epidemic.entity.ScreenCompanyEntity;
import org.apache.ibatis.annotations.Mapper;
import java.util.List;
/**
* 大屏企业信息表
*
* @author qu qu@elink-cn.com
* @since v1.0.0 2021-09-03
*/
@Mapper
public interface ScreenCompanyDao extends BaseDao<ScreenCompanyEntity> {
/**
* 查询大屏企业信息
*
* @param id
* @return com.elink.esua.epdc.dto.ScreenCompanyDTO
* @author lc
* @since 2021/9/3 18:34
*/
ScreenCompanyDTO selectCompanyInfoById(String id);
/**
* 大屏-企业列表
*
* @param formDto
* @return java.util.List<com.elink.esua.epdc.dto.result.EpdcScreenCompanyListResultDTO>
* @author lc
* @since 2021/9/3 18:50
*/
List<EpdcScreenCompanyListResultDTO> selectListOfCompanyListForScreen(EpdcScreenCompanyListFormDTO formDto);
}

91
esua-epdc/epdc-module/epdc-custom/epdc-custom-server/src/main/java/com/elink/esua/epdc/modules/epidemic/entity/ScreenCompanyEntity.java

@ -0,0 +1,91 @@
/**
* Copyright 2018 人人开源 https://www.renren.io
* <p>
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* <p>
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* <p>
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.elink.esua.epdc.modules.epidemic.entity;
import com.baomidou.mybatisplus.annotation.TableName;
import com.elink.esua.epdc.commons.mybatis.entity.BaseEpdcEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.util.Date;
/**
* 大屏企业信息表
*
* @author qu qu@elink-cn.com
* @since v1.0.0 2021-09-03
*/
@Data
@EqualsAndHashCode(callSuper=false)
@TableName("epdc_screen_company")
public class ScreenCompanyEntity extends BaseEpdcEntity {
private static final long serialVersionUID = 1L;
/**
* 企业名称
*/
private String companyName;
/**
* 企业简介
*/
private String companyIntroduction;
/**
* 联系人
*/
private String contactPerson;
/**
* 联系电话
*/
private String mobile;
/**
* 企业地址
*/
private String companyAddress;
/**
* 统一社会信用代码
*/
private String uniformSocialCreditCode;
/**
* 注册资金(万元)
*/
private Integer registeredCapital;
/**
* 企业人数
*/
private Integer employedPopulation;
/**
* 经度
*/
private String longitude;
/**
* 纬度
*/
private String latitude;
}

86
esua-epdc/epdc-module/epdc-custom/epdc-custom-server/src/main/java/com/elink/esua/epdc/modules/epidemic/excel/ScreenCompanyExcel.java

@ -0,0 +1,86 @@
/**
* Copyright 2018 人人开源 https://www.renren.io
* <p>
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* <p>
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* <p>
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.elink.esua.epdc.modules.epidemic.excel;
import cn.afterturn.easypoi.excel.annotation.Excel;
import lombok.Data;
import java.util.Date;
/**
* 大屏企业信息表
*
* @author qu qu@elink-cn.com
* @since v1.0.0 2021-09-03
*/
@Data
public class ScreenCompanyExcel {
@Excel(name = "主键")
private String id;
@Excel(name = "企业名称")
private String companyName;
@Excel(name = "企业简介")
private String companyIntroduction;
@Excel(name = "联系人")
private String contactPerson;
@Excel(name = "联系电话")
private String mobile;
@Excel(name = "企业地址")
private String companyAddress;
@Excel(name = "统一社会信用代码")
private String uniformSocialCreditCode;
@Excel(name = "注册资金(万元)")
private Integer registeredCapital;
@Excel(name = "企业人数")
private Integer employedPopulation;
@Excel(name = "经度")
private String longitude;
@Excel(name = "纬度")
private String latitude;
@Excel(name = "乐观锁")
private Integer revision;
@Excel(name = "删除标识 0:否,1:是")
private String delFlag;
@Excel(name = "创建人")
private String createdBy;
@Excel(name = "创建时间")
private Date createdTime;
@Excel(name = "更新人")
private String updatedBy;
@Excel(name = "更新时间")
private Date updatedTime;
}

107
esua-epdc/epdc-module/epdc-custom/epdc-custom-server/src/main/java/com/elink/esua/epdc/modules/epidemic/service/ScreenCompanyService.java

@ -0,0 +1,107 @@
/**
* Copyright 2018 人人开源 https://www.renren.io
* <p>
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* <p>
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* <p>
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.elink.esua.epdc.modules.epidemic.service;
import com.elink.esua.epdc.commons.mybatis.service.BaseService;
import com.elink.esua.epdc.commons.tools.page.PageData;
import com.elink.esua.epdc.dto.ScreenCompanyDTO;
import com.elink.esua.epdc.dto.form.EpdcScreenCompanyListFormDTO;
import com.elink.esua.epdc.dto.result.EpdcScreenCompanyListResultDTO;
import com.elink.esua.epdc.modules.epidemic.entity.ScreenCompanyEntity;
import java.util.List;
import java.util.Map;
/**
* 大屏企业信息表
*
* @author qu qu@elink-cn.com
* @since v1.0.0 2021-09-03
*/
public interface ScreenCompanyService extends BaseService<ScreenCompanyEntity> {
/**
* 默认分页
*
* @param params
* @return PageData<ScreenCompanyDTO>
* @author generator
* @date 2021-09-03
*/
PageData<ScreenCompanyDTO> page(Map<String, Object> params);
/**
* 默认查询
*
* @param params
* @return java.util.List<ScreenCompanyDTO>
* @author generator
* @date 2021-09-03
*/
List<ScreenCompanyDTO> list(Map<String, Object> params);
/**
* 单条查询
*
* @param id
* @return ScreenCompanyDTO
* @author generator
* @date 2021-09-03
*/
ScreenCompanyDTO get(String id);
/**
* 默认保存
*
* @param dto
* @return void
* @author generator
* @date 2021-09-03
*/
void save(ScreenCompanyDTO dto);
/**
* 默认更新
*
* @param dto
* @return void
* @author generator
* @date 2021-09-03
*/
void update(ScreenCompanyDTO dto);
/**
* 批量删除
*
* @param ids
* @return void
* @author generator
* @date 2021-09-03
*/
void delete(String[] ids);
/**
* 大屏-企业列表
*
* @param formDto
* @return java.util.List<com.elink.esua.epdc.dto.result.EpdcScreenCompanyListResultDTO>
* @author lc
* @since 2021/9/3 18:52
*/
List<EpdcScreenCompanyListResultDTO> listOfCompanyListForScreen(EpdcScreenCompanyListFormDTO formDto);
}

140
esua-epdc/epdc-module/epdc-custom/epdc-custom-server/src/main/java/com/elink/esua/epdc/modules/epidemic/service/impl/ScreenCompanyServiceImpl.java

@ -0,0 +1,140 @@
/**
* Copyright 2018 人人开源 https://www.renren.io
* <p>
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* <p>
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* <p>
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.elink.esua.epdc.modules.epidemic.service.impl;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.elink.esua.epdc.commons.mybatis.service.impl.BaseServiceImpl;
import com.elink.esua.epdc.commons.tools.constant.NumConstant;
import com.elink.esua.epdc.commons.tools.page.PageData;
import com.elink.esua.epdc.commons.tools.utils.ConvertUtils;
import com.elink.esua.epdc.commons.tools.constant.FieldConstant;
import com.elink.esua.epdc.constant.CustomImageConstant;
import com.elink.esua.epdc.dto.ScreenCompanyDTO;
import com.elink.esua.epdc.dto.form.EpdcScreenCompanyListFormDTO;
import com.elink.esua.epdc.dto.result.EpdcScreenCompanyListResultDTO;
import com.elink.esua.epdc.dto.result.ScreenCompanyImagesResultDTO;
import com.elink.esua.epdc.modules.epidemic.dao.ScreenCompanyDao;
import com.elink.esua.epdc.modules.epidemic.entity.ScreenCompanyEntity;
import com.elink.esua.epdc.modules.epidemic.service.ScreenCompanyService;
import com.elink.esua.epdc.modules.reportissue.service.CustomImgService;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.Map;
/**
* 大屏企业信息表
*
* @author qu qu@elink-cn.com
* @since v1.0.0 2021-09-03
*/
@Service
public class ScreenCompanyServiceImpl extends BaseServiceImpl<ScreenCompanyDao, ScreenCompanyEntity> implements ScreenCompanyService {
@Autowired
private CustomImgService customImgService;
@Override
public PageData<ScreenCompanyDTO> page(Map<String, Object> params) {
IPage<ScreenCompanyEntity> page = baseDao.selectPage(
getPage(params, FieldConstant.CREATED_TIME, false),
getWrapper(params)
);
return getPageData(page, ScreenCompanyDTO.class);
}
@Override
public List<ScreenCompanyDTO> list(Map<String, Object> params) {
List<ScreenCompanyEntity> entityList = baseDao.selectList(getWrapper(params));
return ConvertUtils.sourceToTarget(entityList, ScreenCompanyDTO.class);
}
private QueryWrapper<ScreenCompanyEntity> getWrapper(Map<String, Object> params){
String companyName = (String)params.get("companyName");
QueryWrapper<ScreenCompanyEntity> wrapper = new QueryWrapper<>();
wrapper.like(StringUtils.isNotBlank(companyName), "COMPANY_NAME", companyName.trim());
return wrapper;
}
@Override
public ScreenCompanyDTO get(String id) {
return baseDao.selectCompanyInfoById(id);
}
@Override
@Transactional(rollbackFor = Exception.class)
public void save(ScreenCompanyDTO dto) {
ScreenCompanyEntity entity = ConvertUtils.sourceToTarget(dto, ScreenCompanyEntity.class);
insert(entity);
// 保存图片
this.saveImages(dto.getImages(), entity.getId());
}
@Override
@Transactional(rollbackFor = Exception.class)
public void update(ScreenCompanyDTO dto) {
ScreenCompanyEntity entity = ConvertUtils.sourceToTarget(dto, ScreenCompanyEntity.class);
updateById(entity);
// 删除已有图片
customImgService.modifyImagesByReferenceIdAndImgType(entity.getId(), CustomImageConstant.SCREEN_COMPANY_IMAGE);
// 保存新图片
this.saveImages(dto.getImages(), entity.getId());
}
@Override
@Transactional(rollbackFor = Exception.class)
public void delete(String[] ids) {
// 逻辑删除(@TableLogic 注解)
baseDao.deleteBatchIds(Arrays.asList(ids));
}
@Override
public List<EpdcScreenCompanyListResultDTO> listOfCompanyListForScreen(EpdcScreenCompanyListFormDTO formDto) {
int pageIndex = (formDto.getPageIndex() - NumConstant.ONE) * formDto.getPageSize();
formDto.setPageIndex(pageIndex);
return baseDao.selectListOfCompanyListForScreen(formDto);
}
/**
* 保存图片
*
* @param dto
* @param id
* @return void
* @author lc
* @since 2021/9/6 11:06
*/
private void saveImages(List<ScreenCompanyImagesResultDTO> dto, String id) {
List<String> images = new ArrayList<>();
for (ScreenCompanyImagesResultDTO image:
dto) {
images.add(image.getUrl());
}
customImgService.saveImages(images, id, CustomImageConstant.SCREEN_COMPANY_IMAGE);
}
}

13
esua-epdc/epdc-module/epdc-custom/epdc-custom-server/src/main/java/com/elink/esua/epdc/modules/reportissue/dao/CustomImgDao.java

@ -37,4 +37,15 @@ public interface CustomImgDao extends BaseDao<CustomImgEntity> {
* @return void
**/
void deleteByGroupBuyId(String id);
}
/**
* 删除照片
*
* @param referenceId
* @param imgType
* @return void
* @author lc
* @since 2021/9/3 18:30
*/
void modifyImagesByReferenceIdAndImgType(String referenceId, String imgType);
}

13
esua-epdc/epdc-module/epdc-custom/epdc-custom-server/src/main/java/com/elink/esua/epdc/modules/reportissue/service/CustomImgService.java

@ -104,4 +104,15 @@ public interface CustomImgService extends BaseService<CustomImgEntity> {
* @since 2020/10/22 17:42
*/
boolean saveImages(List<String> images, String referenceId, String imgType);
}
/**
* 删除照片
*
* @param referenceId
* @param imgType
* @return void
* @author lc
* @since 2021/9/3 18:29
*/
void modifyImagesByReferenceIdAndImgType(String referenceId, String imgType);
}

8
esua-epdc/epdc-module/epdc-custom/epdc-custom-server/src/main/java/com/elink/esua/epdc/modules/reportissue/service/impl/CustomImgServiceImpl.java

@ -116,4 +116,10 @@ public class CustomImgServiceImpl extends BaseServiceImpl<CustomImgDao, CustomIm
return insertBatch(entities);
}
}
@Override
@Transactional(rollbackFor = Exception.class)
public void modifyImagesByReferenceIdAndImgType(String referenceId, String imgType) {
baseDao.modifyImagesByReferenceIdAndImgType(referenceId, imgType);
}
}

82
esua-epdc/epdc-module/epdc-custom/epdc-custom-server/src/main/resources/mapper/epidemic/ScreenCompanyDao.xml

@ -0,0 +1,82 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.elink.esua.epdc.modules.epidemic.dao.ScreenCompanyDao">
<resultMap id="screenCompanyInfo" type="com.elink.esua.epdc.dto.ScreenCompanyDTO">
<result property="id" column="ID"/>
<result property="companyName" column="COMPANY_NAME"/>
<result property="companyIntroduction" column="COMPANY_INTRODUCTION"/>
<result property="contactPerson" column="CONTACT_PERSON"/>
<result property="mobile" column="MOBILE"/>
<result property="companyAddress" column="COMPANY_ADDRESS"/>
<result property="uniformSocialCreditCode" column="UNIFORM_SOCIAL_CREDIT_CODE"/>
<result property="registeredCapital" column="REGISTERED_CAPITAL"/>
<result property="employedPopulation" column="EMPLOYED_POPULATION"/>
<result property="longitude" column="LONGITUDE"/>
<result property="latitude" column="LATITUDE"/>
<collection property="images" ofType="com.elink.esua.epdc.dto.result.ScreenCompanyImagesResultDTO">
<result property="name" column="imageId"/>
<result property="url" column="IMG_URL"/>
</collection>
</resultMap>
<select id="selectCompanyInfoById" resultMap="screenCompanyInfo">
SELECT
c.ID,
c.COMPANY_NAME,
c.COMPANY_INTRODUCTION,
c.CONTACT_PERSON,
c.MOBILE,
c.COMPANY_ADDRESS,
c.UNIFORM_SOCIAL_CREDIT_CODE,
c.REGISTERED_CAPITAL,
c.EMPLOYED_POPULATION,
c.LONGITUDE,
c.LATITUDE,
i.IMG_URL,
i.ID as imageId
FROM
epdc_screen_company c
LEFT JOIN epdc_custom_img i ON i.REFERENCE_ID = c.ID AND i.DEL_FLAG = '0'
WHERE
c.DEL_FLAG = '0'
AND c.ID = #{id}
</select>
<resultMap id="screenCompanyInfoList" type="com.elink.esua.epdc.dto.result.EpdcScreenCompanyListResultDTO">
<result property="id" column="ID"/>
<result property="companyName" column="COMPANY_NAME"/>
<result property="companyIntroduction" column="COMPANY_INTRODUCTION"/>
<result property="contactPerson" column="CONTACT_PERSON"/>
<result property="mobile" column="MOBILE"/>
<result property="companyAddress" column="COMPANY_ADDRESS"/>
<result property="longitude" column="LONGITUDE"/>
<result property="latitude" column="LATITUDE"/>
<collection property="images" ofType="java.lang.String">
<result property="imgUrl" column="IMG_URL"/>
</collection>
</resultMap>
<select id="selectListOfCompanyListForScreen" resultMap="screenCompanyInfoList">
SELECT
c.ID,
c.COMPANY_NAME,
c.COMPANY_INTRODUCTION,
c.CONTACT_PERSON,
c.MOBILE,
c.COMPANY_ADDRESS,
c.LONGITUDE,
c.LATITUDE,
i.IMG_URL
FROM
epdc_screen_company c
LEFT JOIN epdc_custom_img i ON i.REFERENCE_ID = c.ID AND i.DEL_FLAG = '0'
WHERE
c.DEL_FLAG = '0'
<if test="companyName != null and companyName != ''">
and c.COMPANY_NAME like concat('%', #{companyName}, '%')
</if>
ORDER BY c.CREATED_TIME DESC
LIMIT #{pageIndex},#{pageSize}
</select>
</mapper>

6
esua-epdc/epdc-module/epdc-custom/epdc-custom-server/src/main/resources/mapper/reportissue/CustomImgDao.xml

@ -19,5 +19,9 @@
delete from epdc_custom_img where REFERENCE_ID = #{id}
</delete>
<update id="modifyImagesByReferenceIdAndImgType">
update epdc_custom_img set del_flag = '1' where REFERENCE_ID = #{referenceId} and IMG_TYPE = #{imgType}
</update>
</mapper>
</mapper>

16
esua-epdc/epdc-module/epdc-events/epdc-events-server/pom.xml

@ -159,10 +159,10 @@
<server.port>9066</server.port>
<spring.redis.index>2</spring.redis.index>
<spring.redis.host>114.215.125.123</spring.redis.host>
<spring.redis.port>9603</spring.redis.port>
<spring.redis.password>epdc!redis@master1405</spring.redis.password>
<spring.redis.index>11</spring.redis.index>
<spring.redis.host>r-m5eh5czgb1nucti6azpd.redis.rds.aliyuncs.com</spring.redis.host>
<spring.redis.port>10001</spring.redis.port>
<spring.redis.password>elink!888</spring.redis.password>
<spring.datasource.druid.url>
<![CDATA[jdbc:mysql://rm-m5eguiv2827bdye798o.mysql.rds.aliyuncs.com:10001/js_esua_epdc_events?allowMultiQueries=true&useUnicode=true&characterEncoding=UTF-8&useSSL=false&serverTimezone=Asia/Shanghai]]>
@ -209,10 +209,10 @@
<server.port>11004</server.port>
<spring.redis.index>2</spring.redis.index>
<spring.redis.host>114.215.125.123</spring.redis.host>
<spring.redis.port>9603</spring.redis.port>
<spring.redis.password>epdc!redis@master1405</spring.redis.password>
<spring.redis.index>11</spring.redis.index>
<spring.redis.host>r-m5eh5czgb1nucti6azpd.redis.rds.aliyuncs.com</spring.redis.host>
<spring.redis.port>10001</spring.redis.port>
<spring.redis.password>elink!888</spring.redis.password>
<spring.datasource.druid.url>
<![CDATA[jdbc:mysql://rm-m5eguiv2827bdye798o.mysql.rds.aliyuncs.com:10001/js_esua_epdc_events?allowMultiQueries=true&useUnicode=true&characterEncoding=UTF-8&useSSL=false&serverTimezone=Asia/Shanghai]]>

16
esua-epdc/epdc-module/epdc-group/epdc-group-server/pom.xml

@ -128,10 +128,10 @@
<server.port>9063</server.port>
<spring.redis.index>2</spring.redis.index>
<spring.redis.host>114.215.125.123</spring.redis.host>
<spring.redis.port>9603</spring.redis.port>
<spring.redis.password>epdc!redis@master1405</spring.redis.password>
<spring.redis.index>11</spring.redis.index>
<spring.redis.host>r-m5eh5czgb1nucti6azpd.redis.rds.aliyuncs.com</spring.redis.host>
<spring.redis.port>10001</spring.redis.port>
<spring.redis.password>elink!888</spring.redis.password>
<spring.datasource.druid.url>
<![CDATA[jdbc:mysql://rm-m5eguiv2827bdye798o.mysql.rds.aliyuncs.com:10001/js_esua_epdc_group?allowMultiQueries=true&useUnicode=true&characterEncoding=UTF-8&useSSL=false&serverTimezone=Asia/Shanghai]]>
@ -158,10 +158,10 @@
<server.port>11005</server.port>
<spring.redis.index>2</spring.redis.index>
<spring.redis.host>114.215.125.123</spring.redis.host>
<spring.redis.port>9603</spring.redis.port>
<spring.redis.password>epdc!redis@master1405</spring.redis.password>
<spring.redis.index>11</spring.redis.index>
<spring.redis.host>r-m5eh5czgb1nucti6azpd.redis.rds.aliyuncs.com</spring.redis.host>
<spring.redis.port>10001</spring.redis.port>
<spring.redis.password>elink!888</spring.redis.password>
<spring.datasource.druid.url>
<![CDATA[jdbc:mysql://rm-m5eguiv2827bdye79.mysql.rds.aliyuncs.com:10001/js_esua_epdc_group?allowMultiQueries=true&useUnicode=true&characterEncoding=UTF-8&useSSL=false&serverTimezone=Asia/Shanghai]]>

6
esua-epdc/epdc-module/epdc-heart/epdc-heart-client/src/main/java/com/elink/esua/epdc/activity/ActInfoDTO.java

@ -22,6 +22,7 @@ import lombok.Data;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;
/**
* 活动信息表
@ -249,4 +250,9 @@ public class ActInfoDTO implements Serializable {
* 置顶人
*/
private String topUserName;
/**
* 活动详细时间段
*/
private List<ActPeriodDTO> periods;
}

86
esua-epdc/epdc-module/epdc-heart/epdc-heart-client/src/main/java/com/elink/esua/epdc/activity/ActPeriodDTO.java

@ -0,0 +1,86 @@
/**
* Copyright 2018 人人开源 https://www.renren.io
* <p>
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* <p>
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* <p>
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.elink.esua.epdc.activity;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;
/**
* 活动详细时间段表
*
* @author qu qu@elink-cn.com
* @since v1.0.0 2021-09-02
*/
@Data
public class ActPeriodDTO implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 主键
*/
private String id;
/**
* 活动ID
*/
private String actId;
/**
* 活动开始时间
*/
private Date actPeriodStartTime;
/**
* 活动结束时间
*/
private Date actPeriodEndTime;
/**
* 乐观锁
*/
private Integer revision;
/**
* 删除标识 0未删除 1删除
*/
private String delFlag;
/**
* 创建人
*/
private String createdBy;
/**
* 创建时间
*/
private Date createdTime;
/**
* 更新人
*/
private String updatedBy;
/**
* 更新时间
*/
private Date updatedTime;
}

81
esua-epdc/epdc-module/epdc-heart/epdc-heart-client/src/main/java/com/elink/esua/epdc/activity/ActPeriodUserDTO.java

@ -0,0 +1,81 @@
/**
* Copyright 2018 人人开源 https://www.renren.io
* <p>
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* <p>
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* <p>
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.elink.esua.epdc.activity;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;
/**
* 活动详细时间段用户关系表
*
* @author qu qu@elink-cn.com
* @since v1.0.0 2021-09-02
*/
@Data
public class ActPeriodUserDTO implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 主键
*/
private String id;
/**
* 活动详细时间段表ID
*/
private String actPeriodId;
/**
* 活动用户关系表ID
*/
private String actUserRelationId;
/**
* 乐观锁
*/
private Integer revision;
/**
* 删除标识 0未删除 1删除
*/
private String delFlag;
/**
* 创建人
*/
private String createdBy;
/**
* 创建时间
*/
private Date createdTime;
/**
* 更新人
*/
private String updatedBy;
/**
* 更新时间
*/
private Date updatedTime;
}

8
esua-epdc/epdc-module/epdc-heart/epdc-heart-client/src/main/java/com/elink/esua/epdc/activity/ActUserRelationDTO.java

@ -21,6 +21,7 @@ import lombok.Data;
import java.io.Serializable;
import java.util.Date;
import java.util.List;
/**
@ -134,4 +135,9 @@ public class ActUserRelationDTO implements Serializable {
*/
private Date updatedTime;
}
/**
* 活动详细时间段
*/
private List<ActPeriodDTO> periods;
}

7
esua-epdc/epdc-module/epdc-heart/epdc-heart-client/src/main/java/com/elink/esua/epdc/activity/form/ActInfoAppFormDTO.java

@ -65,4 +65,9 @@ public class ActInfoAppFormDTO implements Serializable {
*/
private String actId;
}
/**
* 活动主办方
*/
private String sponsor;
}

29
esua-epdc/epdc-module/epdc-heart/epdc-heart-client/src/main/java/com/elink/esua/epdc/activity/form/EpdcActSignupFormDTO.java

@ -0,0 +1,29 @@
package com.elink.esua.epdc.activity.form;
import lombok.Data;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;
/**
* 活动报名
*/
@Data
public class EpdcActSignupFormDTO implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 活动ID
*/
@NotBlank(message = "活动ID不能为空")
private String actId;
/**
* 参与活动时间段
*/
@NotNull(message = "参与活动时间段不能为空")
private List<String> actPeriodId;
}

5
esua-epdc/epdc-module/epdc-heart/epdc-heart-client/src/main/java/com/elink/esua/epdc/activity/result/ActInfoDetailResultDTO.java

@ -125,4 +125,9 @@ public class ActInfoDetailResultDTO implements Serializable {
* 活动新闻稿
*/
private String actNewsContent;
/**
* 活动主办方
*/
private String sponsor;
}

7
esua-epdc/epdc-module/epdc-heart/epdc-heart-client/src/main/java/com/elink/esua/epdc/activity/result/ActUserRelationResultDTO.java

@ -17,10 +17,12 @@
package com.elink.esua.epdc.activity.result;
import com.elink.esua.epdc.activity.ActPeriodDTO;
import lombok.Data;
import java.io.Serializable;
import java.util.Date;
import java.util.List;
/**
@ -125,4 +127,9 @@ public class ActUserRelationResultDTO implements Serializable {
* 报名时间 "2020-10-15 10:56:20"
*/
private String signupTimeString;
/**
* 活动详细时间段
*/
private List<ActPeriodDTO> periods;
}

16
esua-epdc/epdc-module/epdc-heart/epdc-heart-server/pom.xml

@ -156,10 +156,10 @@
<server.port>9060</server.port>
<spring.redis.index>2</spring.redis.index>
<spring.redis.host>114.215.125.123</spring.redis.host>
<spring.redis.port>9603</spring.redis.port>
<spring.redis.password>epdc!redis@master1405</spring.redis.password>
<spring.redis.index>11</spring.redis.index>
<spring.redis.host>r-m5eh5czgb1nucti6azpd.redis.rds.aliyuncs.com</spring.redis.host>
<spring.redis.port>10001</spring.redis.port>
<spring.redis.password>elink!888</spring.redis.password>
<spring.datasource.druid.url>
@ -188,10 +188,10 @@
<server.port>11012</server.port>
<spring.redis.index>2</spring.redis.index>
<spring.redis.host>114.215.125.123</spring.redis.host>
<spring.redis.port>9603</spring.redis.port>
<spring.redis.password>epdc!redis@master1405</spring.redis.password>
<spring.redis.index>11</spring.redis.index>
<spring.redis.host>r-m5eh5czgb1nucti6azpd.redis.rds.aliyuncs.com</spring.redis.host>
<spring.redis.port>10001</spring.redis.port>
<spring.redis.password>elink!888</spring.redis.password>
<spring.datasource.druid.url>
<![CDATA[jdbc:mysql://rm-m5eguiv2827bdye798o.mysql.rds.aliyuncs.com:10001/js_esua_epdc_mutuality?allowMultiQueries=true&useUnicode=true&characterEncoding=UTF-8&useSSL=false&serverTimezone=Asia/Shanghai]]>

5
esua-epdc/epdc-module/epdc-heart/epdc-heart-server/src/main/java/com/elink/esua/epdc/modules/activity/controller/ActInfoController.java

@ -53,7 +53,7 @@ import java.util.Map;
@RestController
@RequestMapping("actinfo")
public class ActInfoController {
@Autowired
private ActInfoService actInfoService;
@ -64,7 +64,6 @@ public class ActInfoController {
if(SecurityUser.getDeptId() != null){
params.put("deptId", SecurityUser.getDeptId());
}
System.out.println(params);
PageData<ActInfoResultDTO> page = actInfoService.getActInfoPageFromPC(params);
return new Result<PageData<ActInfoResultDTO>>().ok(page);
}
@ -137,4 +136,4 @@ public class ActInfoController {
ValidatorUtils.validateEntity(formDto);
return actInfoService.modifyActTopFlag(formDto);
}
}
}

84
esua-epdc/epdc-module/epdc-heart/epdc-heart-server/src/main/java/com/elink/esua/epdc/modules/activity/controller/ActPeriodController.java

@ -0,0 +1,84 @@
/**
* Copyright 2018 人人开源 https://www.renren.io
* <p>
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* <p>
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* <p>
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.elink.esua.epdc.modules.activity.controller;
import com.elink.esua.epdc.activity.ActPeriodDTO;
import com.elink.esua.epdc.commons.tools.page.PageData;
import com.elink.esua.epdc.commons.tools.utils.Result;
import com.elink.esua.epdc.commons.tools.validator.AssertUtils;
import com.elink.esua.epdc.commons.tools.validator.ValidatorUtils;
import com.elink.esua.epdc.commons.tools.validator.group.AddGroup;
import com.elink.esua.epdc.commons.tools.validator.group.UpdateGroup;
import com.elink.esua.epdc.commons.tools.validator.group.DefaultGroup;
import com.elink.esua.epdc.modules.activity.service.ActPeriodService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import java.util.Map;
/**
* 活动详细时间段表
*
* @author qu qu@elink-cn.com
* @since v1.0.0 2021-09-02
*/
@RestController
@RequestMapping("actperiod")
public class ActPeriodController {
@Autowired
private ActPeriodService actPeriodService;
@GetMapping("page")
public Result<PageData<ActPeriodDTO>> page(@RequestParam Map<String, Object> params){
PageData<ActPeriodDTO> page = actPeriodService.page(params);
return new Result<PageData<ActPeriodDTO>>().ok(page);
}
@GetMapping("{id}")
public Result<ActPeriodDTO> get(@PathVariable("id") String id){
ActPeriodDTO data = actPeriodService.get(id);
return new Result<ActPeriodDTO>().ok(data);
}
@PostMapping
public Result save(@RequestBody ActPeriodDTO dto){
//效验数据
ValidatorUtils.validateEntity(dto, AddGroup.class, DefaultGroup.class);
actPeriodService.save(dto);
return new Result();
}
@PutMapping
public Result update(@RequestBody ActPeriodDTO dto){
//效验数据
ValidatorUtils.validateEntity(dto, UpdateGroup.class, DefaultGroup.class);
actPeriodService.update(dto);
return new Result();
}
@DeleteMapping
public Result delete(@RequestBody String[] ids){
//效验数据
AssertUtils.isArrayEmpty(ids, "id");
actPeriodService.delete(ids);
return new Result();
}
}

87
esua-epdc/epdc-module/epdc-heart/epdc-heart-server/src/main/java/com/elink/esua/epdc/modules/activity/controller/ActPeriodUserController.java

@ -0,0 +1,87 @@
/**
* Copyright 2018 人人开源 https://www.renren.io
* <p>
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* <p>
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* <p>
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.elink.esua.epdc.modules.activity.controller;
import com.elink.esua.epdc.activity.ActPeriodUserDTO;
import com.elink.esua.epdc.commons.tools.page.PageData;
import com.elink.esua.epdc.commons.tools.utils.ExcelUtils;
import com.elink.esua.epdc.commons.tools.utils.Result;
import com.elink.esua.epdc.commons.tools.validator.AssertUtils;
import com.elink.esua.epdc.commons.tools.validator.ValidatorUtils;
import com.elink.esua.epdc.commons.tools.validator.group.AddGroup;
import com.elink.esua.epdc.commons.tools.validator.group.UpdateGroup;
import com.elink.esua.epdc.commons.tools.validator.group.DefaultGroup;
import com.elink.esua.epdc.modules.activity.service.ActPeriodUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletResponse;
import java.util.List;
import java.util.Map;
/**
* 活动详细时间段用户关系表
*
* @author qu qu@elink-cn.com
* @since v1.0.0 2021-09-02
*/
@RestController
@RequestMapping("actperioduser")
public class ActPeriodUserController {
@Autowired
private ActPeriodUserService actPeriodUserService;
@GetMapping("page")
public Result<PageData<ActPeriodUserDTO>> page(@RequestParam Map<String, Object> params){
PageData<ActPeriodUserDTO> page = actPeriodUserService.page(params);
return new Result<PageData<ActPeriodUserDTO>>().ok(page);
}
@GetMapping("{id}")
public Result<ActPeriodUserDTO> get(@PathVariable("id") String id){
ActPeriodUserDTO data = actPeriodUserService.get(id);
return new Result<ActPeriodUserDTO>().ok(data);
}
@PostMapping
public Result save(@RequestBody ActPeriodUserDTO dto){
//效验数据
ValidatorUtils.validateEntity(dto, AddGroup.class, DefaultGroup.class);
actPeriodUserService.save(dto);
return new Result();
}
@PutMapping
public Result update(@RequestBody ActPeriodUserDTO dto){
//效验数据
ValidatorUtils.validateEntity(dto, UpdateGroup.class, DefaultGroup.class);
actPeriodUserService.update(dto);
return new Result();
}
@DeleteMapping
public Result delete(@RequestBody String[] ids){
//效验数据
AssertUtils.isArrayEmpty(ids, "id");
actPeriodUserService.delete(ids);
return new Result();
}
}

21
esua-epdc/epdc-module/epdc-heart/epdc-heart-server/src/main/java/com/elink/esua/epdc/modules/activity/controller/AppActUserRelationController.java

@ -17,6 +17,7 @@
package com.elink.esua.epdc.modules.activity.controller;
import com.elink.esua.epdc.activity.ActPeriodDTO;
import com.elink.esua.epdc.activity.ActUserRelationDTO;
import com.elink.esua.epdc.activity.AppActUserCancelsignupDTO;
import com.elink.esua.epdc.activity.AppClockListDTO;
@ -27,6 +28,8 @@ import com.elink.esua.epdc.modules.activity.service.ActUserRelationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import java.util.List;
/**
* 用户活动关系表
*
@ -67,7 +70,7 @@ public class AppActUserRelationController {
* @return
*/
@GetMapping("selectListActUserRelation/{actId}")
public Result<AppClockListDTO> selectListActUserRelation(@PathVariable("actId")String actId){
public Result<AppClockListDTO> selectListActUserRelation(@PathVariable("actId") String actId){
return actUserRelationService.selectListActUserRelation(actId);
}
@ -87,8 +90,22 @@ public class AppActUserRelationController {
* @return
*/
@GetMapping("AutoAuditActUser/{actId}")
public Result AutoAuditActUser(@PathVariable("actId")String actId){
public Result AutoAuditActUser(@PathVariable("actId") String actId){
return actUserRelationService.updateAuditDefaultStatus(actId);
}
/**
* 获取活动可参与时间段
*
* @param actId
* @return com.elink.esua.epdc.commons.tools.utils.Result<java.util.List<com.elink.esua.epdc.activity.ActPeriodDTO>>
* @author lc
* @since 2021/9/3 15:54
*/
@GetMapping("getActPeriods/{actId}")
public Result<List<ActPeriodDTO>> getActPeriods(@PathVariable("actId") String actId) {
List<ActPeriodDTO> data = actUserRelationService.listOfActPeriods(actId);
return new Result<List<ActPeriodDTO>>().ok(data);
}
}

67
esua-epdc/epdc-module/epdc-heart/epdc-heart-server/src/main/java/com/elink/esua/epdc/modules/activity/dao/ActPeriodDao.java

@ -0,0 +1,67 @@
/**
* Copyright 2018 人人开源 https://www.renren.io
* <p>
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* <p>
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* <p>
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.elink.esua.epdc.modules.activity.dao;
import com.elink.esua.epdc.activity.ActPeriodDTO;
import com.elink.esua.epdc.commons.mybatis.dao.BaseDao;
import com.elink.esua.epdc.modules.activity.entity.ActPeriodEntity;
import org.apache.ibatis.annotations.Mapper;
import java.util.List;
/**
* 活动详细时间段表
*
* @author qu qu@elink-cn.com
* @since v1.0.0 2021-09-02
*/
@Mapper
public interface ActPeriodDao extends BaseDao<ActPeriodEntity> {
/**
* 查询活动已报名的时间段
*
* @param actId
* @return java.util.List<com.elink.esua.epdc.activity.ActPeriodDTO>
* @author lc
* @since 2021/9/2 16:02
*/
List<ActPeriodDTO> selectPeriodsAlreadySignIn(String actId);
/**
* 删除活动时间段
*
* @param actId
* @return void
* @author lc
* @since 2021/9/2 15:30
*/
void modifyDelFlagByActId(String actId);
/**
* 获取活动时间段
*
* @param actId
* @return java.util.List<com.elink.esua.epdc.activity.ActPeriodDTO>
* @author lc
* @since 2021/9/2 16:29
*/
List<ActPeriodDTO> selectListOfActPeriodsByActId(String actId);
List<ActPeriodDTO> selectActTimeByActId(String actId);
}

56
esua-epdc/epdc-module/epdc-heart/epdc-heart-server/src/main/java/com/elink/esua/epdc/modules/activity/dao/ActPeriodUserDao.java

@ -0,0 +1,56 @@
/**
* Copyright 2018 人人开源 https://www.renren.io
* <p>
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* <p>
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* <p>
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.elink.esua.epdc.modules.activity.dao;
import com.elink.esua.epdc.activity.ActPeriodDTO;
import com.elink.esua.epdc.commons.mybatis.dao.BaseDao;
import com.elink.esua.epdc.modules.activity.entity.ActPeriodUserEntity;
import org.apache.ibatis.annotations.Mapper;
import java.util.List;
/**
* 活动详细时间段用户关系表
*
* @author qu qu@elink-cn.com
* @since v1.0.0 2021-09-02
*/
@Mapper
public interface ActPeriodUserDao extends BaseDao<ActPeriodUserEntity> {
/**
* 获取用户报名时间段
*
* @param actUserRelationId
* @return java.util.List<com.elink.esua.epdc.activity.ActPeriodDTO>
* @author lc
* @since 2021/9/2 20:06
*/
List<ActPeriodDTO> selectListOfSignInActPeriodsByActUserRelationId(String actUserRelationId);
/**
* 删除参与活动时间段记录
*
* @param actUserRelationId
* @return void
* @author lc
* @since 2021/9/3 15:47
*/
void modifyActPeriodUserDelFlagByActUserRelationId(String actUserRelationId);
}

56
esua-epdc/epdc-module/epdc-heart/epdc-heart-server/src/main/java/com/elink/esua/epdc/modules/activity/entity/ActPeriodEntity.java

@ -0,0 +1,56 @@
/**
* Copyright 2018 人人开源 https://www.renren.io
* <p>
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* <p>
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* <p>
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.elink.esua.epdc.modules.activity.entity;
import com.baomidou.mybatisplus.annotation.TableName;
import com.elink.esua.epdc.commons.mybatis.entity.BaseEpdcEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.util.Date;
/**
* 活动详细时间段表
*
* @author qu qu@elink-cn.com
* @since v1.0.0 2021-09-02
*/
@Data
@EqualsAndHashCode(callSuper=false)
@TableName("epdc_act_period")
public class ActPeriodEntity extends BaseEpdcEntity {
private static final long serialVersionUID = 1L;
/**
* 活动ID
*/
private String actId;
/**
* 活动开始时间
*/
private Date actPeriodStartTime;
/**
* 活动结束时间
*/
private Date actPeriodEndTime;
}

51
esua-epdc/epdc-module/epdc-heart/epdc-heart-server/src/main/java/com/elink/esua/epdc/modules/activity/entity/ActPeriodUserEntity.java

@ -0,0 +1,51 @@
/**
* Copyright 2018 人人开源 https://www.renren.io
* <p>
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* <p>
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* <p>
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.elink.esua.epdc.modules.activity.entity;
import com.baomidou.mybatisplus.annotation.TableName;
import com.elink.esua.epdc.commons.mybatis.entity.BaseEpdcEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.util.Date;
/**
* 活动详细时间段用户关系表
*
* @author qu qu@elink-cn.com
* @since v1.0.0 2021-09-02
*/
@Data
@EqualsAndHashCode(callSuper=false)
@TableName("epdc_act_period_user")
public class ActPeriodUserEntity extends BaseEpdcEntity {
private static final long serialVersionUID = 1L;
/**
* 活动详细时间段表ID
*/
private String actPeriodId;
/**
* 活动用户关系表ID
*/
private String actUserRelationId;
}

115
esua-epdc/epdc-module/epdc-heart/epdc-heart-server/src/main/java/com/elink/esua/epdc/modules/activity/service/ActPeriodService.java

@ -0,0 +1,115 @@
/**
* Copyright 2018 人人开源 https://www.renren.io
* <p>
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* <p>
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* <p>
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.elink.esua.epdc.modules.activity.service;
import com.elink.esua.epdc.activity.ActPeriodDTO;
import com.elink.esua.epdc.commons.mybatis.service.BaseService;
import com.elink.esua.epdc.commons.tools.page.PageData;
import com.elink.esua.epdc.modules.activity.entity.ActPeriodEntity;
import java.util.List;
import java.util.Map;
/**
* 活动详细时间段表
*
* @author qu qu@elink-cn.com
* @since v1.0.0 2021-09-02
*/
public interface ActPeriodService extends BaseService<ActPeriodEntity> {
/**
* 默认分页
*
* @param params
* @return PageData<ActPeriodDTO>
* @author generator
* @date 2021-09-02
*/
PageData<ActPeriodDTO> page(Map<String, Object> params);
/**
* 默认查询
*
* @param params
* @return java.util.List<ActPeriodDTO>
* @author generator
* @date 2021-09-02
*/
List<ActPeriodDTO> list(Map<String, Object> params);
/**
* 单条查询
*
* @param id
* @return ActPeriodDTO
* @author generator
* @date 2021-09-02
*/
ActPeriodDTO get(String id);
/**
* 默认保存
*
* @param dto
* @return void
* @author generator
* @date 2021-09-02
*/
void save(ActPeriodDTO dto);
/**
* 默认更新
*
* @param dto
* @return void
* @author generator
* @date 2021-09-02
*/
void update(ActPeriodDTO dto);
/**
* 批量删除
*
* @param ids
* @return void
* @author generator
* @date 2021-09-02
*/
void delete(String[] ids);
/**
* 删除活动时间段
*
* @param actId
* @return void
* @author lc
* @since 2021/9/2 15:28
*/
void removeActPeriodsByActId(String actId);
/**
* 获取活动时间段
*
* @param actId
* @return java.util.List<com.elink.esua.epdc.activity.ActPeriodDTO>
* @author lc
* @since 2021/9/2 16:13
*/
List<ActPeriodDTO> listOfActPeriodsByActId(String actId);
}

116
esua-epdc/epdc-module/epdc-heart/epdc-heart-server/src/main/java/com/elink/esua/epdc/modules/activity/service/ActPeriodUserService.java

@ -0,0 +1,116 @@
/**
* Copyright 2018 人人开源 https://www.renren.io
* <p>
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* <p>
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* <p>
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.elink.esua.epdc.modules.activity.service;
import com.elink.esua.epdc.activity.ActPeriodDTO;
import com.elink.esua.epdc.activity.ActPeriodUserDTO;
import com.elink.esua.epdc.commons.mybatis.service.BaseService;
import com.elink.esua.epdc.commons.tools.page.PageData;
import com.elink.esua.epdc.modules.activity.entity.ActPeriodUserEntity;
import java.util.List;
import java.util.Map;
/**
* 活动详细时间段用户关系表
*
* @author qu qu@elink-cn.com
* @since v1.0.0 2021-09-02
*/
public interface ActPeriodUserService extends BaseService<ActPeriodUserEntity> {
/**
* 默认分页
*
* @param params
* @return PageData<ActPeriodUserDTO>
* @author generator
* @date 2021-09-02
*/
PageData<ActPeriodUserDTO> page(Map<String, Object> params);
/**
* 默认查询
*
* @param params
* @return java.util.List<ActPeriodUserDTO>
* @author generator
* @date 2021-09-02
*/
List<ActPeriodUserDTO> list(Map<String, Object> params);
/**
* 单条查询
*
* @param id
* @return ActPeriodUserDTO
* @author generator
* @date 2021-09-02
*/
ActPeriodUserDTO get(String id);
/**
* 默认保存
*
* @param dto
* @return void
* @author generator
* @date 2021-09-02
*/
void save(ActPeriodUserDTO dto);
/**
* 默认更新
*
* @param dto
* @return void
* @author generator
* @date 2021-09-02
*/
void update(ActPeriodUserDTO dto);
/**
* 批量删除
*
* @param ids
* @return void
* @author generator
* @date 2021-09-02
*/
void delete(String[] ids);
/**
* 获取用户报名时间段
*
* @param actUserRelationId
* @return java.util.List<com.elink.esua.epdc.activity.ActPeriodDTO>
* @author lc
* @since 2021/9/2 20:05
*/
List<ActPeriodDTO> listOfSignInActPeriodsByActUserRelationId(String actUserRelationId);
/**
* 删除参与活动时间段记录
*
* @param actUserRelationId
* @return void
* @author lc
* @since 2021/9/3 15:45
*/
void removeActPeriodUserByActUserRelationId(String actUserRelationId);
}

11
esua-epdc/epdc-module/epdc-heart/epdc-heart-server/src/main/java/com/elink/esua/epdc/modules/activity/service/ActUserRelationService.java

@ -17,6 +17,7 @@
package com.elink.esua.epdc.modules.activity.service;
import com.elink.esua.epdc.activity.ActPeriodDTO;
import com.elink.esua.epdc.activity.ActUserRelationDTO;
import com.elink.esua.epdc.activity.AppActUserCancelsignupDTO;
import com.elink.esua.epdc.activity.AppClockListDTO;
@ -183,4 +184,14 @@ public interface ActUserRelationService extends BaseService<ActUserRelationEntit
* @return com.elink.esua.epdc.commons.tools.utils.Result<com.elink.esua.epdc.activity.AppClockListDTO>
**/
Result<AppClockListDTO> selectListV2ActUserRelation(EpdcClockListV2FormDTO formDTO);
/**
* 获取活动可参与时间段
*
* @param actId
* @return java.util.List<com.elink.esua.epdc.activity.ActPeriodDTO>
* @author lc
* @since 2021/9/3 16:00
*/
List<ActPeriodDTO> listOfActPeriods(String actId);
}

85
esua-epdc/epdc-module/epdc-heart/epdc-heart-server/src/main/java/com/elink/esua/epdc/modules/activity/service/impl/ActInfoServiceImpl.java

@ -17,12 +17,10 @@
package com.elink.esua.epdc.modules.activity.service.impl;
import cn.hutool.core.collection.CollectionUtil;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.elink.esua.epdc.activity.ActBannerDTO;
import com.elink.esua.epdc.activity.ActInfoDTO;
import com.elink.esua.epdc.activity.ActUserReadDTO;
import com.elink.esua.epdc.activity.ActUserRelationDTO;
import com.elink.esua.epdc.activity.*;
import com.elink.esua.epdc.activity.form.ActInfoAppFormDTO;
import com.elink.esua.epdc.activity.form.ActInfoFormDTO;
import com.elink.esua.epdc.activity.form.ActSignInListFormDTO;
@ -54,12 +52,10 @@ import com.elink.esua.epdc.dto.ScheduleJobDTO;
import com.elink.esua.epdc.dto.epdc.form.EpdcInformationFormDTO;
import com.elink.esua.epdc.dto.epdc.form.EpdcVolunteerKindnessTimeUpdateFormDTO;
import com.elink.esua.epdc.modules.activity.dao.*;
import com.elink.esua.epdc.modules.activity.entity.ActBannerEntity;
import com.elink.esua.epdc.modules.activity.entity.ActInfoEntity;
import com.elink.esua.epdc.modules.activity.entity.ActUserClockLogEntity;
import com.elink.esua.epdc.modules.activity.entity.ActUserRelationEntity;
import com.elink.esua.epdc.modules.activity.entity.*;
import com.elink.esua.epdc.modules.activity.service.ActBannerService;
import com.elink.esua.epdc.modules.activity.service.ActInfoService;
import com.elink.esua.epdc.modules.activity.service.ActPeriodService;
import com.elink.esua.epdc.modules.activity.service.ActUserReadService;
import com.elink.esua.epdc.modules.async.NewsTask;
import com.elink.esua.epdc.modules.feign.AdminFeignClient;
@ -109,6 +105,8 @@ public class ActInfoServiceImpl extends BaseServiceImpl<ActInfoDao, ActInfoEntit
@Autowired
private ActUserReadService actUserReadService;
@Autowired
private ActPeriodService actPeriodService;
@Override
public PageData<ActInfoDTO> page(Map<String, Object> params) {
@ -145,12 +143,18 @@ public class ActInfoServiceImpl extends BaseServiceImpl<ActInfoDao, ActInfoEntit
@Override
public ActInfoDTO get(String id) {
ActInfoEntity entity = baseDao.selectById(id);
return ConvertUtils.sourceToTarget(entity, ActInfoDTO.class);
// 获取活动时间段
List<ActPeriodDTO> periods = actPeriodService.listOfActPeriodsByActId(id);
ActInfoDTO dto = ConvertUtils.sourceToTarget(entity, ActInfoDTO.class);
dto.setPeriods(periods);
return dto;
}
@Override
@Transactional(rollbackFor = Exception.class)
public Result save(ActInfoDTO dto) {
// 校验活动详细时间段
this.checkActPeriods(dto);
//内容审核 - start
Boolean isConReview = null;
String userName = null;
@ -193,6 +197,8 @@ public class ActInfoServiceImpl extends BaseServiceImpl<ActInfoDao, ActInfoEntit
//内容审核 - end
ActInfoEntity entity = ConvertUtils.sourceToTarget(dto, ActInfoEntity.class);
if (insert(entity)) {
// 保存活动时间段
this.saveOrUpdateActPeriods(dto.getPeriods(), entity.getId());
// 创建定时任务(活动开始后将未审核的报名人员自动置为审核通过或不通过)
this.saveActToScheduleJob(entity.getId(), dto.getActStartTime());
@ -243,6 +249,8 @@ public class ActInfoServiceImpl extends BaseServiceImpl<ActInfoDao, ActInfoEntit
@Override
@Transactional(rollbackFor = Exception.class)
public Result updateWithContent(ActInfoDTO dto) {
// 校验活动详细时间段
this.checkActPeriods(dto);
//内容审核 - start
Boolean isConReview = null;
String userName = null;
@ -287,6 +295,8 @@ public class ActInfoServiceImpl extends BaseServiceImpl<ActInfoDao, ActInfoEntit
//如果更新了公益时长,则更新相关确认积分的志愿者的公益时长
updateKindnessTime(dto);
updateById(entity);
// 修改活动时间段
this.saveOrUpdateActPeriods(dto.getPeriods(), entity.getId());
//内容审核- 开始
try {
//接口异常,保存至待审核信息
@ -851,4 +861,61 @@ public class ActInfoServiceImpl extends BaseServiceImpl<ActInfoDao, ActInfoEntit
return new Result();
}
/**
* 校验活动详细时间段
*
* @param dto
* @return void
* @author lc
* @since 2021/9/2 14:51
*/
private void checkActPeriods(ActInfoDTO dto) {
if (CollectionUtil.isEmpty(dto.getPeriods())) {
ActPeriodDTO periodDto = new ActPeriodDTO();
periodDto.setActPeriodStartTime(dto.getActStartTime());
periodDto.setActPeriodEndTime(dto.getActEndTime());
dto.setPeriods(Collections.singletonList(periodDto));
}
Date periodEndTimeTmp = null;
for (int i=0; i<dto.getPeriods().size(); i++) {
Date periodStartTime = dto.getPeriods().get(i).getActPeriodStartTime();
Date periodEndTime = dto.getPeriods().get(i).getActPeriodEndTime();
if (periodStartTime.compareTo(dto.getActStartTime()) < 0
|| periodStartTime.compareTo(dto.getActEndTime()) > 0
|| periodEndTime.compareTo(dto.getActStartTime()) < 0
|| periodEndTime.compareTo(dto.getActEndTime()) > 0
|| periodEndTime.compareTo(periodStartTime) < 0) {
throw new RenException("活动时间段需在活动开始至活动结束时间内,且活动时间段结束时间需在活动时间段开始时间之后");
}
if (i>0) {
if (periodStartTime.compareTo(periodEndTimeTmp) < 0) {
throw new RenException("活动时间段之间有重复时间,请调整后重新提交");
}
}
periodEndTimeTmp = periodEndTime;
}
}
/**
* 保存/修改活动时间段
*
* @param periods
* @param actId
* @return void
* @author lc
* @since 2021/9/2 15:27
*/
private void saveOrUpdateActPeriods(List<ActPeriodDTO> periods, String actId) {
// 删除活动已有的时间段
actPeriodService.removeActPeriodsByActId(actId);
// 保存活动时间段
for (ActPeriodDTO dto:
periods) {
dto.setActId(actId);
dto.setId(null);
actPeriodService.save(dto);
}
}
}

121
esua-epdc/epdc-module/epdc-heart/epdc-heart-server/src/main/java/com/elink/esua/epdc/modules/activity/service/impl/ActPeriodServiceImpl.java

@ -0,0 +1,121 @@
/**
* Copyright 2018 人人开源 https://www.renren.io
* <p>
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* <p>
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* <p>
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.elink.esua.epdc.modules.activity.service.impl;
import cn.hutool.core.collection.CollectionUtil;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.elink.esua.epdc.activity.ActPeriodDTO;
import com.elink.esua.epdc.commons.mybatis.service.impl.BaseServiceImpl;
import com.elink.esua.epdc.commons.tools.exception.RenException;
import com.elink.esua.epdc.commons.tools.page.PageData;
import com.elink.esua.epdc.commons.tools.utils.ConvertUtils;
import com.elink.esua.epdc.commons.tools.constant.FieldConstant;
import com.elink.esua.epdc.modules.activity.dao.ActPeriodDao;
import com.elink.esua.epdc.modules.activity.entity.ActPeriodEntity;
import com.elink.esua.epdc.modules.activity.service.ActPeriodService;
import org.apache.commons.lang3.StringUtils;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import java.util.Arrays;
import java.util.List;
import java.util.Map;
/**
* 活动详细时间段表
*
* @author qu qu@elink-cn.com
* @since v1.0.0 2021-09-02
*/
@Service
public class ActPeriodServiceImpl extends BaseServiceImpl<ActPeriodDao, ActPeriodEntity> implements ActPeriodService {
@Override
public PageData<ActPeriodDTO> page(Map<String, Object> params) {
IPage<ActPeriodEntity> page = baseDao.selectPage(
getPage(params, FieldConstant.CREATED_TIME, false),
getWrapper(params)
);
return getPageData(page, ActPeriodDTO.class);
}
@Override
public List<ActPeriodDTO> list(Map<String, Object> params) {
List<ActPeriodEntity> entityList = baseDao.selectList(getWrapper(params));
return ConvertUtils.sourceToTarget(entityList, ActPeriodDTO.class);
}
private QueryWrapper<ActPeriodEntity> getWrapper(Map<String, Object> params){
String id = (String)params.get(FieldConstant.ID_HUMP);
QueryWrapper<ActPeriodEntity> wrapper = new QueryWrapper<>();
wrapper.eq(StringUtils.isNotBlank(id), FieldConstant.ID, id);
return wrapper;
}
@Override
public ActPeriodDTO get(String id) {
ActPeriodEntity entity = baseDao.selectById(id);
return ConvertUtils.sourceToTarget(entity, ActPeriodDTO.class);
}
@Override
@Transactional(rollbackFor = Exception.class)
public void save(ActPeriodDTO dto) {
ActPeriodEntity entity = ConvertUtils.sourceToTarget(dto, ActPeriodEntity.class);
insert(entity);
}
@Override
@Transactional(rollbackFor = Exception.class)
public void update(ActPeriodDTO dto) {
ActPeriodEntity entity = ConvertUtils.sourceToTarget(dto, ActPeriodEntity.class);
updateById(entity);
}
@Override
@Transactional(rollbackFor = Exception.class)
public void delete(String[] ids) {
// 逻辑删除(@TableLogic 注解)
baseDao.deleteBatchIds(Arrays.asList(ids));
}
@Override
@Transactional(rollbackFor = Exception.class)
public void removeActPeriodsByActId(String actId) {
// 校验活动是否已有人报名,有人报名后不能修改活动时间段
List<ActPeriodDTO> periods = baseDao.selectPeriodsAlreadySignIn(actId);
if (CollectionUtil.isNotEmpty(periods)) {
throw new RenException("活动时间段已有人报名,不能修改");
}
baseDao.modifyDelFlagByActId(actId);
}
@Override
public List<ActPeriodDTO> listOfActPeriodsByActId(String actId) {
List<ActPeriodDTO> data = baseDao.selectListOfActPeriodsByActId(actId);
if (CollectionUtil.isEmpty(data)) {
data = baseDao.selectActTimeByActId(actId);
}
return data;
}
}

111
esua-epdc/epdc-module/epdc-heart/epdc-heart-server/src/main/java/com/elink/esua/epdc/modules/activity/service/impl/ActPeriodUserServiceImpl.java

@ -0,0 +1,111 @@
/**
* Copyright 2018 人人开源 https://www.renren.io
* <p>
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* <p>
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* <p>
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.elink.esua.epdc.modules.activity.service.impl;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.elink.esua.epdc.activity.ActPeriodDTO;
import com.elink.esua.epdc.activity.ActPeriodUserDTO;
import com.elink.esua.epdc.commons.mybatis.service.impl.BaseServiceImpl;
import com.elink.esua.epdc.commons.tools.page.PageData;
import com.elink.esua.epdc.commons.tools.utils.ConvertUtils;
import com.elink.esua.epdc.commons.tools.constant.FieldConstant;
import com.elink.esua.epdc.modules.activity.dao.ActPeriodUserDao;
import com.elink.esua.epdc.modules.activity.entity.ActPeriodUserEntity;
import com.elink.esua.epdc.modules.activity.service.ActPeriodUserService;
import org.apache.commons.lang3.StringUtils;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import java.util.Arrays;
import java.util.List;
import java.util.Map;
/**
* 活动详细时间段用户关系表
*
* @author qu qu@elink-cn.com
* @since v1.0.0 2021-09-02
*/
@Service
public class ActPeriodUserServiceImpl extends BaseServiceImpl<ActPeriodUserDao, ActPeriodUserEntity> implements ActPeriodUserService {
@Override
public PageData<ActPeriodUserDTO> page(Map<String, Object> params) {
IPage<ActPeriodUserEntity> page = baseDao.selectPage(
getPage(params, FieldConstant.CREATED_TIME, false),
getWrapper(params)
);
return getPageData(page, ActPeriodUserDTO.class);
}
@Override
public List<ActPeriodUserDTO> list(Map<String, Object> params) {
List<ActPeriodUserEntity> entityList = baseDao.selectList(getWrapper(params));
return ConvertUtils.sourceToTarget(entityList, ActPeriodUserDTO.class);
}
private QueryWrapper<ActPeriodUserEntity> getWrapper(Map<String, Object> params){
String id = (String)params.get(FieldConstant.ID_HUMP);
QueryWrapper<ActPeriodUserEntity> wrapper = new QueryWrapper<>();
wrapper.eq(StringUtils.isNotBlank(id), FieldConstant.ID, id);
return wrapper;
}
@Override
public ActPeriodUserDTO get(String id) {
ActPeriodUserEntity entity = baseDao.selectById(id);
return ConvertUtils.sourceToTarget(entity, ActPeriodUserDTO.class);
}
@Override
@Transactional(rollbackFor = Exception.class)
public void save(ActPeriodUserDTO dto) {
ActPeriodUserEntity entity = ConvertUtils.sourceToTarget(dto, ActPeriodUserEntity.class);
insert(entity);
}
@Override
@Transactional(rollbackFor = Exception.class)
public void update(ActPeriodUserDTO dto) {
ActPeriodUserEntity entity = ConvertUtils.sourceToTarget(dto, ActPeriodUserEntity.class);
updateById(entity);
}
@Override
@Transactional(rollbackFor = Exception.class)
public void delete(String[] ids) {
// 逻辑删除(@TableLogic 注解)
baseDao.deleteBatchIds(Arrays.asList(ids));
}
@Override
public List<ActPeriodDTO> listOfSignInActPeriodsByActUserRelationId(String actUserRelationId) {
return baseDao.selectListOfSignInActPeriodsByActUserRelationId(actUserRelationId);
}
@Override
@Transactional(rollbackFor = Exception.class)
public void removeActPeriodUserByActUserRelationId(String actUserRelationId) {
baseDao.modifyActPeriodUserDelFlagByActUserRelationId(actUserRelationId);
}
}

31
esua-epdc/epdc-module/epdc-heart/epdc-heart-server/src/main/java/com/elink/esua/epdc/modules/activity/service/impl/ActUserRelationServiceImpl.java

@ -55,9 +55,7 @@ import com.elink.esua.epdc.modules.activity.entity.ActInfoEntity;
import com.elink.esua.epdc.modules.activity.entity.ActUserLogEntity;
import com.elink.esua.epdc.modules.activity.entity.ActUserPointsLogEntity;
import com.elink.esua.epdc.modules.activity.entity.ActUserRelationEntity;
import com.elink.esua.epdc.modules.activity.service.ActInfoService;
import com.elink.esua.epdc.modules.activity.service.ActUserPointsLogService;
import com.elink.esua.epdc.modules.activity.service.ActUserRelationService;
import com.elink.esua.epdc.modules.activity.service.*;
import com.elink.esua.epdc.modules.async.NewsTask;
import com.elink.esua.epdc.modules.feign.AdminFeignClient;
import com.elink.esua.epdc.modules.feign.PointsFeignClient;
@ -101,6 +99,11 @@ public class ActUserRelationServiceImpl extends BaseServiceImpl<ActUserRelationD
@Autowired
private NewsTask newsTask;
@Autowired
private ActPeriodUserService actPeriodUserService;
@Autowired
public ActPeriodService actPeriodService;
@Override
public PageData<ActUserRelationDTO> page(Map<String, Object> params) {
IPage<ActUserRelationEntity> page = baseDao.selectPage(
@ -149,7 +152,10 @@ public class ActUserRelationServiceImpl extends BaseServiceImpl<ActUserRelationD
@Override
public ActUserRelationDTO get(String id) {
ActUserRelationEntity entity = baseDao.selectById(id);
return ConvertUtils.sourceToTarget(entity, ActUserRelationDTO.class);
List<ActPeriodDTO> periods = actPeriodUserService.listOfSignInActPeriodsByActUserRelationId(id);
ActUserRelationDTO dto = ConvertUtils.sourceToTarget(entity, ActUserRelationDTO.class);
dto.setPeriods(periods);
return dto;
}
@Override
@ -179,7 +185,6 @@ public class ActUserRelationServiceImpl extends BaseServiceImpl<ActUserRelationD
updateEntity.setFailureReason(dto.getFailureReason());
updateEntity.setAuditTime(new Date());
updateById(updateEntity);
// 未通过时 活动表报名数减一
if (ActStateConstant.ACT_USER_RELATION_STATUS_AUDITREJECT.equals(dto.getStatus())) {
actInfoService.minusSignUpNum(entity.getActId());
}
@ -264,6 +269,17 @@ public class ActUserRelationServiceImpl extends BaseServiceImpl<ActUserRelationD
} else {
insert(entity);
}
// 删除历史报名活动时间段
actPeriodUserService.removeActPeriodUserByActUserRelationId(entity.getId());
// 保存活动参与时间段
for (ActPeriodDTO period:
actUserRelationDTO.getPeriods()) {
ActPeriodUserDTO periodUser = new ActPeriodUserDTO();
periodUser.setActPeriodId(period.getId());
periodUser.setActUserRelationId(entity.getId());
actPeriodUserService.save(periodUser);
}
// 活动报名人数+1
actInfoService.addSignUpNum(actUserRelationDTO.getActId());
//存储活动日志表
@ -596,4 +612,9 @@ public class ActUserRelationServiceImpl extends BaseServiceImpl<ActUserRelationD
newsTask.insertUserInformation(informationFormDTO);
}
@Override
public List<ActPeriodDTO> listOfActPeriods(String actId) {
return actPeriodService.listOfActPeriodsByActId(actId);
}
}

4
esua-epdc/epdc-module/epdc-heart/epdc-heart-server/src/main/resources/mapper/activity/ActInfoDao.xml

@ -191,6 +191,9 @@
<if test='actId != null and actId != "" '>
AND actInfo.ID = #{actId}
</if>
<if test='sponsor != null and sponsor != "" '>
AND actInfo.SPONSOR like concat('%', #{sponsor}, '%')
</if>
<if test='actType != null and actType != "" and actType == "1"'>
<![CDATA[ AND DATE_FORMAT(actInfo.SIGNUP_END_TIME,'%Y-%m-%d %H:%i:%s') <= ]]> #{timestamp}
</if>
@ -503,6 +506,7 @@
eai.PUNISHMENT_POINTS as punishmentPoints,
eai.REQUIREMENT as requirement,
eai.ACT_CONTENT as actContent,
eai.SPONSOR as sponsor,
ACT_NEWS_CONTENT as actNewsContent
from epdc_act_info eai
where eai.DEL_FLAG='0'

41
esua-epdc/epdc-module/epdc-heart/epdc-heart-server/src/main/resources/mapper/activity/ActPeriodDao.xml

@ -0,0 +1,41 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.elink.esua.epdc.modules.activity.dao.ActPeriodDao">
<select id="selectPeriodsAlreadySignIn" resultType="com.elink.esua.epdc.activity.ActPeriodDTO">
SELECT
p.ID
FROM
epdc_act_period p
LEFT JOIN epdc_act_period_user pu ON pu.ACT_PERIOD_ID = p.ID
WHERE
p.DEL_FLAG = '0'
AND pu.DEL_FLAG = '0'
AND ACT_ID = #{actId}
</select>
<update id="modifyDelFlagByActId">
update epdc_act_period set del_flag = '1' where act_id = #{actId}
</update>
<select id="selectListOfActPeriodsByActId" resultType="com.elink.esua.epdc.activity.ActPeriodDTO">
SELECT
ID,
ACT_ID,
ACT_PERIOD_START_TIME,
ACT_PERIOD_END_TIME
FROM
epdc_act_period
WHERE
DEL_FLAG = '0'
AND ACT_ID = #{actId}
ORDER BY
ACT_PERIOD_START_TIME
</select>
<select id="selectActTimeByActId" resultType="com.elink.esua.epdc.activity.ActPeriodDTO">
SELECT ACT_START_TIME AS actPeriodStartTime, ACT_END_TIME AS actPeriodEndTime FROM epdc_act_info WHERE ID = #{actId}
</select>
</mapper>

40
esua-epdc/epdc-module/epdc-heart/epdc-heart-server/src/main/resources/mapper/activity/ActPeriodUserDao.xml

@ -0,0 +1,40 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.elink.esua.epdc.modules.activity.dao.ActPeriodUserDao">
<select id="selectListOfSignInActPeriodsByActUserRelationId" resultType="com.elink.esua.epdc.activity.ActPeriodDTO">
SELECT
CASE
WHEN
p.ACT_PERIOD_START_TIME IS NULL THEN
t.ACT_START_TIME ELSE p.ACT_PERIOD_START_TIME
END AS actPeriodStartTime,
CASE
WHEN p.ACT_PERIOD_END_TIME IS NULL THEN
t.ACT_END_TIME ELSE p.ACT_PERIOD_END_TIME
END AS actPeriodEndTime
FROM
(
SELECT
ur.ID,
ai.ACT_START_TIME,
ai.ACT_END_TIME
FROM
epdc_act_user_relation ur
LEFT JOIN epdc_act_info ai ON ai.ID = ur.ACT_ID
WHERE
ur.ID = #{actUserRelationId}
) t
LEFT JOIN epdc_act_period_user pu ON pu.ACT_USER_RELATION_ID = t.ID
AND pu.DEL_FLAG = '0'
LEFT JOIN epdc_act_period p ON p.ID = pu.ACT_PERIOD_ID
AND p.DEL_FLAG = '0'
ORDER BY actPeriodStartTime
</select>
<update id="modifyActPeriodUserDelFlagByActUserRelationId">
update epdc_act_period_user set del_flag = '1' where ACT_USER_RELATION_ID = #{actUserRelationId}
</update>
</mapper>

17
esua-epdc/epdc-module/epdc-heart/epdc-heart-server/src/main/resources/mapper/activity/ActUserRelationDao.xml

@ -42,6 +42,10 @@
<result property="auditTime" column="AUDIT_TIME"/>
<result property="signupTime" column="SIGNUP_TIME"/>
<result property="actStatus" column="ACT_STATUS"/>
<collection property="periods" ofType="com.elink.esua.epdc.activity.ActPeriodDTO">
<result property="actPeriodStartTime" column="actPeriodStartTime"/>
<result property="actPeriodEndTime" column="actPeriodEndTime"/>
</collection>
</resultMap>
<select id="isSignUp" resultType="int" parameterType="String">
@ -85,10 +89,21 @@
relation.SIGNUP_TIME,
eai.ACT_STATUS,
date_format(relation.SIGNUP_TIME,'%Y-%m-%d %H:%i:%S') signupTimeString,
date_format(relation.AUDIT_TIME,'%Y-%m-%d %H:%i:%S') auditTimeString
date_format(relation.AUDIT_TIME,'%Y-%m-%d %H:%i:%S') auditTimeString,
case when t.ACT_PERIOD_START_TIME is null then eai.ACT_START_TIME else t.ACT_PERIOD_START_TIME end as actPeriodStartTime,
case when t.ACT_PERIOD_END_TIME is null then eai.ACT_END_TIME else t.ACT_PERIOD_END_TIME end as actPeriodEndTime
FROM
epdc_act_user_relation relation
left join epdc_act_info eai on eai.ID = relation.ACT_ID
left join (SELECT
pu.ACT_USER_RELATION_ID,
p.ACT_PERIOD_START_TIME,
p.ACT_PERIOD_END_TIME
FROM
epdc_act_period_user pu
LEFT JOIN epdc_act_period p ON p.ID = pu.ACT_PERIOD_ID AND p.DEL_FLAG = '0'
WHERE
pu.DEL_FLAG = '0') t on t.ACT_USER_RELATION_ID = relation.id
WHERE
relation.DEL_FLAG = '0' and eai.DEL_FLAG='0'
<if test="startTime != null and startTime != '' and endTime != null and endTime != ''">

33
esua-epdc/epdc-module/epdc-job/epdc-job-client/src/main/java/com/elink/esua/epdc/dto/ScreenGovernanceParamDTO.java

@ -0,0 +1,33 @@
package com.elink.esua.epdc.dto;
import lombok.Data;
import java.io.Serializable;
/**
* 大屏数据采集接口共 (17)
*
* @author zhy
* @date 2021/6/29 14:41
*/
@Data
public class ScreenGovernanceParamDTO implements Serializable {
private static final long serialVersionUID = -6661828243095315569L;
/**
* 01治理能力排行数据(按日统计)数据
*/
private String governrankdatadaily;
/**
* 02网格治理指数
*/
private String gridgoverndaily;
/**
* 03组织治理指数
*/
private String agencygoverndaily;
}

16
esua-epdc/epdc-module/epdc-job/epdc-job-server/pom.xml

@ -146,10 +146,10 @@
<server.port>9061</server.port>
<spring.redis.index>2</spring.redis.index>
<spring.redis.host>114.215.125.123</spring.redis.host>
<spring.redis.port>9603</spring.redis.port>
<spring.redis.password>epdc!redis@master1405</spring.redis.password>
<spring.redis.index>11</spring.redis.index>
<spring.redis.host>r-m5eh5czgb1nucti6azpd.redis.rds.aliyuncs.com</spring.redis.host>
<spring.redis.port>10001</spring.redis.port>
<spring.redis.password>elink!888</spring.redis.password>
<spring.datasource.druid.url>
<![CDATA[jdbc:mysql://rm-m5eguiv2827bdye798o.mysql.rds.aliyuncs.com:10001/js_esua_epdc_job?allowMultiQueries=true&useUnicode=true&characterEncoding=UTF-8&useSSL=false&serverTimezone=Asia/Shanghai]]>
@ -171,10 +171,10 @@
<server.port>11013</server.port>
<spring.redis.index>2</spring.redis.index>
<spring.redis.host>114.215.125.123</spring.redis.host>
<spring.redis.port>9603</spring.redis.port>
<spring.redis.password>epdc!redis@master1405</spring.redis.password>
<spring.redis.index>11</spring.redis.index>
<spring.redis.host>r-m5eh5czgb1nucti6azpd.redis.rds.aliyuncs.com</spring.redis.host>
<spring.redis.port>10001</spring.redis.port>
<spring.redis.password>elink!888</spring.redis.password>
<spring.datasource.druid.url>
<![CDATA[jdbc:mysql://rm-m5eguiv2827bdye798o.mysql.rds.aliyuncs.com:10001/js_esua_epdc_job?allowMultiQueries=true&useUnicode=true&characterEncoding=UTF-8&useSSL=false&serverTimezone=Asia/Shanghai]]>

34
esua-epdc/epdc-module/epdc-job/epdc-job-server/src/main/java/com/elink/esua/epdc/feign/AnalysisFeignClient.java

@ -488,4 +488,38 @@ public interface AnalysisFeignClient {
@PostMapping("analysis/girdManager/gridManagerUploadEvent")
Result selectGridManagerUploadEvent(ScreenJobFormDTO formDto);
// 治理能力
/**
* 01治理能力排行数据(按日统计)数据
*
* @param formDto 定时入参
* @return com.elink.esua.epdc.commons.tools.utils.Result
* @author zhy
* @date 2021/6/28 10:57
*/
@PostMapping("analysis/data/stats/governance/governrankdatadaily")
Result governrankdatadaily(ScreenJobFormDTO formDto);
/**
* 02网格治理指数
*
* @param formDto 定时入参
* @return com.elink.esua.epdc.commons.tools.utils.Result
* @author zhy
* @date 2021/6/28 10:57
*/
@PostMapping("analysis/data/stats/governance/gridgoverndaily")
Result gridgoverndaily(ScreenJobFormDTO formDto);
/**
* 03组织治理指数
*
* @param formDto 定时入参
* @return com.elink.esua.epdc.commons.tools.utils.Result
* @author zhy
* @date 2021/6/28 10:57
*/
@PostMapping("analysis/data/stats/governance/agencygoverndaily")
Result agencygoverndaily(ScreenJobFormDTO formDto);
}

15
esua-epdc/epdc-module/epdc-job/epdc-job-server/src/main/java/com/elink/esua/epdc/feign/fallback/AnalysisFeignClientFallback.java

@ -249,4 +249,19 @@ public class AnalysisFeignClientFallback implements AnalysisFeignClient {
public Result getCategoryOrgDaily(String date) {
return ModuleUtils.feignConError(ServiceConstant.EPDC_ANALYSIS_SERVER,"getCategoryOrgDaily", date);
}
@Override
public Result governrankdatadaily(ScreenJobFormDTO formDto) {
return ModuleUtils.feignConError(ServiceConstant.EPDC_ANALYSIS_SERVER, "governrankdatadaily",formDto);
}
@Override
public Result gridgoverndaily(ScreenJobFormDTO formDto) {
return ModuleUtils.feignConError(ServiceConstant.EPDC_ANALYSIS_SERVER, "gridgoverndaily",formDto);
}
@Override
public Result agencygoverndaily(ScreenJobFormDTO formDto) {
return ModuleUtils.feignConError(ServiceConstant.EPDC_ANALYSIS_SERVER, "agencygoverndaily",formDto);
}
}

21
esua-epdc/epdc-module/epdc-job/epdc-job-server/src/main/java/com/elink/esua/epdc/task/screen/ScreenGovernancePushTask.java

@ -0,0 +1,21 @@
package com.elink.esua.epdc.task.screen;
/**
* 治理能力数据推送
*
* @author zhy
* @date 2021/6/28 10:42
*/
public interface ScreenGovernancePushTask {
/**
* 大屏数据推送
*
* @param param 入参
* 参数格式{'gridPartyMemberData':'2020-08','gridPartyAbility':'2020-08','orgPartyAbility':'2020-08','gridServiceAbility':'2020-08','orgServiceAbility':'2020-08','gridGovernAbility':'2020-08','orgGovernAbility':'2020-08','deptGovernAbility':'2020-08','all':'2020-08'}
* @return void
* @author Liuchuang
* @since 2020/9/9 15:21
*/
void run(String param);
}

97
esua-epdc/epdc-module/epdc-job/epdc-job-server/src/main/java/com/elink/esua/epdc/task/screen/ScreenGovernancePushTaskImpl.java

@ -0,0 +1,97 @@
package com.elink.esua.epdc.task.screen;
import com.alibaba.fastjson.JSONObject;
import com.elink.esua.epdc.dto.ScreenGovernanceParamDTO;
import com.elink.esua.epdc.dto.screen.form.ScreenJobFormDTO;
import com.elink.esua.epdc.feign.AnalysisFeignClient;
import org.apache.commons.lang3.StringUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
/**
* 治理能力数据推送
*
* @author zhy
* @date 2021/6/28 10:42
*/
@Component("screenGovernancePushTask")
public class ScreenGovernancePushTaskImpl implements ScreenGovernancePushTask {
private final Logger logger = LoggerFactory.getLogger(getClass());
@Autowired
private AnalysisFeignClient analysisFeignClient;
@Override
public void run(String param) {
// 参数处理
ScreenGovernanceParamDTO paramDto = new ScreenGovernanceParamDTO();
if (StringUtils.isNotEmpty(param)) {
paramDto = JSONObject.parseObject(param, ScreenGovernanceParamDTO.class);
}
// 01、治理能力排行数据(按日统计)数据
governrankdatadaily(paramDto.getGovernrankdatadaily());
// 02、网格治理指数(天)
gridgoverndaily(paramDto.getGridgoverndaily());
// 03、组织治理指数(天)
agencygoverndaily(paramDto.getAgencygoverndaily());
}
/**
* 01治理能力排行数据(按日统计)数据
*
* @param yearMonth 统计月份格式yyyyMMdd
* @return void
* @author zhy
* @date 2021/6/28 10:47
*/
public void governrankdatadaily(String yearMonth) {
ScreenJobFormDTO formDto = new ScreenJobFormDTO();
formDto.setYearMonth(yearMonth);
// 方法名
String methodName = Thread.currentThread().getStackTrace()[2].getMethodName();
logger.info("<" + methodName + "|治理能力排行数据(按日统计)数据>定时任务开始执行" + yearMonth);
analysisFeignClient.governrankdatadaily(formDto);
logger.info("<" + methodName + "|治理能力排行数据(按日统计)数据>定时任务执行结束");
}
/**
* 02网格治理指数
*
* @param yearMonth
* @return void
* @author zhy
* @date 2021/6/28 10:47
*/
public void gridgoverndaily(String yearMonth) {
ScreenJobFormDTO formDto = new ScreenJobFormDTO();
formDto.setYearMonth(yearMonth);
// 方法名
String methodName = Thread.currentThread().getStackTrace()[2].getMethodName();
logger.info("<" + methodName + "|网格治理指数>定时任务开始执行");
analysisFeignClient.gridgoverndaily(formDto);
logger.info("<" + methodName + "|网格治理指数>定时任务执行结束");
}
/**
* 03组织治理指数
*
* @param yearMonth
* @return void
* @author zhy
* @date 2021/6/28 10:47
*/
public void agencygoverndaily(String yearMonth) {
ScreenJobFormDTO formDto = new ScreenJobFormDTO();
formDto.setYearMonth(yearMonth);
// 方法名
String methodName = Thread.currentThread().getStackTrace()[2].getMethodName();
logger.info("<" + methodName + "|组织治理指数>定时任务开始执行");
analysisFeignClient.agencygoverndaily(formDto);
logger.info("<" + methodName + "|组织治理指数>定时任务执行结束");
}
}

16
esua-epdc/epdc-module/epdc-kpi/epdc-kpi-server/pom.xml

@ -117,10 +117,10 @@
<server.port>9987</server.port>
<spring.redis.index>2</spring.redis.index>
<spring.redis.host>114.215.125.123</spring.redis.host>
<spring.redis.port>9603</spring.redis.port>
<spring.redis.password>epdc!redis@master1405</spring.redis.password>
<spring.redis.index>11</spring.redis.index>
<spring.redis.host>r-m5eh5czgb1nucti6azpd.redis.rds.aliyuncs.com</spring.redis.host>
<spring.redis.port>10001</spring.redis.port>
<spring.redis.password>elink!888</spring.redis.password>
<spring.datasource.druid.url>
<![CDATA[jdbc:mysql://rm-m5eguiv2827bdye798o.mysql.rds.aliyuncs.com:10001/js_esua_epdc_kpi?allowMultiQueries=true&useUnicode=true&characterEncoding=UTF-8&useSSL=false&serverTimezone=Asia/Shanghai]]>
@ -140,10 +140,10 @@
<server.port>9987</server.port>
<spring.redis.index>2</spring.redis.index>
<spring.redis.host>114.215.125.123</spring.redis.host>
<spring.redis.port>9603</spring.redis.port>
<spring.redis.password>epdc!redis@master1405</spring.redis.password>
<spring.redis.index>11</spring.redis.index>
<spring.redis.host>r-m5eh5czgb1nucti6azpd.redis.rds.aliyuncs.com</spring.redis.host>
<spring.redis.port>10001</spring.redis.port>
<spring.redis.password>elink!888</spring.redis.password>
<spring.datasource.druid.url>
<![CDATA[jdbc:mysql://rm-m5eguiv2827bdye79.mysql.rds.aliyuncs.com:10001/js_esua_epdc_kpi?allowMultiQueries=true&useUnicode=true&characterEncoding=UTF-8&useSSL=false&serverTimezone=Asia/Shanghai]]>

16
esua-epdc/epdc-module/epdc-message/epdc-message-server/pom.xml

@ -146,10 +146,10 @@
<server.port>9062</server.port>
<spring.redis.index>2</spring.redis.index>
<spring.redis.host>114.215.125.123</spring.redis.host>
<spring.redis.port>9603</spring.redis.port>
<spring.redis.password>epdc!redis@master1405</spring.redis.password>
<spring.redis.index>11</spring.redis.index>
<spring.redis.host>r-m5eh5czgb1nucti6azpd.redis.rds.aliyuncs.com</spring.redis.host>
<spring.redis.port>10001</spring.redis.port>
<spring.redis.password>elink!888</spring.redis.password>
<spring.datasource.druid.url>
<![CDATA[jdbc:mysql://rm-m5eguiv2827bdye798o.mysql.rds.aliyuncs.com:10001/js_esua_epdc_admin?allowMultiQueries=true&useUnicode=true&characterEncoding=UTF-8&useSSL=false&serverTimezone=Asia/Shanghai]]>
@ -171,10 +171,10 @@
<server.port>11006</server.port>
<spring.redis.index>2</spring.redis.index>
<spring.redis.host>114.215.125.123</spring.redis.host>
<spring.redis.port>9603</spring.redis.port>
<spring.redis.password>epdc!redis@master1405</spring.redis.password>
<spring.redis.index>11</spring.redis.index>
<spring.redis.host>r-m5eh5czgb1nucti6azpd.redis.rds.aliyuncs.com</spring.redis.host>
<spring.redis.port>10001</spring.redis.port>
<spring.redis.password>elink!888</spring.redis.password>
<spring.datasource.druid.url>
<![CDATA[jdbc:mysql://rm-m5eguiv2827bdye798o.mysql.rds.aliyuncs.com:10001/js_esua_epdc_admin?allowMultiQueries=true&useUnicode=true&characterEncoding=UTF-8&useSSL=false&serverTimezone=Asia/Shanghai]]>

16
esua-epdc/epdc-module/epdc-news/epdc-news-server/pom.xml

@ -117,10 +117,10 @@
<server.port>9064</server.port>
<spring.redis.index>2</spring.redis.index>
<spring.redis.host>114.215.125.123</spring.redis.host>
<spring.redis.port>9603</spring.redis.port>
<spring.redis.password>epdc!redis@master1405</spring.redis.password>
<spring.redis.index>11</spring.redis.index>
<spring.redis.host>r-m5eh5czgb1nucti6azpd.redis.rds.aliyuncs.com</spring.redis.host>
<spring.redis.port>10001</spring.redis.port>
<spring.redis.password>elink!888</spring.redis.password>
<spring.datasource.druid.url>
<![CDATA[jdbc:mysql://rm-m5eguiv2827bdye798o.mysql.rds.aliyuncs.com:10001/js_esua_epdc_news?allowMultiQueries=true&useUnicode=true&characterEncoding=UTF-8&useSSL=false&serverTimezone=Asia/Shanghai]]>
@ -145,10 +145,10 @@
<server.port>11007</server.port>
<spring.redis.index>2</spring.redis.index>
<spring.redis.host>114.215.125.123</spring.redis.host>
<spring.redis.port>9603</spring.redis.port>
<spring.redis.password>epdc!redis@master1405</spring.redis.password>
<spring.redis.index>11</spring.redis.index>
<spring.redis.host>r-m5eh5czgb1nucti6azpd.redis.rds.aliyuncs.com</spring.redis.host>
<spring.redis.port>10001</spring.redis.port>
<spring.redis.password>elink!888</spring.redis.password>
<spring.datasource.druid.url>
<![CDATA[jdbc:mysql://rm-m5eguiv2827bdye798o.mysql.rds.aliyuncs.com:10001/js_esua_epdc_news?allowMultiQueries=true&useUnicode=true&characterEncoding=UTF-8&useSSL=false&serverTimezone=Asia/Shanghai]]>

16
esua-epdc/epdc-module/epdc-oss/epdc-oss-server/pom.xml

@ -159,10 +159,10 @@
<server.port>9065</server.port>
<spring.redis.index>2</spring.redis.index>
<spring.redis.host>114.215.125.123</spring.redis.host>
<spring.redis.port>9603</spring.redis.port>
<spring.redis.password>epdc!redis@master1405</spring.redis.password>
<spring.redis.index>11</spring.redis.index>
<spring.redis.host>r-m5eh5czgb1nucti6azpd.redis.rds.aliyuncs.com</spring.redis.host>
<spring.redis.port>10001</spring.redis.port>
<spring.redis.password>elink!888</spring.redis.password>
<spring.datasource.druid.url>
<![CDATA[jdbc:mysql://rm-m5eguiv2827bdye798o.mysql.rds.aliyuncs.com:10001/js_esua_epdc_admin?allowMultiQueries=true&useUnicode=true&characterEncoding=UTF-8&useSSL=false&serverTimezone=Asia/Shanghai]]>
@ -186,10 +186,10 @@
<server.port>11008</server.port>
<spring.redis.index>2</spring.redis.index>
<spring.redis.host>114.215.125.123</spring.redis.host>
<spring.redis.port>9603</spring.redis.port>
<spring.redis.password>epdc!redis@master1405</spring.redis.password>
<spring.redis.index>11</spring.redis.index>
<spring.redis.host>r-m5eh5czgb1nucti6azpd.redis.rds.aliyuncs.com</spring.redis.host>
<spring.redis.port>10001</spring.redis.port>
<spring.redis.password>elink!888</spring.redis.password>
<spring.datasource.druid.url>
<![CDATA[jdbc:mysql://rm-m5eguiv2827bdye798o.mysql.rds.aliyuncs.com:10001/js_esua_epdc_admin?allowMultiQueries=true&useUnicode=true&characterEncoding=UTF-8&useSSL=false&serverTimezone=Asia/Shanghai]]>

16
esua-epdc/epdc-module/epdc-party-group/epdc-party-group-server/pom.xml

@ -139,10 +139,10 @@
<server.port>9077</server.port>
<spring.redis.index>2</spring.redis.index>
<spring.redis.host>114.215.125.123</spring.redis.host>
<spring.redis.port>9603</spring.redis.port>
<spring.redis.password>epdc!redis@master1405</spring.redis.password>
<spring.redis.index>11</spring.redis.index>
<spring.redis.host>r-m5eh5czgb1nucti6azpd.redis.rds.aliyuncs.com</spring.redis.host>
<spring.redis.port>10001</spring.redis.port>
<spring.redis.password>elink!888</spring.redis.password>
<spring.datasource.druid.url>
<![CDATA[jdbc:mysql://rm-m5eguiv2827bdye798o.mysql.rds.aliyuncs.com:10001/js_esua_epdc_party_group?allowMultiQueries=true&useUnicode=true&characterEncoding=UTF-8&useSSL=false&serverTimezone=Asia/Shanghai]]>
@ -170,10 +170,10 @@
<server.port>11014</server.port>
<spring.redis.index>2</spring.redis.index>
<spring.redis.host>114.215.125.123</spring.redis.host>
<spring.redis.port>9603</spring.redis.port>
<spring.redis.password>epdc!redis@master1405</spring.redis.password>
<spring.redis.index>11</spring.redis.index>
<spring.redis.host>r-m5eh5czgb1nucti6azpd.redis.rds.aliyuncs.com</spring.redis.host>
<spring.redis.port>10001</spring.redis.port>
<spring.redis.password>elink!888</spring.redis.password>
<spring.datasource.druid.url>
<![CDATA[jdbc:mysql://rm-m5eguiv2827bdye798o.mysql.rds.aliyuncs.com:10001/js_esua_epdc_party_group?allowMultiQueries=true&useUnicode=true&characterEncoding=UTF-8&useSSL=false&serverTimezone=Asia/Shanghai]]>

16
esua-epdc/epdc-module/epdc-points/epdc-points-server/pom.xml

@ -138,10 +138,10 @@
<server.port>9070</server.port>
<spring.redis.index>2</spring.redis.index>
<spring.redis.host>114.215.125.123</spring.redis.host>
<spring.redis.port>9603</spring.redis.port>
<spring.redis.password>epdc!redis@master1405</spring.redis.password>
<spring.redis.index>11</spring.redis.index>
<spring.redis.host>r-m5eh5czgb1nucti6azpd.redis.rds.aliyuncs.com</spring.redis.host>
<spring.redis.port>10001</spring.redis.port>
<spring.redis.password>elink!888</spring.redis.password>
<spring.datasource.druid.url>
<![CDATA[jdbc:mysql://rm-m5eguiv2827bdye798o.mysql.rds.aliyuncs.com:10001/js_esua_epdc_points?allowMultiQueries=true&useUnicode=true&characterEncoding=UTF-8&useSSL=false&serverTimezone=Asia/Shanghai]]>
@ -170,10 +170,10 @@
<server.port>11011</server.port>
<spring.redis.index>2</spring.redis.index>
<spring.redis.host>114.215.125.123</spring.redis.host>
<spring.redis.port>9603</spring.redis.port>
<spring.redis.password>epdc!redis@master1405</spring.redis.password>
<spring.redis.index>11</spring.redis.index>
<spring.redis.host>r-m5eh5czgb1nucti6azpd.redis.rds.aliyuncs.com</spring.redis.host>
<spring.redis.port>10001</spring.redis.port>
<spring.redis.password>elink!888</spring.redis.password>
<spring.datasource.druid.url>
<![CDATA[jdbc:mysql://rm-m5eguiv2827bdye798o.mysql.rds.aliyuncs.com:10001/js_esua_epdc_points?allowMultiQueries=true&useUnicode=true&characterEncoding=UTF-8&useSSL=false&serverTimezone=Asia/Shanghai]]>

16
esua-epdc/epdc-module/epdc-user/epdc-user-server/pom.xml

@ -133,10 +133,10 @@
<server.port>9068</server.port>
<spring.redis.index>2</spring.redis.index>
<spring.redis.host>114.215.125.123</spring.redis.host>
<spring.redis.port>9603</spring.redis.port>
<spring.redis.password>epdc!redis@master1405</spring.redis.password>
<spring.redis.index>11</spring.redis.index>
<spring.redis.host>r-m5eh5czgb1nucti6azpd.redis.rds.aliyuncs.com</spring.redis.host>
<spring.redis.port>10001</spring.redis.port>
<spring.redis.password>elink!888</spring.redis.password>
<spring.datasource.druid.url>
<![CDATA[jdbc:mysql://rm-m5eguiv2827bdye798o.mysql.rds.aliyuncs.com:10001/js_esua_epdc_user?allowMultiQueries=true&useUnicode=true&characterEncoding=UTF-8&useSSL=false&serverTimezone=Asia/Shanghai]]>
@ -164,10 +164,10 @@
<server.port>11009</server.port>
<spring.redis.index>2</spring.redis.index>
<spring.redis.host>114.215.125.123</spring.redis.host>
<spring.redis.port>9603</spring.redis.port>
<spring.redis.password>epdc!redis@master1405</spring.redis.password>
<spring.redis.index>11</spring.redis.index>
<spring.redis.host>r-m5eh5czgb1nucti6azpd.redis.rds.aliyuncs.com</spring.redis.host>
<spring.redis.port>10001</spring.redis.port>
<spring.redis.password>elink!888</spring.redis.password>
<spring.datasource.druid.url>
<![CDATA[jdbc:mysql://rm-m5eguiv2827bdye798o.mysql.rds.aliyuncs.com:10001/js_esua_epdc_user?allowMultiQueries=true&useUnicode=true&characterEncoding=UTF-8&useSSL=false&serverTimezone=Asia/Shanghai]]>

16
esua-epdc/epdc-module/epdc-websocket/epdc-websocket-server/pom.xml

@ -140,10 +140,10 @@
<server.port>9988</server.port>
<spring.redis.index>2</spring.redis.index>
<spring.redis.host>114.215.125.123</spring.redis.host>
<spring.redis.port>9603</spring.redis.port>
<spring.redis.password>epdc!redis@master1405</spring.redis.password>
<spring.redis.index>11</spring.redis.index>
<spring.redis.host>r-m5eh5czgb1nucti6azpd.redis.rds.aliyuncs.com</spring.redis.host>
<spring.redis.port>10001</spring.redis.port>
<spring.redis.password>elink!888</spring.redis.password>
<spring.datasource.druid.url>
<![CDATA[jdbc:mysql://rm-m5eguiv2827bdye798o.mysql.rds.aliyuncs.com:10001/js_esua_epdc_api?allowMultiQueries=true&useUnicode=true&characterEncoding=UTF-8&useSSL=false&serverTimezone=Asia/Shanghai]]>
@ -165,10 +165,10 @@
<server.port>11010</server.port>
<spring.redis.index>2</spring.redis.index>
<spring.redis.host>114.215.125.123</spring.redis.host>
<spring.redis.port>9603</spring.redis.port>
<spring.redis.password>epdc!redis@master1405</spring.redis.password>
<spring.redis.index>11</spring.redis.index>
<spring.redis.host>r-m5eh5czgb1nucti6azpd.redis.rds.aliyuncs.com</spring.redis.host>
<spring.redis.port>10001</spring.redis.port>
<spring.redis.password>elink!888</spring.redis.password>
<spring.datasource.druid.url>
<![CDATA[jdbc:mysql://rm-m5eguiv2827bdye798o.mysql.rds.aliyuncs.com:10001/js_esua_epdc_api?allowMultiQueries=true&useUnicode=true&characterEncoding=UTF-8&useSSL=false&serverTimezone=Asia/Shanghai]]>

Loading…
Cancel
Save