|
|
|
@ -56,13 +56,16 @@ |
|
|
|
</resultMap> |
|
|
|
|
|
|
|
<select id="pageDIY" resultMap="partyMembersDtoMap"> |
|
|
|
select pm.*,GROUP_CONCAT(DISTINCT(tag.TAG_NAME)) as 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' |
|
|
|
and partytag.DEL_FLAG = '0' |
|
|
|
and tag.DEL_FLAG = '0' |
|
|
|
SELECT |
|
|
|
pm.*, |
|
|
|
GROUP_CONCAT( ut.TAG_NAME ) TAG_NAME |
|
|
|
FROM |
|
|
|
epdc_party_members pm |
|
|
|
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' |
|
|
|
WHERE |
|
|
|
pm.DEL_FLAG = '0' |
|
|
|
<if test="realName != null and realName != '' "> |
|
|
|
and pm.REAL_NAME = #{realName} |
|
|
|
</if> |
|
|
|
@ -93,7 +96,10 @@ |
|
|
|
<if test="endTime != null and endTime != '' "> |
|
|
|
<![CDATA[ and pm.REGIST_TIME <= ]]> #{endTime} |
|
|
|
</if> |
|
|
|
GROUP BY pm.ID |
|
|
|
GROUP BY |
|
|
|
pm.ID |
|
|
|
ORDER BY |
|
|
|
pm.CREATED_TIME DESC |
|
|
|
</select> |
|
|
|
|
|
|
|
<select id="selectByIdNew" resultMap="partyMembersDtoMap"> |
|
|
|
|