Browse Source

人户状况

master
zxc 3 years ago
parent
commit
e8e4112f36
  1. 22
      epmet-module/gov-org/gov-org-server/src/main/java/com/epmet/service/impl/HouseServiceImpl.java
  2. 5
      epmet-user/epmet-user-client/src/main/java/com/epmet/dto/form/UserChartFormDTO.java
  3. 1
      epmet-user/epmet-user-server/src/main/java/com/epmet/service/impl/IcResiUserServiceImpl.java
  4. 26
      epmet-user/epmet-user-server/src/main/resources/mapper/IcResiUserDao.xml

22
epmet-module/gov-org/gov-org-server/src/main/java/com/epmet/service/impl/HouseServiceImpl.java

@ -972,16 +972,18 @@ public class HouseServiceImpl implements HouseService, ResultDataResolver {
}
}
for (RHZKStatisticsResultDTO r : rhzkResult.getData()) {
if (r.getOrgId().equals(id)){
dto.setRhyzUserTotal(r.getRhyzUserTotal());
dto.setRhyzUserRatio(r.getRhyzUserRatio());
dto.setRzhbzUserTotal(r.getRzhbzUserTotal());
dto.setRzhbzUserRatio(r.getRzhbzUserRatio());
dto.setHzrzUserTotal(r.getHzrzUserTotal());
dto.setHzrzUserRatio(r.getHzrzUserRatio());
dto.setZbqcUserTotal(r.getZbqcUserTotal());
dto.setZbqcUserRatio(r.getZbqcUserRatio());
dto.setUserTotal(r.getUserTotal());
if (StringUtils.isNotBlank(r.getOrgId())){
if (r.getOrgId().equals(id)){
dto.setRhyzUserTotal(r.getRhyzUserTotal());
dto.setRhyzUserRatio(r.getRhyzUserRatio());
dto.setRzhbzUserTotal(r.getRzhbzUserTotal());
dto.setRzhbzUserRatio(r.getRzhbzUserRatio());
dto.setHzrzUserTotal(r.getHzrzUserTotal());
dto.setHzrzUserRatio(r.getHzrzUserRatio());
dto.setZbqcUserTotal(r.getZbqcUserTotal());
dto.setZbqcUserRatio(r.getZbqcUserRatio());
dto.setUserTotal(r.getUserTotal());
}
}
}
list.add(dto);

5
epmet-user/epmet-user-client/src/main/java/com/epmet/dto/form/UserChartFormDTO.java

@ -27,6 +27,11 @@ public class UserChartFormDTO implements Serializable {
*/
private String type;
/**
* 人户一致:rhyz人在户不在rzhbz户在人不在hzrbz暂不清楚no全部all
*/
private String rhType;
private Integer pageNo = 1;
private Integer pageSize = 20;
private Boolean isPage = true;

1
epmet-user/epmet-user-server/src/main/java/com/epmet/service/impl/IcResiUserServiceImpl.java

@ -3660,6 +3660,7 @@ public class IcResiUserServiceImpl extends BaseServiceImpl<IcResiUserDao, IcResi
}
r.setUserTotal(userByRenHu.stream().collect(Collectors.summingInt(RHZKStatisticsResultDTO::getTotal)));
userByRenHu.forEach(u -> {
r.setOrgId(u.getOrgId());
switch (u.getRhzk()){
case UserConstant.R_H_Y_Z:
r.setRhyzUserTotal(u.getTotal());

26
epmet-user/epmet-user-server/src/main/resources/mapper/IcResiUserDao.xml

@ -1359,6 +1359,18 @@
<if test='null != type and type.trim() != "" and type == "ld" '>
AND (is_floating != '0' or is_floating is null)
</if>
<if test='null != rhType and rhType.trim() != "" and rhType == "rhyz" '>
AND RHZK = 'rhyz'
</if>
<if test='null != rhType and rhType.trim() != "" and rhType == "rzhbz" '>
AND RHZK = 'rzhbz'
</if>
<if test='null != rhType and rhType.trim() != "" and rhType == "hzrbz" '>
AND RHZK = 'hzrbz'
</if>
<if test='null != rhType and rhType.trim() != "" and rhType == "no" '>
AND(RHZK = '' or RHZK = null)
</if>
<choose>
<when test='orgType == "agency"'>
AND (agency_id = #{orgId} OR pids LIKE CONCAT('%', #{orgId}, '%'))
@ -1406,11 +1418,21 @@
<select id="getUserByRenHu" resultType="com.epmet.dto.result.RHZKStatisticsResultDTO">
SELECT
COUNT(ID) AS total,
rhzk
rhzk,
orgId
FROM
(SELECT
ID,
IFNULL(RHZK,'') AS rhzk
IFNULL(RHZK,'') AS rhzk,
<if test='orgType == "agency" '>
AGENCY_ID AS orgId
</if>
<if test='orgType == "grid" '>
GRID_ID AS orgId
</if>
<if test='orgType == "village" '>
VILLAGE_ID AS orgId
</if>
FROM ic_resi_user
WHERE DEL_FLAG = '0'
AND `STATUS` = '0'

Loading…
Cancel
Save