|
|
@ -9,7 +9,7 @@ |
|
|
|
<result property="mobile" column="MOBILE"/> |
|
|
|
<result property="identityNo" column="IDENTITY_NO"/> |
|
|
|
<result property="post" column="POST"/> |
|
|
|
<result property="postId" column="POST_ID"/> |
|
|
|
<result property="postValue" column="POST_VALUE"/> |
|
|
|
<result property="cadreFlag" column="CADRE_FLAG"/> |
|
|
|
<result property="registFlag" column="REGIST_FLAG"/> |
|
|
|
<result property="registTime" column="REGIST_TIME"/> |
|
|
@ -36,7 +36,7 @@ |
|
|
|
<result property="mobile" column="MOBILE"/> |
|
|
|
<result property="identityNo" column="IDENTITY_NO"/> |
|
|
|
<result property="post" column="POST"/> |
|
|
|
<result property="postId" column="POST_ID"/> |
|
|
|
<result property="postValue" column="POST_VALUE"/> |
|
|
|
<result property="cadreFlag" column="CADRE_FLAG"/> |
|
|
|
<result property="registFlag" column="REGIST_FLAG"/> |
|
|
|
<result property="registTime" column="REGIST_TIME"/> |
|
|
@ -56,8 +56,41 @@ |
|
|
|
</resultMap> |
|
|
|
|
|
|
|
<select id="pageDIY" resultMap="partyMembersDtoMap"> |
|
|
|
SELECT pm.*,tag.TAG_NAME,tag.TAG_DESC FROM epdc_party_members as pm, epdc_user_tag as tag,epdc_party_tag_relation as partytag |
|
|
|
WHERE pm.ID = partytag.PARTY_ID and tag.ID = partytag.TAG_ID AND pm.DEL_FLAG = '0' |
|
|
|
select pm.*,tag.TAG_NAME from epdc_party_members as pm, epdc_user_tag as tag,epdc_party_tag_relation as partytag |
|
|
|
where 1 = 1 |
|
|
|
and pm.ID = partytag.PARTY_ID |
|
|
|
and tag.ID = partytag.TAG_ID |
|
|
|
and pm.DEL_FLAG = '0' |
|
|
|
<if test="realName != null and realName != '' "> |
|
|
|
and pm.REAL_NAME = #{realName} |
|
|
|
</if> |
|
|
|
<if test="mobile != null and mobile != '' "> |
|
|
|
and pm.MOBILE = #{mobile} |
|
|
|
</if> |
|
|
|
<if test="streetId != null and streetId != '' "> |
|
|
|
and pm.STREET_ID = #{streetId} |
|
|
|
</if> |
|
|
|
<if test="identityNo != null and identityNo != '' "> |
|
|
|
and pm.IDENTITY_NO = #{identityNo} |
|
|
|
</if> |
|
|
|
<if test="communityId != null and communityId != '' "> |
|
|
|
and pm.COMMUNITY_ID = #{communityId} |
|
|
|
</if> |
|
|
|
<if test="gridId != null and gridId != '' "> |
|
|
|
and pm.GRID_ID = #{gridId} |
|
|
|
</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="startTime != null "> |
|
|
|
and pm.REGIST_TIME >= #{startTime} |
|
|
|
</if> |
|
|
|
<if test="endTime != null "> |
|
|
|
<![CDATA[ and pm.REGIST_TIME <= ]]> #{endTime} |
|
|
|
</if> |
|
|
|
</select> |
|
|
|
|
|
|
|
</mapper> |
|
|
|