|
|
|
@ -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' |
|
|
|
|