|
@ -75,10 +75,10 @@ |
|
|
and pm.POST_ID = #{postId} |
|
|
and pm.POST_ID = #{postId} |
|
|
</if> |
|
|
</if> |
|
|
<if test="startTime != null and startTime != '' "> |
|
|
<if test="startTime != null and startTime != '' "> |
|
|
and pm.REGIST_TIME >= #{startTime} |
|
|
and DATE_FORMAT(pm.REGIST_TIME,'%Y-%m-%d') >= #{startTime} |
|
|
</if> |
|
|
</if> |
|
|
<if test="endTime != null and endTime != '' "> |
|
|
<if test="endTime != null and endTime != '' "> |
|
|
<![CDATA[ and pm.REGIST_TIME <= ]]> #{endTime} |
|
|
<![CDATA[ and DATE_FORMAT(pm.REGIST_TIME,'%Y-%m-%d') <= ]]> #{endTime} |
|
|
</if> |
|
|
</if> |
|
|
GROUP BY |
|
|
GROUP BY |
|
|
pm.ID |
|
|
pm.ID |
|
@ -100,13 +100,13 @@ |
|
|
AND ut.DEL_FLAG = '0' |
|
|
AND ut.DEL_FLAG = '0' |
|
|
WHERE |
|
|
WHERE |
|
|
eu.PARTY_FLAG = '1' and eu.DEL_FLAG = '0' |
|
|
eu.PARTY_FLAG = '1' and eu.DEL_FLAG = '0' |
|
|
<if test="realName != null and realName != '' ">and pm.REAL_NAME = #{realName}</if> |
|
|
<if test="realName != null and realName != '' ">and pm.REAL_NAME like '%${realName}%'</if> |
|
|
<if test="mobile != null and mobile != '' ">and pm.MOBILE = #{mobile}</if> |
|
|
<if test="mobile != null and mobile != '' ">and pm.MOBILE like '%${mobile}%'</if> |
|
|
<if test="identityNo != null and identityNo != '' ">and pm.IDENTITY_NO = #{identityNo}</if> |
|
|
<if test="identityNo != null and identityNo != '' ">and pm.IDENTITY_NO like '%${identityNo}%'</if> |
|
|
<if test="registFlag != null and registFlag != '' ">and pm.REGIST_FLAG = #{registFlag}</if> |
|
|
<if test="registFlag != null and registFlag != '' ">and pm.REGIST_FLAG = #{registFlag}</if> |
|
|
<if test="postId != null and postId != '' ">and pm.POST_ID = #{postId}</if> |
|
|
<if test="postId != null and postId != '' ">and pm.POST_ID = #{postId}</if> |
|
|
<if test="startTime != null and startTime != '' ">and pm.REGIST_TIME >= #{startTime}</if> |
|
|
<if test="startTime != null and startTime != '' ">and DATE_FORMAT(pm.REGIST_TIME,'%Y-%m-%d') >= #{startTime}</if> |
|
|
<if test="endTime != null and endTime != '' "> <![CDATA[ and pm.REGIST_TIME <= ]]> #{endTime}</if> |
|
|
<if test="endTime != null and endTime != '' "> <![CDATA[ and DATE_FORMAT(pm.REGIST_TIME,'%Y-%m-%d') <= ]]> #{endTime}</if> |
|
|
<if test="streetId != '' and streetId != null"> |
|
|
<if test="streetId != '' and streetId != null"> |
|
|
AND (find_in_set(#{streetId},eu.PARENT_DEPT_IDS) OR find_in_set(#{streetId},eu.ALL_DEPT_IDS)) |
|
|
AND (find_in_set(#{streetId},eu.PARENT_DEPT_IDS) OR find_in_set(#{streetId},eu.ALL_DEPT_IDS)) |
|
|
</if> |
|
|
</if> |
|
@ -213,7 +213,7 @@ |
|
|
WHERE |
|
|
WHERE |
|
|
DEL_FLAG = '0' |
|
|
DEL_FLAG = '0' |
|
|
AND AUTHENTICATED_TYPE IN ( '0', '1' ) |
|
|
AND AUTHENTICATED_TYPE IN ( '0', '1' ) |
|
|
<if test="endTime != ''"> |
|
|
<if test="endTime != null and endTime != ''"> |
|
|
and DATE_FORMAT(CREATED_TIME,'%Y-%m-%d') <= #{endTime} |
|
|
and DATE_FORMAT(CREATED_TIME,'%Y-%m-%d') <= #{endTime} |
|
|
</if> |
|
|
</if> |
|
|
AND USER_ID = uu.ID |
|
|
AND USER_ID = uu.ID |
|
@ -230,7 +230,7 @@ |
|
|
WHERE |
|
|
WHERE |
|
|
DEL_FLAG = '0' |
|
|
DEL_FLAG = '0' |
|
|
AND AUTHENTICATED_TYPE IN ( '0', '1' ) |
|
|
AND AUTHENTICATED_TYPE IN ( '0', '1' ) |
|
|
<if test="endTime != ''"> |
|
|
<if test="endTime != null and endTime != ''"> |
|
|
and DATE_FORMAT(CREATED_TIME,'%Y-%m-%d') <= #{endTime} |
|
|
and DATE_FORMAT(CREATED_TIME,'%Y-%m-%d') <= #{endTime} |
|
|
</if> |
|
|
</if> |
|
|
AND USER_ID = uu.ID |
|
|
AND USER_ID = uu.ID |
|
@ -248,7 +248,7 @@ |
|
|
DEL_FLAG = '0' |
|
|
DEL_FLAG = '0' |
|
|
AND AUTHENTICATED_TYPE IN ( '0', '1' ) |
|
|
AND AUTHENTICATED_TYPE IN ( '0', '1' ) |
|
|
AND AUTHENTICATED_FLAG = '1' |
|
|
AND AUTHENTICATED_FLAG = '1' |
|
|
<if test="endTime != ''"> |
|
|
<if test="endTime != null and endTime != ''"> |
|
|
and DATE_FORMAT(CREATED_TIME,'%Y-%m-%d') <= #{endTime} |
|
|
and DATE_FORMAT(CREATED_TIME,'%Y-%m-%d') <= #{endTime} |
|
|
</if> |
|
|
</if> |
|
|
AND USER_ID = uu.ID |
|
|
AND USER_ID = uu.ID |
|
@ -326,6 +326,60 @@ |
|
|
ORDER BY |
|
|
ORDER BY |
|
|
allu.registTime DESC |
|
|
allu.registTime DESC |
|
|
</select> |
|
|
</select> |
|
|
|
|
|
<select id="optimizeHasAuthenticationPartyPageInfoNew" resultType="com.elink.esua.epdc.dto.PartyMembersDTO"> |
|
|
|
|
|
SELECT |
|
|
|
|
|
pm.CADRE_FLAG, |
|
|
|
|
|
pm.CREATED_BY, |
|
|
|
|
|
pm.DEPT_ID, |
|
|
|
|
|
pm.ID, |
|
|
|
|
|
pm.POST, |
|
|
|
|
|
pm.POST_VALUE, |
|
|
|
|
|
pm.REGIST_FLAG, |
|
|
|
|
|
CASE pm.REGIST_FLAG |
|
|
|
|
|
WHEN '0' THEN |
|
|
|
|
|
'未认证' |
|
|
|
|
|
WHEN '1' THEN |
|
|
|
|
|
'自动认证' |
|
|
|
|
|
WHEN '2' THEN |
|
|
|
|
|
'手动认证' |
|
|
|
|
|
ELSE |
|
|
|
|
|
'未认证' |
|
|
|
|
|
END REGIST_NAME, |
|
|
|
|
|
GROUP_CONCAT(ut.TAG_NAME) TAG_NAME, |
|
|
|
|
|
allu.CREATED_TIME, |
|
|
|
|
|
allu.IDENTITY_NO, |
|
|
|
|
|
allu.MOBILE, |
|
|
|
|
|
allu.REAL_NAME, |
|
|
|
|
|
allu.registTime, |
|
|
|
|
|
allu.ALL_DEPT_NAMES |
|
|
|
|
|
FROM |
|
|
|
|
|
( |
|
|
|
|
|
SELECT |
|
|
|
|
|
eu.ID, |
|
|
|
|
|
eu.CREATED_TIME, |
|
|
|
|
|
eu.IDENTITY_NO, |
|
|
|
|
|
eu.MOBILE, |
|
|
|
|
|
eu.REAL_NAME, |
|
|
|
|
|
eu.REGISTER_TIME as registTime, |
|
|
|
|
|
eu.ALL_DEPT_NAMES |
|
|
|
|
|
FROM |
|
|
|
|
|
epdc_user eu |
|
|
|
|
|
WHERE |
|
|
|
|
|
eu.ID IN |
|
|
|
|
|
<foreach collection="userIdList" index="index" item="id" open="(" separator="," close=")"> |
|
|
|
|
|
#{id} |
|
|
|
|
|
</foreach> |
|
|
|
|
|
) allu |
|
|
|
|
|
LEFT JOIN epdc_party_members pm ON pm.IDENTITY_NO = allu.IDENTITY_NO |
|
|
|
|
|
AND pm.REAL_NAME = allu.REAL_NAME |
|
|
|
|
|
LEFT JOIN epdc_party_tag_relation pt ON pm.ID = pt.PARTY_ID |
|
|
|
|
|
LEFT JOIN epdc_user_tag ut ON pt.TAG_ID = ut.ID |
|
|
|
|
|
AND ut.DEL_FLAG = '0' |
|
|
|
|
|
GROUP BY |
|
|
|
|
|
allu.ID |
|
|
|
|
|
ORDER BY |
|
|
|
|
|
allu.registTime DESC |
|
|
|
|
|
</select> |
|
|
<!--删除党员时候校验是否被认证--> |
|
|
<!--删除党员时候校验是否被认证--> |
|
|
<select id="selectCountByIdentity" resultType="Integer"> |
|
|
<select id="selectCountByIdentity" resultType="Integer"> |
|
|
SELECT |
|
|
SELECT |
|
|