| | |
| | | import org.apache.ibatis.annotations.Param; |
| | | import org.apache.ibatis.annotations.Select; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @program: springcloud_k8s_panzhihuazhihuishequ |
| | | * @description: 党员 |
| | |
| | | "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>" + |
| | | " where m.community_id=#{pagePartyOrganizationVO.communityId} " + |
| | | "<if test='pagePartyOrganizationVO.orgName != null and pagePartyOrganizationVO.orgName.trim() != ""'>" + |
| | | "and o.name=#{pagePartyOrganizationVO.orgName}"+ |
| | | " </if> " + |
| | |
| | | "<if test='pagePartyOrganizationVO.name != null and pagePartyOrganizationVO.name.trim() != ""'>" + |
| | | "and m.name=#{pagePartyOrganizationVO.name}"+ |
| | | " </if> " + |
| | | " </where>" + |
| | | |
| | | "order by m.join_time desc "+ |
| | | "</script>") |
| | | IPage<PartyBuildingMemberVO> pagePartyOrganization(Page page, @Param("pagePartyOrganizationVO") PagePartyOrganizationVO pagePartyOrganizationVO); |
| | | |
| | | @Select("select m.* from sys_user u join com_pb_member m on u.id_card=m.id_card where u.user_id=#{userId}") |
| | | ComPbMemberDO selectByUserId(Long userId); |
| | | |
| | | @Select("select m.* from com_pb_member m join sys_user u on m.id_card=u.id_card where m.community_id=#{communityId}") |
| | | List<ComPbMemberDO> selectListRegister(Long communityId); |
| | | } |