| | |
| | | + "DATE_FORMAT( NOW(), '%Y-%m-%d' )) partyAge,\n" + "m.join_time,\n" + "m.employment_time,\n" + "CASE\n" |
| | | + "WHEN u.id_card IS NULL THEN\n" + "'未注册' ELSE '已注册' \n" + "END STATUS \n" + "FROM\n" + "com_pb_member m\n" |
| | | + "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} and m.audit_result='1' " |
| | | + " where m.community_id = ${pagePartyOrganizationVO.communityId} and m.audit_result='1' " |
| | | + "<if test='pagePartyOrganizationVO.orgName != null and pagePartyOrganizationVO.orgName != ""'>" |
| | | + "and o.name like concat(#{pagePartyOrganizationVO.orgName},'%') " + " </if> " |
| | | + "<if test='pagePartyOrganizationVO.orgId != null'>" + " and o.id = #{pagePartyOrganizationVO.orgId} " |
| | |
| | | + "<if test='pagePartyBuildingMemberVO.auditStatus != null'>" |
| | | + " and m.audit_result = #{pagePartyBuildingMemberVO.auditStatus}" + " </if> " |
| | | + "<if test='pagePartyBuildingMemberVO.communityId != null'>" |
| | | + " and m.community_id = #{pagePartyBuildingMemberVO.communityId}" + " </if> " + " order by m.join_time desc " |
| | | + " and m.community_id = ${pagePartyBuildingMemberVO.communityId}" + " </if> " + " order by m.join_time desc " |
| | | + "</script>") |
| | | IPage<PartyBuildingMemberVO> pagePartyBuildingMembersVO(Page page, |
| | | @Param("pagePartyBuildingMemberVO") PagePartyBuildingMemberVO pagePartyBuildingMemberVO); |
| | |
| | | + "select cpm.name as comName,cpm.id_card,cpm.join_time,cpm.employment_time,ca.`name` as communityName,cpo.name as orgName from com_pb_member as cpm " |
| | | + " left join com_act as ca on ca.community_id = cpm.community_id " |
| | | + " left join com_pb_org as cpo on cpo.id = cpm.org_id " + " LEFT JOIN sys_user u ON cpm.id_card = u.id_card " |
| | | + " where cpm.community_id = #{organizationVO.communityId} and cpm.audit_result = 1 " |
| | | + " where cpm.community_id = ${organizationVO.communityId} and cpm.audit_result = 1 " |
| | | + "<if test='organizationVO.orgName != null'>" + " and cpo.name LIKE CONCAT('%',#{organizationVO.orgName},'%') " |
| | | + " </if> " + "<if test='organizationVO.account != null and organizationVO.account != ""'>" |
| | | + " and u.phone like concat (#{organizationVO.account},'%')" + " </if> " |