|
|
|
@ -501,7 +501,12 @@ |
|
|
|
LIMIT 1 |
|
|
|
)) AS DEPT_ID |
|
|
|
FROM |
|
|
|
esua_epdc_user.epdc_user uu ) newuu |
|
|
|
esua_epdc_user.epdc_user uu |
|
|
|
where uu.DEL_FLAG = '0' |
|
|
|
<if test="startTime != null and endTime != null and endTime != ''"> |
|
|
|
AND DATE_FORMAT(uu.CREATED_TIME,'%Y-%m-%d') BETWEEN #{startTime} AND #{endTime} |
|
|
|
</if> |
|
|
|
) newuu |
|
|
|
where newuu.DEL_FLAG = '0' |
|
|
|
<if test="gridIdList != null and gridIdList.size() > 0"> |
|
|
|
AND newuu.DEPT_ID in <include refid="foreachGridIdList"></include> |
|
|
|
@ -1117,6 +1122,10 @@ |
|
|
|
)) AS DEPT_ID |
|
|
|
FROM |
|
|
|
epdc_user uu |
|
|
|
where uu.DEL_FLAG = '0' |
|
|
|
<if test="startTime != null and endTime != null and endTime != ''"> |
|
|
|
and DATE_FORMAT(uu.CREATED_TIME,'%Y-%m-%d') BETWEEN #{startTime} AND #{endTime} |
|
|
|
</if> |
|
|
|
) newuu |
|
|
|
LEFT JOIN esua_epdc_admin.sys_dept ad ON newuu.DEPT_ID = ad.ID AND ad.type_key = 'grid_party' AND ad.DEL_FLAG = '0' |
|
|
|
<include refid="joinCommunityStreet"></include> |
|
|
|
@ -1253,6 +1262,10 @@ |
|
|
|
)) AS DEPT_ID |
|
|
|
FROM |
|
|
|
epdc_user uu |
|
|
|
where uu.DEL_FLAG = '0' |
|
|
|
<if test="startTime != null and endTime != null and endTime != ''"> |
|
|
|
and DATE_FORMAT(uu.CREATED_TIME,'%Y-%m-%d') BETWEEN #{startTime} AND #{endTime} |
|
|
|
</if> |
|
|
|
) newuu |
|
|
|
LEFT JOIN esua_epdc_admin.sys_dept ad ON newuu.DEPT_ID = ad.ID AND ad.type_key = 'grid_party' AND ad.DEL_FLAG = '0' |
|
|
|
<include refid="joinCommunityStreet"></include> |
|
|
|
|