| | |
| | | @Select("<script> " + |
| | | "SELECT\n" + |
| | | "o.`name` orgName,\n" + |
| | | "m.id_card,\n"+ |
| | | "m.`id`,\n" + |
| | | "u.phone,\n" + |
| | | "m.`name`,\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>" + |
| | | "<if test='orgName != null and orgName.trim() != ""'>" + |
| | | "o.name=#{orgName}"+ |
| | | "<if test='pagePartyOrganizationVO.orgName != null and pagePartyOrganizationVO.orgName.trim() != ""'>" + |
| | | "and o.name=#{pagePartyOrganizationVO.orgName}"+ |
| | | " </if> " + |
| | | "<if test='account != null and account.trim() != ""'>" + |
| | | "u.phone=#{account}"+ |
| | | "<if test='pagePartyOrganizationVO.account != null and pagePartyOrganizationVO.account.trim() != ""'>" + |
| | | "and u.phone=#{pagePartyOrganizationVO.account}"+ |
| | | " </if> " + |
| | | "<if test='name != null and name.trim() != ""'>" + |
| | | "m.name=#{name}"+ |
| | | "<if test='pagePartyOrganizationVO.name != null and pagePartyOrganizationVO.name.trim() != ""'>" + |
| | | "and m.name=#{pagePartyOrganizationVO.name}"+ |
| | | " </if> " + |
| | | " </where>" + |
| | | "</script>") |