| | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.panzhihua.common.model.vos.partybuilding.ComPbMemberExcelVO; |
| | | import com.panzhihua.common.model.vos.partybuilding.PagePartyBuildingMemberVO; |
| | | import com.panzhihua.common.model.vos.partybuilding.PagePartyOrganizationVO; |
| | | import com.panzhihua.common.model.vos.partybuilding.PartyBuildingMemberVO; |
| | |
| | | "CASE\n" + |
| | | "WHEN u.id_card IS NULL THEN\n" + |
| | | "'未注册' ELSE '已注册' \n" + |
| | | "END STATUS \n" + |
| | | "END STATUS," + |
| | | " m.create_at \n" + |
| | | "FROM\n" + |
| | | "com_pb_member m\n" + |
| | | "LEFT JOIN sys_user u ON m.id_card = u.id_card\n" + |
| | |
| | | " order by m.join_time desc "+ |
| | | "</script>") |
| | | IPage<PartyBuildingMemberVO> pagePartyBuildingMembersVO(Page page, @Param("pagePartyBuildingMemberVO") PagePartyBuildingMemberVO pagePartyBuildingMemberVO); |
| | | |
| | | @Select("<script> " + |
| | | "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} " + |
| | | "<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> " + |
| | | "<if test='organizationVO.name != null and organizationVO.name != ""'>" + |
| | | " and cpm.name like concat (#{organizationVO.name},'%')"+ |
| | | " </if> " + |
| | | "</script>") |
| | | List<ComPbMemberExcelVO> exportPbMember(@Param("organizationVO") PagePartyOrganizationVO organizationVO); |
| | | } |