Browse Source

Merge remote-tracking branch 'origin/feature/phaseOne'

hotfix/zhy
liuchuang 4 years ago
parent
commit
43fb6ee8dc
  1. 30
      epdc-cloud-analysis-pc/pom.xml
  2. 270
      epdc-cloud-analysis-pc/src/main/java/com/elink/esua/epdc/modules/screen/controller/EpdcScreenController.java
  3. 191
      epdc-cloud-analysis-pc/src/main/java/com/elink/esua/epdc/modules/screen/dao/EpdcScreenDao.java
  4. 190
      epdc-cloud-analysis-pc/src/main/java/com/elink/esua/epdc/modules/screen/service/EpdcScreenService.java
  5. 154
      epdc-cloud-analysis-pc/src/main/java/com/elink/esua/epdc/modules/screen/service/impl/EpdcScreenServiceImpl.java
  6. 383
      epdc-cloud-analysis-pc/src/main/resources/mapper/screen/EpdcScreenDao.xml
  7. 2
      epdc-cloud-client-yushan
  8. 2
      epdc-cloud-commons-yushan

30
epdc-cloud-analysis-pc/pom.xml

@ -128,21 +128,15 @@
<docker.tag>dev</docker.tag> <docker.tag>dev</docker.tag>
<!-- redis配置 --> <!-- redis配置 -->
<spring.redis.index>9</spring.redis.index> <spring.redis.index>8</spring.redis.index>
<spring.redis.host>114.215.125.123</spring.redis.host> <spring.redis.host>r-m5eh5czgb1nucti6azpd.redis.rds.aliyuncs.com</spring.redis.host>
<spring.redis.port>9603</spring.redis.port> <spring.redis.port>10001</spring.redis.port>
<spring.redis.password>epdc!redis@master1405</spring.redis.password> <spring.redis.password>elink!888</spring.redis.password>
<spring.datasource.druid.url>
<![CDATA[jdbc:mysql://rm-m5eguiv2827bdye798o.mysql.rds.aliyuncs.com:10001/yushan_esua_epdc_events?allowMultiQueries=true&useUnicode=true&characterEncoding=UTF-8&useSSL=false&serverTimezone=Asia/Shanghai]]>
</spring.datasource.druid.url>
<spring.datasource.druid.username>yushan_epdc_test</spring.datasource.druid.username>
<spring.datasource.druid.password>elink-epdc@yushan</spring.datasource.druid.password>
<nacos.register-enabled>false</nacos.register-enabled> <nacos.register-enabled>false</nacos.register-enabled>
<nacos.server-addr>47.104.224.45:8848</nacos.server-addr> <nacos.server-addr>115.29.142.202:8848</nacos.server-addr>
<nacos.ip></nacos.ip> <nacos.ip></nacos.ip>
<nacos.namespace>de000340-5fc4-45aa-bdbc-dd96852012ad</nacos.namespace> <nacos.namespace>8831513c-2f72-42e8-899f-eb6c2c5ae110</nacos.namespace>
<!--党群e家小程序配置--> <!--党群e家小程序配置-->
<wx.ma.appId>wx50ebeb95943868cd</wx.ma.appId> <wx.ma.appId>wx50ebeb95943868cd</wx.ma.appId>
@ -178,15 +172,15 @@
<docker.tag>test</docker.tag> <docker.tag>test</docker.tag>
<!-- redis配置 --> <!-- redis配置 -->
<spring.redis.index>9</spring.redis.index> <spring.redis.index>8</spring.redis.index>
<spring.redis.host>114.215.125.123</spring.redis.host> <spring.redis.host>r-m5eh5czgb1nucti6azpd.redis.rds.aliyuncs.com</spring.redis.host>
<spring.redis.port>9603</spring.redis.port> <spring.redis.port>10001</spring.redis.port>
<spring.redis.password>epdc!redis@master1405</spring.redis.password> <spring.redis.password>elink!888</spring.redis.password>
<!-- nacos --> <!-- nacos -->
<nacos.register-enabled>true</nacos.register-enabled> <nacos.register-enabled>true</nacos.register-enabled>
<nacos.server-addr>192.168.0.59:8848</nacos.server-addr> <nacos.server-addr>115.29.142.202:8848</nacos.server-addr>
<nacos.ip>192.168.0.59</nacos.ip> <nacos.ip>115.29.142.202</nacos.ip>
<nacos.namespace>8831513c-2f72-42e8-899f-eb6c2c5ae110</nacos.namespace> <nacos.namespace>8831513c-2f72-42e8-899f-eb6c2c5ae110</nacos.namespace>
<epmet.secret>44ebf984898c497280a149a57c1c7b34b324ba06451148a9a2304b2c0f0035c8</epmet.secret> <epmet.secret>44ebf984898c497280a149a57c1c7b34b324ba06451148a9a2304b2c0f0035c8</epmet.secret>

270
epdc-cloud-analysis-pc/src/main/java/com/elink/esua/epdc/modules/screen/controller/EpdcScreenController.java

@ -0,0 +1,270 @@
package com.elink.esua.epdc.modules.screen.controller;
import com.elink.esua.epdc.commons.tools.utils.Result;
import com.elink.esua.epdc.commons.tools.validator.ValidatorUtils;
import com.elink.esua.epdc.dto.analysis.pc.screen.form.*;
import com.elink.esua.epdc.dto.analysis.pc.screen.result.*;
import com.elink.esua.epdc.modules.screen.service.EpdcScreenService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import java.util.List;
/**
* 202108版大屏接口
*
* @Authorliuchuang
* @Date2021/8/10 14:53
*/
@RestController
@RequestMapping("screen")
public class EpdcScreenController {
@Autowired
private EpdcScreenService epdcScreenService;
/**
* 网格治理-项目列表接口事件总览最新列表群众关心的事列表
*
* @param formDto
* @return com.elink.esua.epdc.commons.tools.utils.Result<java.util.List<com.elink.esua.epdc.dto.analysis.pc.screen.result.EpdcScreenGridGovernanceItemResultDTO>>
* @author Liuchuang
* @since 2021/8/10 13:46
*/
@GetMapping("gridGovernance/itemList")
public Result<List<EpdcScreenGridGovernanceItemResultDTO>> gridGovernanceItemList(@RequestBody EpdcScreenGridGovernanceItemFormDTO formDto) {
ValidatorUtils.validateEntity(formDto);
return epdcScreenService.gridGovernanceItemList(formDto);
}
/**
* 网格治理-事件总览-项目类别统计
*
* @return com.elink.esua.epdc.commons.tools.utils.Result<java.util.List<com.elink.esua.epdc.dto.analysis.pc.screen.result.EpdcScreenGridGovernanceItemCategoryResultDTO>>
* @author Liuchuang
* @since 2021/8/11 9:46
*/
@GetMapping("gridGovernance/itemCategoryStatistics")
public Result<List<EpdcScreenGridGovernanceItemCategoryResultDTO>> itemCategoryStatistics() {
return epdcScreenService.itemCategoryStatistics();
}
/**
* 网格治理-事件总览-项目状态统计列表接口
*
* @return com.elink.esua.epdc.commons.tools.utils.Result<java.util.List<com.elink.esua.epdc.dto.analysis.pc.screen.result.EpdcScreenGridGovernanceItemStatusResultDTO>>
* @author Liuchuang
* @since 2021/8/11 9:47
*/
@GetMapping("gridGovernance/itemStatusStatistics")
public Result<List<EpdcScreenGridGovernanceItemStatusResultDTO>> itemStatusStatistics() {
return epdcScreenService.itemStatusStatistics();
}
/**
* 网格治理-难点堵点
*
* @param formDto
* @return com.elink.esua.epdc.commons.tools.utils.Result<java.util.List<com.elink.esua.epdc.dto.analysis.pc.screen.result.EpdcScreenGridGovernanceItemDifficultResultDTO>>
* @author Liuchuang
* @since 2021/8/11 9:49
*/
@GetMapping("gridGovernance/difficultItemList")
public Result<List<EpdcScreenGridGovernanceItemDifficultResultDTO>> difficultItemList(@RequestBody EpdcScreenGridGovernanceItemDifficultFormDTO formDto) {
ValidatorUtils.validateEntity(formDto);
return epdcScreenService.difficultItemList(formDto);
}
/**
* 网格治理-治理情况排行
*
* @param formDto
* @return com.elink.esua.epdc.commons.tools.utils.Result<java.util.List<com.elink.esua.epdc.dto.analysis.pc.screen.result.EpdcScreenGridGovernanceRankingResultDTO>>
* @author Liuchuang
* @since 2021/8/11 9:52
*/
@GetMapping("gridGovernance/governanceRanking")
public Result<List<EpdcScreenGridGovernanceRankingResultDTO>> governanceRanking(@RequestBody EpdcScreenGridGovernanceRankingFormDTO formDto) {
ValidatorUtils.validateEntity(formDto);
return epdcScreenService.governanceRanking(formDto);
}
/**
* 党建引领-内容列表接口
*
* @param formDto
* @return com.elink.esua.epdc.commons.tools.utils.Result<java.util.List<com.elink.esua.epdc.dto.analysis.pc.screen.result.EpdcScreenPartyBuildingNoticeListResultDTO>>
* @author Liuchuang
* @since 2021/8/11 14:31
*/
@GetMapping("partyBuilding/noticeList")
public Result<List<EpdcScreenPartyBuildingNoticeListResultDTO>> noticeList(@RequestBody EpdcScreenPartyBuildingNoticeListFormDTO formDto) {
ValidatorUtils.validateEntity(formDto);
return epdcScreenService.noticeList(formDto);
}
/**
* 党建引领-党组织活动排名接口
*
* @param formDto
* @return com.elink.esua.epdc.commons.tools.utils.Result<java.util.List<com.elink.esua.epdc.dto.analysis.pc.screen.result.EpdcScreenPartyBuildingPartyOrgActResultDTO>>
* @author Liuchuang
* @since 2021/8/11 16:52
*/
@GetMapping("partyBuilding/partyOrgActList")
public Result<List<EpdcScreenPartyBuildingPartyOrgActResultDTO>> partyOrgActList(@RequestBody EpdcScreenPartyBuildingPartyOrgActFormDTO formDto) {
ValidatorUtils.validateEntity(formDto);
return epdcScreenService.partyOrgActList(formDto);
}
/**
* 党建引领-党组织类型列表接口
*
* @return com.elink.esua.epdc.commons.tools.utils.Result<java.util.List<com.elink.esua.epdc.dto.analysis.pc.screen.result.EpdcScreenPartyBuildingPartyOrgTypeResultDTO>>
* @author Liuchuang
* @since 2021/8/11 14:34
*/
@GetMapping("partyBuilding/partyOrgTypeList")
public Result<List<EpdcScreenPartyBuildingPartyOrgTypeResultDTO>> partyOrgTypeList() {
return epdcScreenService.partyOrgTypeList();
}
/**
* 党建引领-党组织列表接口
*
* @return com.elink.esua.epdc.commons.tools.utils.Result<java.util.List<com.elink.esua.epdc.dto.analysis.pc.screen.result.EpdcScreenPartyBuildingPartyOrgResultDTO>>
* @author Liuchuang
* @since 2021/8/11 14:34
*/
@GetMapping("partyBuilding/partyOrgList")
public Result<List<EpdcScreenPartyBuildingPartyOrgResultDTO>> partyOrgList() {
return epdcScreenService.partyOrgList();
}
/**
* 党建引领-党员亮身份列表
*
* @param formDto
* @return com.elink.esua.epdc.commons.tools.utils.Result<java.util.List<com.elink.esua.epdc.dto.analysis.pc.screen.result.EpdcScreenPartyBuildingBrightIdentityResultDTO>>
* @author Liuchuang
* @since 2021/8/11 14:37
*/
@GetMapping("partyBuilding/brightIdentity")
public Result<List<EpdcScreenPartyBuildingBrightIdentityResultDTO>> brightIdentity(@RequestBody EpdcScreenPartyBuildingBrightIdentityFormDTO formDto) {
ValidatorUtils.validateEntity(formDto);
return epdcScreenService.brightIdentity(formDto);
}
/**
* 党建引领-党员画像
*
* @return com.elink.esua.epdc.commons.tools.utils.Result<java.util.List<com.elink.esua.epdc.dto.analysis.pc.screen.result.EpdcScreenPartyBuildingPartyMemberAgeResultDTO>>
* @author Liuchuang
* @since 2021/8/11 14:37
*/
@GetMapping("partyBuilding/partyMemberAge")
public Result<List<EpdcScreenPartyBuildingPartyMemberAgeResultDTO>> partyMemberAge() {
return epdcScreenService.partyMemberAge();
}
/**
*首页-组织信息接口
* @return com.elink.esua.epdc.commons.tools.utils.Result<java.util.List<com.elink.esua.epdc.dto.analysis.pc.screen.result.EpdcScreenFrontPageDeptInfoResultDTO>>
* @author zhangfenghe
* @since 2021/8/11 15:23
*/
@GetMapping("frontPage/deptInfoList")
public Result<List<EpdcScreenFrontPageDeptInfoResultDTO>> frontPageDeptInfoList(@RequestBody EpdcScreenFrontPageDeptInfoFormDTO formDto){
ValidatorUtils.validateEntity(formDto);
return epdcScreenService.frontPageDeptInfoList(formDto);
}
/**
*首页-人口类型统计接口
* @return com.elink.esua.epdc.commons.tools.utils.Result<java.util.List<com.elink.esua.epdc.dto.analysis.pc.screen.result.EpdcScreenFrontPagePersonInfoStatisticsResultDTO>>
* @author zhangfenghe
* @since 2021/8/11 20:01
*/
@GetMapping("frontPage/personInfoStatistics")
public Result<EpdcScreenFrontPagePersonInfoStatisticsResultDTO> frontPagePersonInfoStatisticsList(){
return epdcScreenService.frontPagePersonInfoStatisticsList();
}
/**
* 首页-房屋类型统计接口
* @return com.elink.esua.epdc.commons.tools.utils.Result<com.elink.esua.epdc.dto.analysis.pc.screen.result.EpdcScreenFrontPageHouseTypeStatisticsResultDTO>
* @author zhangfenghe
* @since 2021/8/11 20:02
*/
@GetMapping("frontPage/houseTypeStatistics")
public Result<EpdcScreenFrontPageHouseTypeStatisticsResultDTO> frontPageHouseTypeStatistics(){
return epdcScreenService.frontPageHouseTypeStatistics();
}
/**
* 疫情防控-社区接种情况统计社区接种情况总览地图数据
* @params [formDto]
* @return com.elink.esua.epdc.commons.tools.utils.Result<java.util.List<com.elink.esua.epdc.dto.analysis.pc.screen.result.EpdcScreenEpidemicCommunityVaccinationStatisticsResultDTO>>
* @author zhangfenghe
* @since 2021/8/12 10:10
*/
@GetMapping("epidemic/vaccinationStatistics")
public Result<EpdcScreenEpidemicVaccinationStatisticsResultDTO> epidemicVaccinationStatistics(){
return epdcScreenService.epidemicVaccinationStatistics();
}
/**
* 疫情防控-社区接种情况统计社区接种情况总览地图数据
* @params [formDto]
* @return com.elink.esua.epdc.commons.tools.utils.Result<java.util.List<com.elink.esua.epdc.dto.analysis.pc.screen.result.EpdcScreenEpidemicCommunityVaccinationStatisticsResultDTO>>
* @author zhangfenghe
* @since 2021/8/12 10:26
*/
@GetMapping("epidemic/communityVaccinationStatistics")
public Result<List<EpdcScreenEpidemicCommunityVaccinationStatisticsResultDTO>> epidemicCommunityVaccinationStatisticsList(@RequestBody EpdcScreenEpidemicCommunityVaccinationStatisticsFormDTO formDto){
ValidatorUtils.validateEntity(formDto);
return epdcScreenService.epidemicCommunityVaccinationStatisticsList(formDto);
}
/**
* 疫情防控-接种企业统计
* @params []
* @return com.elink.esua.epdc.commons.tools.utils.Result<java.util.List<com.elink.esua.epdc.dto.analysis.pc.screen.result.EpdcScreenEpidemicCompanyVaccinationStatisticsResultDTO>>
* @author zhangfenghe
* @since 2021/8/12 11:26
*/
@GetMapping("epidemic/companyVaccinationStatistics")
public Result<List<EpdcScreenEpidemicCompanyVaccinationStatisticsResultDTO>> epidemicCompanyVaccinationStatisticsList(){
return epdcScreenService.epidemicCompanyVaccinationStatisticsList();
}
/**
* 疫情防控-疫苗接种年龄分布
* @params [formDto]
* @return com.elink.esua.epdc.commons.tools.utils.Result<com.elink.esua.epdc.dto.analysis.pc.screen.result.EpdcScreenVaccinationAgeVaccinationStatisticsResultDTO>
* @author zhangfenghe
* @since 2021/8/12 12:35
*/
@GetMapping("vaccination/ageVaccinationStatistics")
public Result<EpdcScreenVaccinationAgeVaccinationStatisticsResultDTO> vaccinationAgeVaccinationStatistics(@RequestBody EpdcScreenVaccinationAgeVaccinationStatisticsFormDTO formDto){
ValidatorUtils.validateEntity(formDto);
return epdcScreenService.vaccinationAgeVaccinationStatistics(formDto);
}
/**
*疫情防控-疫苗接种人口类型统计
* @params [formDto]
* @return com.elink.esua.epdc.commons.tools.utils.Result<com.elink.esua.epdc.dto.analysis.pc.screen.result.EpdcScreenVaccinationPersonVaccinationStatisticsResultDTO>
* @author zhangfenghe
* @since 2021/8/12 15:29
*/
@GetMapping("vaccination/personVaccinationStatistics")
public Result<EpdcScreenVaccinationPersonVaccinationStatisticsResultDTO> vaccinationPersonVaccinationStatistics(@RequestBody EpdcScreenVaccinationPersonVaccinationStatisticsFormDTO formDto){
ValidatorUtils.validateEntity(formDto);
return epdcScreenService.vaccinationPersonVaccinationStatistics(formDto);
}
}

191
epdc-cloud-analysis-pc/src/main/java/com/elink/esua/epdc/modules/screen/dao/EpdcScreenDao.java

@ -0,0 +1,191 @@
package com.elink.esua.epdc.modules.screen.dao;
import com.elink.esua.epdc.commons.mybatis.dao.BaseDao;
import com.elink.esua.epdc.commons.tools.utils.Result;
import com.elink.esua.epdc.dto.analysis.pc.screen.form.*;
import com.elink.esua.epdc.dto.analysis.pc.screen.result.*;
import org.apache.ibatis.annotations.Mapper;
import java.util.List;
/**
* @Authorliuchuang
* @Date2021/8/10 15:04
*/
@Mapper
public interface EpdcScreenDao extends BaseDao<EpdcScreenGridGovernanceItemResultDTO> {
/**
* 网格治理-项目列表接口事件总览最新列表群众关心的事列表
*
* @param formDto
* @return java.util.List<com.elink.esua.epdc.dto.analysis.pc.screen.result.EpdcScreenGridGovernanceItemResultDTO>
* @author Liuchuang
* @since 2021/8/10 15:09
*/
List<EpdcScreenGridGovernanceItemResultDTO> gridGovernanceItemList(EpdcScreenGridGovernanceItemFormDTO formDto);
/**
* 网格治理-事件总览-项目类别统计
*
* @return com.elink.esua.epdc.commons.tools.utils.Result<java.util.List<com.elink.esua.epdc.dto.analysis.pc.screen.result.EpdcScreenGridGovernanceItemCategoryResultDTO>>
* @author Liuchuang
* @since 2021/8/11 9:46
*/
List<EpdcScreenGridGovernanceItemCategoryResultDTO> itemCategoryStatistics();
/**
* 网格治理-事件总览-项目状态统计列表接口
*
* @return com.elink.esua.epdc.commons.tools.utils.Result<java.util.List<com.elink.esua.epdc.dto.analysis.pc.screen.result.EpdcScreenGridGovernanceItemStatusResultDTO>>
* @author Liuchuang
* @since 2021/8/11 9:47
*/
List<EpdcScreenGridGovernanceItemStatusResultDTO> itemStatusStatistics();
/**
* 网格治理-难点堵点
*
* @param formDto
* @return com.elink.esua.epdc.commons.tools.utils.Result<java.util.List<com.elink.esua.epdc.dto.analysis.pc.screen.result.EpdcScreenGridGovernanceItemDifficultResultDTO>>
* @author Liuchuang
* @since 2021/8/11 9:49
*/
List<EpdcScreenGridGovernanceItemDifficultResultDTO> difficultItemList(EpdcScreenGridGovernanceItemDifficultFormDTO formDto);
/**
* 网格治理-治理情况排行
*
* @param formDto
* @return com.elink.esua.epdc.commons.tools.utils.Result<java.util.List<com.elink.esua.epdc.dto.analysis.pc.screen.result.EpdcScreenGridGovernanceRankingResultDTO>>
* @author Liuchuang
* @since 2021/8/11 9:52
*/
List<EpdcScreenGridGovernanceRankingResultDTO> governanceRanking(EpdcScreenGridGovernanceRankingFormDTO formDto);
/**
* 党建引领-内容列表接口
*
* @param formDto
* @return com.elink.esua.epdc.commons.tools.utils.Result<java.util.List<com.elink.esua.epdc.dto.analysis.pc.screen.result.EpdcScreenPartyBuildingNoticeListResultDTO>>
* @author Liuchuang
* @since 2021/8/11 14:31
*/
List<EpdcScreenPartyBuildingNoticeListResultDTO> noticeList(EpdcScreenPartyBuildingNoticeListFormDTO formDto);
/**
* 党建引领-党组织活动排名接口
*
* @param formDto
* @return java.util.List<com.elink.esua.epdc.dto.analysis.pc.screen.result.EpdcScreenPartyBuildingPartyOrgActResultDTO>
* @author Liuchuang
* @since 2021/8/11 16:57
*/
List<EpdcScreenPartyBuildingPartyOrgActResultDTO> partyOrgActList(EpdcScreenPartyBuildingPartyOrgActFormDTO formDto);
/**
* 党建引领-党组织类型列表接口
*
* @return com.elink.esua.epdc.commons.tools.utils.Result<java.util.List<com.elink.esua.epdc.dto.analysis.pc.screen.result.EpdcScreenPartyBuildingPartyOrgTypeResultDTO>>
* @author Liuchuang
* @since 2021/8/11 14:34
*/
List<EpdcScreenPartyBuildingPartyOrgTypeResultDTO> partyOrgTypeList();
/**
* 党建引领-党组织列表接口
*
* @return com.elink.esua.epdc.commons.tools.utils.Result<java.util.List<com.elink.esua.epdc.dto.analysis.pc.screen.result.EpdcScreenPartyBuildingPartyOrgResultDTO>>
* @author Liuchuang
* @since 2021/8/11 14:34
*/
List<EpdcScreenPartyBuildingPartyOrgResultDTO> partyOrgList();
/**
* 党建引领-党员亮身份列表
*
* @param formDto
* @return com.elink.esua.epdc.commons.tools.utils.Result<java.util.List<com.elink.esua.epdc.dto.analysis.pc.screen.result.EpdcScreenPartyBuildingBrightIdentityResultDTO>>
* @author Liuchuang
* @since 2021/8/11 14:37
*/
List<EpdcScreenPartyBuildingBrightIdentityResultDTO> brightIdentity(EpdcScreenPartyBuildingBrightIdentityFormDTO formDto);
/**
* 党建引领-党员画像
*
* @return com.elink.esua.epdc.commons.tools.utils.Result<java.util.List<com.elink.esua.epdc.dto.analysis.pc.screen.result.EpdcScreenPartyBuildingPartyMemberAgeResultDTO>>
* @author Liuchuang
* @since 2021/8/11 14:37
*/
List<EpdcScreenPartyBuildingPartyMemberAgeResultDTO> partyMemberAge();
/**
* 首页-组织信息接口
* @return java.util.List<com.elink.esua.epdc.dto.analysis.pc.screen.result.EpdcScreenFrontPageDeptInfoResultDTO>
* @author zhangfenghe
* @since 2021/8/11 15:42
*/
List<EpdcScreenFrontPageDeptInfoResultDTO> frontPageDeptInfoList(EpdcScreenFrontPageDeptInfoFormDTO formDto);
/**
* 首页-人口类型统计接口
* @return java.util.List<com.elink.esua.epdc.dto.analysis.pc.screen.result.EpdcScreenFrontPagePersonInfoStatisticsResultDTO>
* @author zhangfenghe
* @since 2021/8/11 17:46
*/
EpdcScreenFrontPagePersonInfoStatisticsResultDTO frontPagePersonInfoStatisticsList();
/**
* 首页-房屋类型统计接口
* @return com.elink.esua.epdc.dto.analysis.pc.screen.result.EpdcScreenFrontPageHouseTypeStatisticsResultDTO
* @author zhangfenghe
* @since 2021/8/11 20:07
*/
EpdcScreenFrontPageHouseTypeStatisticsResultDTO frontPageHouseTypeStatistics();
/**
* 疫情防控-疫苗接种情况统计
* @return com.elink.esua.epdc.dto.analysis.pc.screen.result.EpdcScreenEpidemicVaccinationStatisticsResultDTO
* @author zhangfenghe
* @since 2021/8/11 23:41
*/
EpdcScreenEpidemicVaccinationStatisticsResultDTO epidemicVaccinationStatistics();
/**
* 疫情防控-社区接种情况统计社区接种情况总览地图数据
* @params [formDTO]
* @return java.util.List<com.elink.esua.epdc.dto.analysis.pc.screen.result.EpdcScreenEpidemicCommunityVaccinationStatisticsResultDTO>
* @author zhangfenghe
* @since 2021/8/12 10:41
*/
List<EpdcScreenEpidemicCommunityVaccinationStatisticsResultDTO> epidemicCommunityVaccinationStatisticsList(EpdcScreenEpidemicCommunityVaccinationStatisticsFormDTO formDTO);
/**
* 疫情防控-接种企业统计
* @params []
* @return java.util.List<com.elink.esua.epdc.dto.analysis.pc.screen.result.EpdcScreenEpidemicCompanyVaccinationStatisticsResultDTO>
* @author zhangfenghe
* @since 2021/8/12 11:31
*/
List<EpdcScreenEpidemicCompanyVaccinationStatisticsResultDTO> epidemicCompanyVaccinationStatisticsList();
/**
*疫情防控-疫苗接种年龄分布
* @params [formDto]
* @return com.elink.esua.epdc.dto.analysis.pc.screen.result.EpdcScreenVaccinationAgeVaccinationStatisticsResultDTO
* @author zhangfenghe
* @since 2021/8/12 12:41
*/
EpdcScreenVaccinationAgeVaccinationStatisticsResultDTO vaccinationAgeVaccinationStatistics(EpdcScreenVaccinationAgeVaccinationStatisticsFormDTO formDto);
/**
* 疫情防控-疫苗接种人口类型统计
* @params [formDto]
* @return com.elink.esua.epdc.dto.analysis.pc.screen.result.EpdcScreenVaccinationPersonVaccinationStatisticsResultDTO
* @author zhangfenghe
* @since 2021/8/12 15:33
*/
EpdcScreenVaccinationPersonVaccinationStatisticsResultDTO vaccinationPersonVaccinationStatistics(EpdcScreenVaccinationPersonVaccinationStatisticsFormDTO formDto);
}

190
epdc-cloud-analysis-pc/src/main/java/com/elink/esua/epdc/modules/screen/service/EpdcScreenService.java

@ -0,0 +1,190 @@
package com.elink.esua.epdc.modules.screen.service;
import com.elink.esua.epdc.commons.tools.utils.Result;
import com.elink.esua.epdc.dto.analysis.pc.screen.form.*;
import com.elink.esua.epdc.dto.analysis.pc.screen.result.*;
import org.springframework.web.bind.annotation.GetMapping;
import java.util.List;
/**
* 202108版大屏接口
*
* @Authorliuchuang
* @Date2021/8/10 14:54
*/
public interface EpdcScreenService {
/**
* 网格治理-项目列表接口事件总览最新列表群众关心的事列表
*
* @param formDto
* @return com.elink.esua.epdc.commons.tools.utils.Result<java.util.List<com.elink.esua.epdc.dto.analysis.pc.screen.result.EpdcScreenGridGovernanceItemResultDTO>>
* @author Liuchuang
* @since 2021/8/10 13:49
*/
Result<List<EpdcScreenGridGovernanceItemResultDTO>> gridGovernanceItemList(EpdcScreenGridGovernanceItemFormDTO formDto);
/**
* 网格治理-事件总览-项目类别统计
*
* @return com.elink.esua.epdc.commons.tools.utils.Result<java.util.List<com.elink.esua.epdc.dto.analysis.pc.screen.result.EpdcScreenGridGovernanceItemCategoryResultDTO>>
* @author Liuchuang
* @since 2021/8/11 9:46
*/
Result<List<EpdcScreenGridGovernanceItemCategoryResultDTO>> itemCategoryStatistics();
/**
* 网格治理-事件总览-项目状态统计列表接口
*
* @return com.elink.esua.epdc.commons.tools.utils.Result<java.util.List<com.elink.esua.epdc.dto.analysis.pc.screen.result.EpdcScreenGridGovernanceItemStatusResultDTO>>
* @author Liuchuang
* @since 2021/8/11 9:47
*/
Result<List<EpdcScreenGridGovernanceItemStatusResultDTO>> itemStatusStatistics();
/**
* 网格治理-难点堵点
*
* @param formDto
* @return com.elink.esua.epdc.commons.tools.utils.Result<java.util.List<com.elink.esua.epdc.dto.analysis.pc.screen.result.EpdcScreenGridGovernanceItemDifficultResultDTO>>
* @author Liuchuang
* @since 2021/8/11 9:49
*/
Result<List<EpdcScreenGridGovernanceItemDifficultResultDTO>> difficultItemList(EpdcScreenGridGovernanceItemDifficultFormDTO formDto);
/**
* 网格治理-治理情况排行
*
* @param formDto
* @return com.elink.esua.epdc.commons.tools.utils.Result<java.util.List<com.elink.esua.epdc.dto.analysis.pc.screen.result.EpdcScreenGridGovernanceRankingResultDTO>>
* @author Liuchuang
* @since 2021/8/11 9:52
*/
Result<List<EpdcScreenGridGovernanceRankingResultDTO>> governanceRanking(EpdcScreenGridGovernanceRankingFormDTO formDto);
/**
* 党建引领-内容列表接口
*
* @param formDto
* @return com.elink.esua.epdc.commons.tools.utils.Result<java.util.List<com.elink.esua.epdc.dto.analysis.pc.screen.result.EpdcScreenPartyBuildingNoticeListResultDTO>>
* @author Liuchuang
* @since 2021/8/11 14:31
*/
Result<List<EpdcScreenPartyBuildingNoticeListResultDTO>> noticeList(EpdcScreenPartyBuildingNoticeListFormDTO formDto);
/**
* 党建引领-党组织活动排名接口
*
* @param formDto
* @return com.elink.esua.epdc.commons.tools.utils.Result<java.util.List<com.elink.esua.epdc.dto.analysis.pc.screen.result.EpdcScreenPartyBuildingPartyOrgActResultDTO>>
* @author Liuchuang
* @since 2021/8/11 16:52
*/
Result<List<EpdcScreenPartyBuildingPartyOrgActResultDTO>> partyOrgActList(EpdcScreenPartyBuildingPartyOrgActFormDTO formDto);
/**
* 党建引领-党组织类型列表接口
*
* @return com.elink.esua.epdc.commons.tools.utils.Result<java.util.List<com.elink.esua.epdc.dto.analysis.pc.screen.result.EpdcScreenPartyBuildingPartyOrgTypeResultDTO>>
* @author Liuchuang
* @since 2021/8/11 14:34
*/
Result<List<EpdcScreenPartyBuildingPartyOrgTypeResultDTO>> partyOrgTypeList();
/**
* 党建引领-党组织列表接口
*
* @return com.elink.esua.epdc.commons.tools.utils.Result<java.util.List<com.elink.esua.epdc.dto.analysis.pc.screen.result.EpdcScreenPartyBuildingPartyOrgResultDTO>>
* @author Liuchuang
* @since 2021/8/11 14:34
*/
Result<List<EpdcScreenPartyBuildingPartyOrgResultDTO>> partyOrgList();
/**
* 党建引领-党员亮身份列表
*
* @param formDto
* @return com.elink.esua.epdc.commons.tools.utils.Result<java.util.List<com.elink.esua.epdc.dto.analysis.pc.screen.result.EpdcScreenPartyBuildingBrightIdentityResultDTO>>
* @author Liuchuang
* @since 2021/8/11 14:37
*/
Result<List<EpdcScreenPartyBuildingBrightIdentityResultDTO>> brightIdentity(EpdcScreenPartyBuildingBrightIdentityFormDTO formDto);
/**
* 党建引领-党员画像
*
* @return com.elink.esua.epdc.commons.tools.utils.Result<java.util.List<com.elink.esua.epdc.dto.analysis.pc.screen.result.EpdcScreenPartyBuildingPartyMemberAgeResultDTO>>
* @author Liuchuang
* @since 2021/8/11 14:37
*/
Result<List<EpdcScreenPartyBuildingPartyMemberAgeResultDTO>> partyMemberAge();
/**
* 首页-组织信息接口
* @return com.elink.esua.epdc.commons.tools.utils.Result<java.util.List<com.elink.esua.epdc.dto.analysis.pc.screen.result.EpdcScreenFrontPageDeptInfoResultDTO>>
* @author zhangfenghe
* @since 2021/8/11 15:26
*/
Result<List<EpdcScreenFrontPageDeptInfoResultDTO>> frontPageDeptInfoList(EpdcScreenFrontPageDeptInfoFormDTO formDto);
/**
* 首页-人口类型统计接口
* @return com.elink.esua.epdc.commons.tools.utils.Result<java.util.List<com.elink.esua.epdc.dto.analysis.pc.screen.result.EpdcScreenFrontPagePersonInfoStatisticsResultDTO>>
* @author zhangfenghe
* @since 2021/8/11 17:38
*/
Result<EpdcScreenFrontPagePersonInfoStatisticsResultDTO> frontPagePersonInfoStatisticsList();
/**
* 首页-房屋类型统计接口
* @return com.elink.esua.epdc.commons.tools.utils.Result<com.elink.esua.epdc.dto.analysis.pc.screen.result.EpdcScreenFrontPageHouseTypeStatisticsResultDTO>
* @author zhangfenghe
* @since 2021/8/11 20:03
*/
Result<EpdcScreenFrontPageHouseTypeStatisticsResultDTO> frontPageHouseTypeStatistics();
/**
* 疫情防控-疫苗接种情况统计
* @return com.elink.esua.epdc.commons.tools.utils.Result<com.elink.esua.epdc.dto.analysis.pc.screen.result.EpdcScreenEpidemicVaccinationStatisticsResultDTO>
* @author zhangfenghe
* @since 2021/8/11 23:39
*/
Result<EpdcScreenEpidemicVaccinationStatisticsResultDTO> epidemicVaccinationStatistics();
/**
* 疫情防控-社区接种情况统计社区接种情况总览地图数据
* @params [formDto]
* @return com.elink.esua.epdc.commons.tools.utils.Result<java.util.List<com.elink.esua.epdc.dto.analysis.pc.screen.result.EpdcScreenEpidemicCommunityVaccinationStatisticsResultDTO>>
* @author zhangfenghe
* @since 2021/8/12 10:31
*/
Result<List<EpdcScreenEpidemicCommunityVaccinationStatisticsResultDTO>> epidemicCommunityVaccinationStatisticsList(EpdcScreenEpidemicCommunityVaccinationStatisticsFormDTO formDto);
/**
* 疫情防控-接种企业统计
* @params []
* @return com.elink.esua.epdc.commons.tools.utils.Result<java.util.List<com.elink.esua.epdc.dto.analysis.pc.screen.result.EpdcScreenEpidemicCompanyVaccinationStatisticsResultDTO>>
* @author zhangfenghe
* @since 2021/8/12 11:27
*/
Result<List<EpdcScreenEpidemicCompanyVaccinationStatisticsResultDTO>> epidemicCompanyVaccinationStatisticsList();
/**
* 疫情防控-疫苗接种年龄分布
* @params [formDto]
* @return com.elink.esua.epdc.commons.tools.utils.Result<com.elink.esua.epdc.dto.analysis.pc.screen.result.EpdcScreenVaccinationAgeVaccinationStatisticsResultDTO>
* @author jyyzz
* @since 2021/8/12 12:36
*/
Result<EpdcScreenVaccinationAgeVaccinationStatisticsResultDTO> vaccinationAgeVaccinationStatistics(EpdcScreenVaccinationAgeVaccinationStatisticsFormDTO formDto);
/**
*疫情防控-疫苗接种人口类型统计
* @params [formDto]
* @return com.elink.esua.epdc.commons.tools.utils.Result<com.elink.esua.epdc.dto.analysis.pc.screen.result.EpdcScreenVaccinationPersonVaccinationStatisticsResultDTO>
* @author zhangfenghe
* @since 2021/8/12 15:30
*/
Result<EpdcScreenVaccinationPersonVaccinationStatisticsResultDTO> vaccinationPersonVaccinationStatistics(EpdcScreenVaccinationPersonVaccinationStatisticsFormDTO formDto);
}

154
epdc-cloud-analysis-pc/src/main/java/com/elink/esua/epdc/modules/screen/service/impl/EpdcScreenServiceImpl.java

@ -0,0 +1,154 @@
package com.elink.esua.epdc.modules.screen.service.impl;
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.utils.Result;
import com.elink.esua.epdc.dto.analysis.pc.screen.form.*;
import com.elink.esua.epdc.commons.tools.validator.ValidatorUtils;
import com.elink.esua.epdc.dto.analysis.pc.screen.form.*;
import com.elink.esua.epdc.dto.analysis.pc.screen.result.*;
import com.elink.esua.epdc.modules.screen.dao.EpdcScreenDao;
import com.elink.esua.epdc.modules.screen.service.EpdcScreenService;
import org.springframework.stereotype.Service;
import java.util.List;
/**
* 202108版大屏接口
*
* @Authorliuchuang
* @Date2021/8/10 14:54
*/
@Service
public class EpdcScreenServiceImpl extends BaseServiceImpl<EpdcScreenDao, EpdcScreenGridGovernanceItemResultDTO> implements EpdcScreenService {
@Override
public Result<List<EpdcScreenGridGovernanceItemResultDTO>> gridGovernanceItemList(EpdcScreenGridGovernanceItemFormDTO formDto) {
int pageIndex = (formDto.getPageIndex() - NumConstant.ONE) * formDto.getPageSize();
formDto.setPageIndex(pageIndex);
List<EpdcScreenGridGovernanceItemResultDTO> data = baseDao.gridGovernanceItemList(formDto);
return new Result<List<EpdcScreenGridGovernanceItemResultDTO>>().ok(data);
}
@Override
public Result<List<EpdcScreenGridGovernanceItemCategoryResultDTO>> itemCategoryStatistics() {
List<EpdcScreenGridGovernanceItemCategoryResultDTO> data = baseDao.itemCategoryStatistics();
return new Result<List<EpdcScreenGridGovernanceItemCategoryResultDTO>>().ok(data);
}
@Override
public Result<List<EpdcScreenGridGovernanceItemStatusResultDTO>> itemStatusStatistics() {
List<EpdcScreenGridGovernanceItemStatusResultDTO> data = baseDao.itemStatusStatistics();
return new Result<List<EpdcScreenGridGovernanceItemStatusResultDTO>>().ok(data);
}
@Override
public Result<List<EpdcScreenGridGovernanceItemDifficultResultDTO>> difficultItemList(EpdcScreenGridGovernanceItemDifficultFormDTO formDto) {
int pageIndex = (formDto.getPageIndex() - NumConstant.ONE) * formDto.getPageSize();
formDto.setPageIndex(pageIndex);
List<EpdcScreenGridGovernanceItemDifficultResultDTO> data = baseDao.difficultItemList(formDto);
return new Result<List<EpdcScreenGridGovernanceItemDifficultResultDTO>>().ok(data);
}
@Override
public Result<List<EpdcScreenGridGovernanceRankingResultDTO>> governanceRanking(EpdcScreenGridGovernanceRankingFormDTO formDto) {
int pageIndex = (formDto.getPageIndex() - NumConstant.ONE) * formDto.getPageSize();
formDto.setPageIndex(pageIndex);
List<EpdcScreenGridGovernanceRankingResultDTO> data = baseDao.governanceRanking(formDto);
return new Result<List<EpdcScreenGridGovernanceRankingResultDTO>>().ok(data);
}
@Override
public Result<List<EpdcScreenPartyBuildingNoticeListResultDTO>> noticeList(EpdcScreenPartyBuildingNoticeListFormDTO formDto) {
int pageIndex = (formDto.getPageIndex() - NumConstant.ONE) * formDto.getPageSize();
formDto.setPageIndex(pageIndex);
List<EpdcScreenPartyBuildingNoticeListResultDTO> data = baseDao.noticeList(formDto);
return new Result<List<EpdcScreenPartyBuildingNoticeListResultDTO>>().ok(data);
}
@Override
public Result<List<EpdcScreenPartyBuildingPartyOrgActResultDTO>> partyOrgActList(EpdcScreenPartyBuildingPartyOrgActFormDTO formDto) {
int pageIndex = (formDto.getPageIndex() - NumConstant.ONE) * formDto.getPageSize();
formDto.setPageIndex(pageIndex);
List<EpdcScreenPartyBuildingPartyOrgActResultDTO> data = baseDao.partyOrgActList(formDto);
return new Result<List<EpdcScreenPartyBuildingPartyOrgActResultDTO>>().ok(data);
}
@Override
public Result<List<EpdcScreenPartyBuildingPartyOrgTypeResultDTO>> partyOrgTypeList() {
List<EpdcScreenPartyBuildingPartyOrgTypeResultDTO> data = baseDao.partyOrgTypeList();
return new Result<List<EpdcScreenPartyBuildingPartyOrgTypeResultDTO>>().ok(data);
}
@Override
public Result<List<EpdcScreenPartyBuildingPartyOrgResultDTO>> partyOrgList() {
List<EpdcScreenPartyBuildingPartyOrgResultDTO> data = baseDao.partyOrgList();
return new Result<List<EpdcScreenPartyBuildingPartyOrgResultDTO>>().ok(data);
}
@Override
public Result<List<EpdcScreenPartyBuildingBrightIdentityResultDTO>> brightIdentity(EpdcScreenPartyBuildingBrightIdentityFormDTO formDto) {
int pageIndex = (formDto.getPageIndex() - NumConstant.ONE) * formDto.getPageSize();
formDto.setPageIndex(pageIndex);
List<EpdcScreenPartyBuildingBrightIdentityResultDTO> data = baseDao.brightIdentity(formDto);
return new Result<List<EpdcScreenPartyBuildingBrightIdentityResultDTO>>().ok(data);
}
@Override
public Result<List<EpdcScreenPartyBuildingPartyMemberAgeResultDTO>> partyMemberAge() {
List<EpdcScreenPartyBuildingPartyMemberAgeResultDTO> data = baseDao.partyMemberAge();
return new Result<List<EpdcScreenPartyBuildingPartyMemberAgeResultDTO>>().ok(data);
}
@Override
public Result<List<EpdcScreenFrontPageDeptInfoResultDTO>> frontPageDeptInfoList(EpdcScreenFrontPageDeptInfoFormDTO formDto) {
List<EpdcScreenFrontPageDeptInfoResultDTO> data = baseDao.frontPageDeptInfoList(formDto);
return new Result<List<EpdcScreenFrontPageDeptInfoResultDTO>>().ok(data);
}
@Override
public Result<EpdcScreenFrontPagePersonInfoStatisticsResultDTO> frontPagePersonInfoStatisticsList() {
EpdcScreenFrontPagePersonInfoStatisticsResultDTO data = baseDao.frontPagePersonInfoStatisticsList();
return new Result<EpdcScreenFrontPagePersonInfoStatisticsResultDTO>().ok(data);
}
@Override
public Result<EpdcScreenFrontPageHouseTypeStatisticsResultDTO> frontPageHouseTypeStatistics() {
EpdcScreenFrontPageHouseTypeStatisticsResultDTO data = baseDao.frontPageHouseTypeStatistics();
return new Result<EpdcScreenFrontPageHouseTypeStatisticsResultDTO>().ok(data);
}
@Override
public Result<EpdcScreenEpidemicVaccinationStatisticsResultDTO> epidemicVaccinationStatistics() {
EpdcScreenEpidemicVaccinationStatisticsResultDTO data = baseDao.epidemicVaccinationStatistics();
return new Result<EpdcScreenEpidemicVaccinationStatisticsResultDTO>().ok(data);
}
@Override
public Result<List<EpdcScreenEpidemicCommunityVaccinationStatisticsResultDTO>> epidemicCommunityVaccinationStatisticsList(EpdcScreenEpidemicCommunityVaccinationStatisticsFormDTO formDto) {
int pageIndex = (formDto.getPageIndex() - NumConstant.ONE)*formDto.getPageSize();
formDto.setPageIndex(pageIndex);
List<EpdcScreenEpidemicCommunityVaccinationStatisticsResultDTO> data = baseDao.epidemicCommunityVaccinationStatisticsList(formDto);
return new Result<List<EpdcScreenEpidemicCommunityVaccinationStatisticsResultDTO>>().ok(data);
}
@Override
public Result<List<EpdcScreenEpidemicCompanyVaccinationStatisticsResultDTO>> epidemicCompanyVaccinationStatisticsList() {
List<EpdcScreenEpidemicCompanyVaccinationStatisticsResultDTO> data = baseDao.epidemicCompanyVaccinationStatisticsList();
return new Result<List<EpdcScreenEpidemicCompanyVaccinationStatisticsResultDTO>>().ok(data);
}
@Override
public Result<EpdcScreenVaccinationAgeVaccinationStatisticsResultDTO> vaccinationAgeVaccinationStatistics(EpdcScreenVaccinationAgeVaccinationStatisticsFormDTO formDto) {
EpdcScreenVaccinationAgeVaccinationStatisticsResultDTO data = baseDao.vaccinationAgeVaccinationStatistics(formDto);
return new Result<EpdcScreenVaccinationAgeVaccinationStatisticsResultDTO>().ok(data);
}
@Override
public Result<EpdcScreenVaccinationPersonVaccinationStatisticsResultDTO> vaccinationPersonVaccinationStatistics(EpdcScreenVaccinationPersonVaccinationStatisticsFormDTO formDto) {
EpdcScreenVaccinationPersonVaccinationStatisticsResultDTO data = baseDao.vaccinationPersonVaccinationStatistics(formDto);
return new Result<EpdcScreenVaccinationPersonVaccinationStatisticsResultDTO>().ok(data);
}
}

383
epdc-cloud-analysis-pc/src/main/resources/mapper/screen/EpdcScreenDao.xml

@ -0,0 +1,383 @@
<?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.EpdcScreenDao">
<resultMap type="com.elink.esua.epdc.dto.analysis.pc.screen.result.EpdcScreenFrontPageDeptInfoResultDTO" id="frontPageDeptInfoListMap">
<result property="id" column="id"/>
<result property="name" column="name"/>
<result property="typeKey" column="typeKey"/>
<result property="introduction" column="introduction"/>
<result property="acreage" column="acreage"/>
<result property="communityNum" column="communityNum"/>
<result property="gridNum" column="gridNum"/>
<result property="gridmanNum" column="gridmanNum"/>
<result property="partyMemberNum" column="partyMemberNum"/>
<result property="longitude" column="longitude"/>
<result property="latitude" column="latitude"/>
<collection property="images" ofType="com.elink.esua.epdc.dto.analysis.pc.screen.result.EpdcScreenImagesDTO">
<result property="imgType" column="imgType"/>
<result property="imgUrl" column="imgUrl"/>
</collection>
</resultMap>
<select id="gridGovernanceItemList" resultType="com.elink.esua.epdc.dto.analysis.pc.screen.result.EpdcScreenGridGovernanceItemResultDTO">
SELECT
i.ID,
i.ITEM_CONTENT,
c.CATEGORY_NAME,
i.DISTRIBUTE_TIME,
IFNULL(e.APPROVE_NUM + e.OPPOSE_NUM + e.COMMENT_NUM, 0) AS attentionNum
FROM
yushan_esua_epdc_events.epdc_item i
LEFT JOIN yushan_esua_epdc_events.epdc_category c ON c.CATEGORY_CODE = i.CATEGORY_CODE
LEFT JOIN yushan_esua_epdc_events.epdc_events e ON e.ID = i.EVENT_ID
WHERE
i.DEL_FLAG = '0'
ORDER BY
<if test="orderType == 1">
attentionNum DESC,
</if>
i.DISTRIBUTE_TIME DESC
LIMIT #{pageIndex}, #{pageSize}
</select>
<select id="itemCategoryStatistics" resultType="com.elink.esua.epdc.dto.analysis.pc.screen.result.EpdcScreenGridGovernanceItemCategoryResultDTO">
SELECT
ec.CATEGORY_NAME,
t.itemNum
FROM
yushan_esua_epdc_analysis.meta_epdc_category ec
LEFT JOIN (
SELECT
c.CATEGORY_NAME,
IFNULL( SUM( c.ITEM_TOTLE ), 0 ) itemNum
FROM
yushan_esua_epdc_analysis.epdc_issue_item_category c
WHERE
c.CATEGORY_TYPE = '1'
GROUP BY
c.CATEGORY_NAME
ORDER BY
itemNum DESC
) t ON t.CATEGORY_NAME = ec.CATEGORY_NAME
WHERE
ec.DEL_FLAG = 0
AND ec.CATEGORY_TYPE = '0'
</select>
<select id="itemStatusStatistics" resultType="com.elink.esua.epdc.dto.analysis.pc.screen.result.EpdcScreenGridGovernanceItemStatusResultDTO">
SELECT
IFNULL(SUM(ITEM_STATE = 0), 0) AS processingNum,
IFNULL(SUM(ITEM_STATE = 5 OR ITEM_STATE = 10), 0) AS completedNum
FROM
yushan_esua_epdc_events.epdc_item
WHERE
DEL_FLAG = '0'
</select>
<select id="difficultItemList" resultType="com.elink.esua.epdc.dto.analysis.pc.screen.result.EpdcScreenGridGovernanceItemDifficultResultDTO">
SELECT
di.EVENT_ID,
di.ITEM_CONTENT,
di.DISTRIBUTE_TIME,
di.SPEND_TIME,
di.HANDLE_TOTAL,
di.DEPT_TOTAL
FROM
yushan_esua_epdc_analysis.epdc_difficult_item di,
yushan_esua_epdc_analysis.epdc_item_difficult_config dc
WHERE
di.DEL_FLAG = '0'
AND (
di.SPEND_TIME >= dc.MIN_SPEND_TIME
OR di.HANDLE_TOTAL >= dc.MIN_HANDLE_TOTAL
OR di.DEPT_TOTAL >= dc.MIN_DEPT_TOTAL)
ORDER BY
<if test="orderType == 0">
di.SPEND_TIME DESC,
</if>
<if test="orderType == 1">
di.DEPT_TOTAL DESC,
</if>
<if test="orderType == 2">
di.HANDLE_TOTAL DESC,
</if>
di.DISTRIBUTE_TIME DESC
LIMIT #{pageIndex}, #{pageSize}
</select>
<select id="governanceRanking" resultType="com.elink.esua.epdc.dto.analysis.pc.screen.result.EpdcScreenGridGovernanceRankingResultDTO">
SELECT
DEPT_ID,
DEPT_NAME,
REGISTRATION_RATE,
RESPONSE_RATE,
RESOLUTION_RATE,
SATISFACTION_RATE,
AUTONOMY_RATE
FROM
yushan_esua_epdc_analysis.epdc_screen_governance_ranking
WHERE
DEL_FLAG = '0'
AND STATISTIC_TYPE = #{statisticType}
ORDER BY
<if test="orderType == 0">
REGISTRATION_RATE DESC,
</if>
<if test="orderType == 1">
RESPONSE_RATE DESC,
</if>
<if test="orderType == 2">
RESOLUTION_RATE DESC,
</if>
<if test="orderType == 3">
SATISFACTION_RATE DESC,
</if>
<if test="orderType == 4">
AUTONOMY_RATE DESC,
</if>
DEPT_NAME
LIMIT #{pageIndex}, #{pageSize}
</select>
<select id="noticeList" resultType="com.elink.esua.epdc.dto.analysis.pc.screen.result.EpdcScreenPartyBuildingNoticeListResultDTO">
SELECT
n.ID,
n.NOTICE_TITLE,
n.NOTICE_CONTENT,
n.DEPT_NAME,
n.CREATED_TIME,
n.TOP_FLAG
FROM
yushan_esua_epdc_news.epdc_notice n
LEFT JOIN yushan_esua_epdc_news.epdc_module_type t ON t.id = n.TYPE_ID
WHERE
n.DEL_FLAG = '0'
AND n.NOTICE_RELEASE_STATE = '1'
AND n.NOTICE_UP_DOWN_STATE = '1'
AND n.TOP_FLAG = '1'
ORDER BY
n.TOP_TIME DESC,
n.CREATED_TIME DESC
LIMIT #{pageIndex}, #{pageSize}
</select>
<select id="partyOrgActList" resultType="com.elink.esua.epdc.dto.analysis.pc.screen.result.EpdcScreenPartyBuildingPartyOrgActResultDTO">
SELECT
d.id AS deptId,
d.`name` AS deptName,
IFNULL( a.ACT_ZTDR_NUM, 0 ) AS actZtdrNum,
IFNULL( a.ACT_SHYK_NUM, 0 ) AS actShykNum,
IFNULL( a.ACT_LJGJ_NUM, 0 ) AS actLjgjNum,
IFNULL( a.ACT_ZTDR_PERSON_NUM, 0 ) AS actZtdrPersonNum,
IFNULL( a.ACT_SHYK_PERSON_NUM, 0 ) AS actShykPersonNum,
IFNULL( a.ACT_LJGJ_PERSON_NUM, 0 ) AS actLjgjPersonNum
FROM
yushan_esua_epdc_admin.sys_dept d
LEFT JOIN yushan_esua_epdc_analysis.epdc_screen_community_act_statistics a ON a.DEPT_ID = d.id
AND a.DEL_FLAG = '0'
WHERE
d.del_flag = 0
AND d.type_key = 'community_party'
ORDER BY
<if test="orderType == 0">
actZtdrNum+actShykNum+actLjgjNum DESC,
</if>
<if test="orderType == 1">
actZtdrPersonNum+actShykPersonNum+actLjgjPersonNum DESC,
</if>
d.`name`
LIMIT #{pageIndex}, #{pageSize}
</select>
<select id="partyOrgTypeList" resultType="com.elink.esua.epdc.dto.analysis.pc.screen.result.EpdcScreenPartyBuildingPartyOrgTypeResultDTO">
SELECT
ot.ID,
ot.TYPE_NAME,
COUNT( po.ID ) AS partyOrgNum
FROM
yushan_esua_epdc_admin.epdc_party_org_type ot
LEFT JOIN yushan_esua_epdc_admin.epdc_party_org po ON po.TYPE_CODE = ot.TYPE_CODE
AND po.DEL_FLAG = '0'
WHERE
ot.DEL_FLAG = '0'
AND `ENABLE` = '1'
GROUP BY
ot.ID
ORDER BY
SORT
</select>
<select id="partyOrgList" resultType="com.elink.esua.epdc.dto.analysis.pc.screen.result.EpdcScreenPartyBuildingPartyOrgResultDTO">
SELECT
ID,
PARTY_ORG_NAME,
INTRODUCTION,
TWO_COMMITTEES,
PARTY_MEMBER_NUM,
LONGITUDE,
LATITUDE
FROM
yushan_esua_epdc_admin.epdc_party_org
WHERE
DEL_FLAG = '0'
</select>
<select id="brightIdentity" resultType="com.elink.esua.epdc.dto.analysis.pc.screen.result.EpdcScreenPartyBuildingBrightIdentityResultDTO">
SELECT
ui.ID,
u.REAL_NAME,
u.FACE_IMG,
u.MOBILE,
ui.MOTTO,
ui.PROMISE,
ui.SERVICE_AREA
FROM
yushan_esua_epdc_user.epdc_user_info ui
LEFT JOIN yushan_esua_epdc_user.epdc_user u ON u.ID = ui.USER_ID
WHERE
ui.DEL_FLAG = '0'
AND ui.RECOMMEND_FLAG = '1'
ORDER BY
ui.RECOMMEND_TIME DESC,
ui.CREATED_TIME DESC
LIMIT #{pageIndex}, #{pageSize}
</select>
<select id="partyMemberAge" resultType="com.elink.esua.epdc.dto.analysis.pc.screen.result.EpdcScreenPartyBuildingPartyMemberAgeResultDTO">
SELECT
IFNULL(SUM( AGE_EIGHTEEN_THIRTY ), 0) AS ageEighteenThirty,
IFNULL(SUM( AGE_THIRTY_ONE_FORTY ), 0) AS ageThirtyOneForty,
IFNULL(SUM( AGE_FORTY_ONE_FIFTY ), 0) AS ageFortyOneFifty,
IFNULL(SUM( AGE_FIFTY_ONE_SIXTY ), 0) AS ageFiftyOneSixty,
IFNULL(SUM( AGE_SIXTY_ONE_SEVENTY ), 0) AS ageSixtyOneSeventy,
IFNULL(SUM( AGE_OVER_SEVENTY ), 0) AS ageOverSeventy
FROM
yushan_esua_epdc_analysis.epdc_screen_party_member_age_statistics
WHERE
DEL_FLAG = '0'
</select>
<select id="frontPageDeptInfoList" resultMap="frontPageDeptInfoListMap">
SELECT
sd.id AS id,
sd.name AS name,
sd.type_key AS typeKey,
sdi.introduction AS introduction,
sdi.COMMUNITY_NUM AS communityNum,
sdi.GRID_NUM AS gridNum,
sdi.GRIDMAN_NUM AS gridmanNum,
sdi.PARTY_MEMBER_NUM AS partyMemberNum,
sdi.LONGITUDE AS longitude,
sdi.LATITUDE AS latitude,
sdi.ACREAGE AS acreage,
edi.IMG_URL AS imgUrl,
edi.IMG_TYPE AS imgType
FROM sys_dept_info sdi
LEFT JOIN sys_dept sd ON sd.ID = sdi.DEPT_ID
LEFT JOIN epdc_admin_img edi ON edi.REFERENCE_ID = sdi.DEPT_ID
WHERE sd.del_flag = '0'
AND sdi.DEL_FLAG = '0'
AND edi.DEL_FLAG = '0'
<if test="typeKey != null and typeKey !=''">
AND sd.type_key = #{typeKey}
</if>
</select>
<select id="frontPagePersonInfoStatisticsList"
resultType="com.elink.esua.epdc.dto.analysis.pc.screen.result.EpdcScreenFrontPagePersonInfoStatisticsResultDTO">
SELECT
sum(if(LIVE_TYPE='0',PERSON_NUM,0)) as permanentResidenceNum,
sum(if(LIVE_TYPE='1',PERSON_NUM,0)) as floatingPopulationNum,
sum(if(LIVE_TYPE='2',PERSON_NUM,0)) as overseasPopulationNum
FROM yushan_esua_epdc_analysis.epdc_screen_person_live_statistics
WHERE DEL_FLAG = '0'
</select>
<select id="frontPageHouseTypeStatistics"
resultType="com.elink.esua.epdc.dto.analysis.pc.screen.result.EpdcScreenFrontPageHouseTypeStatisticsResultDTO">
SELECT
sum(if(HOUSE_TYPE ='0',HOUSE_NUM ,0)) as aloneLiveNum,
sum(if(HOUSE_TYPE ='1',HOUSE_NUM ,0)) as rentNum,
sum(if(HOUSE_TYPE ='2',HOUSE_NUM ,0)) as dormitoryNum,
sum(if(HOUSE_TYPE ='3',HOUSE_NUM ,0)) as vacantNum,
sum(if(HOUSE_TYPE ='4',HOUSE_NUM ,0)) as otherNum
FROM yushan_esua_epdc_analysis.epdc_screen_house_type_statistics
WHERE DEL_FLAG = '0'
</select>
<select id="epidemicVaccinationStatistics"
resultType="com.elink.esua.epdc.dto.analysis.pc.screen.result.EpdcScreenEpidemicVaccinationStatisticsResultDTO">
SELECT
SUM(VACCINATION_COMPLETED_NUM) as vaccinationCompletedNum,
SUM(ONE_SHOT_NUM) as oneShotNum,
SUM(TWO_SHOTS_NUM) as twoShotsNum,
SUM(NOT_VACCINATED_NUM) as notVaccinatedNum
FROM yushan_esua_epdc_analysis.epdc_screen_vaccination_statistics
WHERE DEL_FLAG = '0'
</select>
<select id="epidemicCommunityVaccinationStatisticsList"
resultType="com.elink.esua.epdc.dto.analysis.pc.screen.result.EpdcScreenEpidemicCommunityVaccinationStatisticsResultDTO">
SELECT
DEPT_ID,
DEPT_NAME,
COMMUNITY_TOTAL_NUM AS communityNum,
VACCINATION_COMPLETED_NUM,
ONE_SHOT_NUM,
TWO_SHOTS_NUM,
NOT_VACCINATED_NUM,
BEING_VACCINATED_NUM,
LONGITUDE,
LATITUDE
FROM yushan_esua_epdc_analysis.epdc_screen_vaccination_statistics
WHERE DEL_FLAG = '0'
ORDER BY
<if test="orderType == 0">
VACCINATION_COMPLETED_NUM DESC,
</if>
<if test="orderType == 1">
ONE_SHOT_NUM DESC,
</if>
<if test="orderType == 2">
TWO_SHOTS_NUM DESC,
</if>
<if test="orderType == 3">
NOT_VACCINATED_NUM DESC,
</if>
DEPT_NAME
LIMIT #{pageIndex}, #{pageSize}
</select>
<select id="epidemicCompanyVaccinationStatisticsList"
resultType="com.elink.esua.epdc.dto.analysis.pc.screen.result.EpdcScreenEpidemicCompanyVaccinationStatisticsResultDTO">
SELECT
COMPANY,
VACCINATION_NUM
FROM yushan_esua_epdc_analysis.epdc_screen_vaccination_company_statistics
WHERE DEL_FLAG = '0'
</select>
<select id="vaccinationAgeVaccinationStatistics"
resultType="com.elink.esua.epdc.dto.analysis.pc.screen.result.EpdcScreenVaccinationAgeVaccinationStatisticsResultDTO">
SELECT
SUM(AGE_EIGHTEEN_THIRTY) AS ageEighteenThirty,
SUM(AGE_THIRTY_ONE_FORTY) AS ageThirtyOneForty,
SUM(AGE_FORTY_ONE_FIFTY) AS ageFortyOneFifty,
SUM(AGE_FIFTY_ONE_SIXTY) AS ageFiftyOneSixty,
SUM(AGE_OVER_SIXTY) AS ageOverSixty
FROM yushan_esua_epdc_analysis.epdc_screen_vaccination_age_statistics
WHERE DEL_FLAG = '0'
AND STATISTIC_TYPE = #{statisticType}
</select>
<select id="vaccinationPersonVaccinationStatistics"
resultType="com.elink.esua.epdc.dto.analysis.pc.screen.result.EpdcScreenVaccinationPersonVaccinationStatisticsResultDTO">
SELECT
SUM(PERMANENT_RESIDENCE_NUM) AS permanentResidenceNum,
SUM(FLOATING_POPULATION_NUM) AS floatingPopulationNum,
SUM(FOREIGN_POPULATION_NUM) AS foreignPopulationNum
FROM yushan_esua_epdc_analysis.epdc_screen_vaccination_person_statistics
WHERE DEL_FLAG = '0'
AND STATISTIC_TYPE = #{statisticType}
</select>
</mapper>

2
epdc-cloud-client-yushan

@ -1 +1 @@
Subproject commit 2b151d97fc6d0d2068ed5f46934f41dd57d50c44 Subproject commit c660ca360356218f48dbdb987f4fba70f7642435

2
epdc-cloud-commons-yushan

@ -1 +1 @@
Subproject commit 3c32a04b69a4bef06bc48c3d9c17a5a1d96a8fed Subproject commit 235f56d5ea756317efe54c5e0d4be0ac45e09155
Loading…
Cancel
Save