springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/model/vos/community/bigscreen/WestScreenStatics.java
New file @@ -0,0 +1,29 @@ package com.panzhihua.common.model.vos.community.bigscreen; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import lombok.Data; /** * @author zzj */ @Data @ApiModel("西区大屏治理数据") public class WestScreenStatics { @ApiModelProperty("注册人数") private Integer user; @ApiModelProperty("党组织") private Integer partyOrg; @ApiModelProperty("党员") private Integer partyMember; @ApiModelProperty("志愿者") private Integer volunteer; @ApiModelProperty("微心愿") private Integer microWish; @ApiModelProperty("安全巡查") private Integer safety; @ApiModelProperty("社区活动") private Integer activity; @ApiModelProperty("疫情防控") private Integer reserve; } springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/service/community/CommunityService.java
@@ -7422,4 +7422,10 @@ @GetMapping("/rentingHourseRegister/updateAllHouseUnionAppCode") @Async void updateAllHouseUnionAppCode(); /** * 西区大屏治理数据 */ @GetMapping("/screen/getWestScreenStatics") R westScreenStatics(); } springcloud_k8s_panzhihuazhihuishequ/community_backstage/src/main/java/com/panzhihua/community_backstage/api/BigScreenStatisticsApi.java
@@ -7,6 +7,7 @@ import com.alibaba.fastjson.JSONObject; import com.panzhihua.common.constants.HttpConstant; import com.panzhihua.common.model.dtos.property.CommonPage; import com.panzhihua.common.model.vos.community.bigscreen.WestScreenStatics; import com.panzhihua.common.utlis.HttpClientUtil; import com.panzhihua.common.utlis.HttpUtils; import org.springframework.web.bind.annotation.*; @@ -182,7 +183,14 @@ return gridService.getGridsMemberTrajectory(communityId); } /** * 西区大屏治理数据 */ @ApiOperation(value = "西区大屏治理数据@lyq", response = WestScreenStatics.class) @GetMapping("/getWestScreenStatics") public R westScreenStatics(){ return communityService.westScreenStatics(); } } springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/BigScreenStatisticsApi.java
@@ -79,4 +79,12 @@ return R.ok(comMngPopulationService.getScreenEventDetail(eventDetailDTO)); } /** * 西区大屏治理数据 */ @GetMapping("/getWestScreenStatics") public R westScreenStatics(){ return comMngPopulationService.westScreenStatics(); } } springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/dao/ComMngPopulationDAO.java
@@ -7,6 +7,7 @@ import com.panzhihua.common.model.dtos.community.CascadeHouseDTO; import com.panzhihua.common.model.dtos.property.CommonPage; import com.panzhihua.common.model.vos.community.*; import com.panzhihua.common.model.vos.community.bigscreen.WestScreenStatics; import com.panzhihua.common.model.vos.community.screen.civil.*; import com.panzhihua.service_community.model.dos.ComMngPopulationCommunityTagsDO; import org.apache.ibatis.annotations.Insert; @@ -630,4 +631,10 @@ CivilGridStatisticsVO getCivilGrid(@Param("communityId") Long communityId); CivilConvenienceStatisticsVO getCivilConvenience(@Param("communityId") Long communityId); /** * 西区治理数据统计 * @return */ WestScreenStatics westScreenStatics(); } springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/ComMngPopulationService.java
@@ -521,4 +521,10 @@ * @return */ R specialInputUserExport(PageInputUserDTO PageInputUserDTO); /** * 西区大屏治理数据 * @return */ R westScreenStatics(); } springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComMngPopulationServiceImpl.java
@@ -7738,6 +7738,11 @@ return R.ok(this.comMngPopulationDAO.specialInputUserExport(pageInputUserDTO)); } @Override public R westScreenStatics() { return R.ok(this.comMngPopulationDAO.westScreenStatics()); } private void setMistake(ComMngPopulationMistakeExcelVO mvo, ComMngPopulationServeExcelVO vo) { mvo.setPoliticalOutlook(PopulPoliticalOutlookEnum.getCnDescByName(vo.getPoliticalOutlook())); mvo.setIsRent(PopulHouseUseEnum.getCnDescByName(vo.getIsRent())); springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/resources/mapper/ComMngPopulationDOMapper.xml
@@ -813,4 +813,17 @@ FROM com_act_work_guide </select> <select id="westScreenStatics" resultType="com.panzhihua.common.model.vos.community.bigscreen.WestScreenStatics"> select ( SELECT count( id ) FROM com_act_micro_wish AS camw WHERE camw.STATUS = 6 ) microWish , (select count(user_id) from sys_user t LEFT JOIN com_act t1 on t.community_id = t1.community_id where t.type=1 and t.community_id is not null and t1.area_code ='510423') user, (select count(id) from com_pb_org where parent_id = 0) partyOrg, (select count(id) from com_pb_member where audit_result = 1) partyMember, (select count(id) from com_mng_volunteer_mng where state = 2) volunteer, (select count(id) from com_sw_patrol_record) safety, (select count(*) from com_act_reserve t LEFT JOIN com_act_reserve_record t1 on t.id = t1.reserve_id where title like '%居家隔离%' or title like '%返攀登记%' and t1.status = 2 ) reserve, (select count(*) from com_act_activity where status !=6) activity </select> </mapper>