| | |
| | | "LEFT JOIN sys_user u ON m.id_card = u.id_card\n" + |
| | | "LEFT JOIN com_pb_org o ON m.org_id = o.id"+ |
| | | " where m.community_id=#{pagePartyOrganizationVO.communityId} " + |
| | | "<if test='pagePartyOrganizationVO.orgName != null and pagePartyOrganizationVO.orgName.trim() != ""'>" + |
| | | "<if test='pagePartyOrganizationVO.orgName != null and pagePartyOrganizationVO.orgName != ""'>" + |
| | | "and o.name like concat(#{pagePartyOrganizationVO.orgName},'%') "+ |
| | | " </if> " + |
| | | "<if test='pagePartyOrganizationVO.account != null and pagePartyOrganizationVO.account.trim() != ""'>" + |
| | | "<if test='pagePartyOrganizationVO.account != null and pagePartyOrganizationVO.account != ""'>" + |
| | | "and u.phone like concat (#{pagePartyOrganizationVO.account},'%')"+ |
| | | " </if> " + |
| | | "<if test='pagePartyOrganizationVO.name != null and pagePartyOrganizationVO.name.trim() != ""'>" + |
| | | "<if test='pagePartyOrganizationVO.name != null and pagePartyOrganizationVO.name != ""'>" + |
| | | "and m.name like concat (#{pagePartyOrganizationVO.name},'%')"+ |
| | | " </if> " + |
| | | |
| | |
| | | "LEFT JOIN sys_user u ON m.id_card = u.id_card\n" + |
| | | "LEFT JOIN com_pb_org o ON m.org_id = o.id"+ |
| | | " where m.user_id is not null " + |
| | | "<if test='pagePartyBuildingMemberVO.phone != null and pagePartyBuildingMemberVO.phone.trim() != ""'>" + |
| | | "<if test='pagePartyBuildingMemberVO.phone != null and pagePartyBuildingMemberVO.phone != ""'>" + |
| | | "and u.phone = #{pagePartyBuildingMemberVO.phone} "+ |
| | | " </if> " + |
| | | "<if test='pagePartyBuildingMemberVO.name != null and pagePartyBuildingMemberVO.name.trim() != ""'>" + |
| | | "<if test='pagePartyBuildingMemberVO.name != null and pagePartyBuildingMemberVO.name != ""'>" + |
| | | "and u.name like concat (#{pagePartyBuildingMemberVO.name},'%')"+ |
| | | " </if> " + |
| | | "<if test='pagePartyBuildingMemberVO.auditStatus != null and pagePartyBuildingMemberVO.auditStatus.trim() != ""'>" + |
| | | "<if test='pagePartyBuildingMemberVO.auditStatus != null and pagePartyBuildingMemberVO.auditStatus != ""'>" + |
| | | "and m.audit_status = #{pagePartyBuildingMemberVO.auditStatus}"+ |
| | | " </if> " + |
| | | "order by m.join_time desc "+ |
| | |
| | | "<if test='pagePartyBuildingMemberVO.name != null and pagePartyBuildingMemberVO.name != ""'>" + |
| | | " and u.name like concat (#{pagePartyBuildingMemberVO.name},'%')"+ |
| | | " </if> " + |
| | | "<if test='pagePartyBuildingMemberVO.auditStatus != null and pagePartyBuildingMemberVO.auditStatus != ""'>" + |
| | | "<if test='pagePartyBuildingMemberVO.auditStatus != null'>" + |
| | | " and m.audit_status = #{pagePartyBuildingMemberVO.auditStatus}"+ |
| | | " </if> " + |
| | | " order by m.join_time desc "+ |