| | |
| | | <if test="memberId != null and memberId != '' and needCommunityInfo == false"> |
| | | and ms.member_id = #{memberId} |
| | | </if> |
| | | <if test="noAuditEnterCommunity == true"> |
| | | and ms.member_type_cd not in ('390001200003','390001200005','390001200000') |
| | | </if> |
| | | <if test="memberTypeCd != null and memberTypeCd != ''"> |
| | | and ms.member_type_cd = #{memberTypeCd} |
| | | </if> |
| | |
| | | </if> |
| | | |
| | | <if test="noAuditEnterCommunity == true"> |
| | | ms.member_type_cd not in ('390001200003','390001200005','390001200000') |
| | | and ms.member_type_cd not in ('390001200003','390001200005','390001200000') |
| | | </if> |
| | | |
| | | <if test="memberTypeCd != null and memberTypeCd != ''"> |
| | |
| | | and ms.audit_status_cd = #{auditStatusCd} |
| | | </if> |
| | | |
| | | <if test="auditStatusCds != null and auditStatusCds != null"> |
| | | and ms.audit_status_cd in |
| | | <foreach collection="auditStatusCds" item="item" open="(" close=")" separator=","> |
| | | #{item} |
| | | </foreach> |
| | | </if> |
| | | <if test="communityId != null and communityId != ''"> |
| | | and ms.community_id = #{communityId} |
| | | </if> |
| | |
| | | and t.city_code= #{cityCode} |
| | | </if> |
| | | <if test="name !=null and name != ''"> |
| | | and t.name= #{name} |
| | | and t.name like concat('%',#{name},'%') |
| | | </if> |
| | | <if test="statusCd !=null and statusCd != ''"> |
| | | and t.status_cd= #{statusCd} |
| | | </if> |
| | | <if test="communityId !=null and communityId != ''"> |
| | | and t.community_id= #{communityId} |
| | | </if> |
| | | <if test="communityIds !=null"> |
| | | and t.community_id in |
| | | <foreach collection="communityIds" item="item" open="(" close=")" separator=","> |
| | | #{item} |
| | | </foreach> |
| | | </if> |
| | | <if test="bId !=null and bId != ''"> |
| | | and t.b_id= #{bId} |
| | |
| | | and cm.community_id = t.community_id |
| | | and cm.member_id = #{memberId} |
| | | and cm.status_cd = '0' |
| | | </if> |
| | | <if test="memberId !=null and memberId !='' and auditStatusCd != null and auditStatusCd !=''"> |
| | | and cm.audit_status_cd = #{auditStatusCd} |
| | | </if> |
| | | <if test="notInCommunityId != null "> |
| | | and t.community_id not in |
| | | <foreach collection="notInCommunityId" item="item" open="(" close=")" separator=","> |
| | | #{item} |
| | | </foreach> |
| | | </if> |
| | | <if test="page != -1 and page != null "> |
| | | limit #{page}, #{row} |
| | |
| | | and t.city_code= #{cityCode} |
| | | </if> |
| | | <if test="name !=null and name != ''"> |
| | | and t.name= #{name} |
| | | and t.name like concat('%',#{name},'%') |
| | | </if> |
| | | <if test="statusCd !=null and statusCd != ''"> |
| | | and t.status_cd= #{statusCd} |
| | | </if> |
| | | <if test="communityId !=null and communityId != ''"> |
| | | and t.community_id= #{communityId} |
| | | </if> |
| | | <if test="communityIds !=null"> |
| | | and t.community_id in |
| | | <foreach collection="communityIds" item="item" open="(" close=")" separator=","> |
| | | #{item} |
| | | </foreach> |
| | | </if> |
| | | <if test="bId !=null and bId != ''"> |
| | | and t.b_id= #{bId} |
| | |
| | | </if> |
| | | <if test="memberId !=null and memberId !=''"> |
| | | and cm.community_id = t.community_id |
| | | and cm.member_id = #{memberId} |
| | | and cm.status_cd = '0' |
| | | and cm.member_id = #{memberId} |
| | | and cm.status_cd = '0' |
| | | </if> |
| | | <if test="memberId !=null and memberId !='' and auditStatusCd != null and auditStatusCd !=''"> |
| | | and cm.audit_status_cd = #{auditStatusCd} |
| | | </if> |
| | | <if test="notInCommunityId != null "> |
| | | and t.community_id not in |
| | | <foreach collection="notInCommunityId" item="item" open="(" close=")" separator=","> |
| | | #{item} |
| | | </foreach> |
| | | </if> |
| | | |
| | | |