| | |
| | | **/ |
| | | @Mapper |
| | | public interface ComPbMemberRoleDAO extends BaseMapper<ComPbMemberRoleDO> { |
| | | // @Select("<script> " + |
| | | // " <where>" + |
| | | // "<if test='nameCn != null and nameCn.trim() != ""'>" + |
| | | // " </if> " + |
| | | // "<if test='nameCn != null and nameCn.trim() != ""'>" + |
| | | // " </if> " + |
| | | // "<if test='nameCn != null and nameCn.trim() != ""'>" + |
| | | // " </if> " + |
| | | // " </where>" + |
| | | // "</script>") |
| | | @Select("<script> " + "SELECT\n" + "*,\n" + "TIMESTAMPDIFF(\n" + "YEAR,\n" + "t.birth_time,\n" |
| | | + "DATE_FORMAT( NOW(), '%Y-%m-%d' )) age\n" + "FROM\n" + "com_pb_member_role t\n" + "WHERE\n" |
| | | + "t.community_id = ${partyCommitteeVO.communityId} \n" + "</script>") |
| | | |
| | | /** |
| | | * 分页查询党委列表 |
| | | * @param page 分页参数 |
| | | * @param partyCommitteeVO 请求参数 |
| | | * @return 党委列表 |
| | | */ |
| | | IPage<PartyCommitteeVO> pagePartyOrganization(Page page, |
| | | @Param("partyCommitteeVO") PartyCommitteeVO partyCommitteeVO); |
| | | |
| | | @Select("select * from sys_user where phone=#{phone} and type=1") |
| | | SysUserVO getSysUserByPhone(@Param("phone") String phone); |
| | | |
| | | /** |
| | | * 根据身份证查询小程序用户id |
| | | * @param idCard 身份证 |
| | | * @return 小程序用户id |
| | | */ |
| | | Long getUserIdByIdCard(@Param("idCard") String idCard); |
| | | |
| | | /** |
| | | * 根据手机号查询小程序用户id |
| | |
| | | |
| | | @Select("select * from com_pb_member_role where id=#{id}") |
| | | PartyCommitteeVO selectPartyCommitteeById(@Param("id") Long id); |
| | | |
| | | /** |
| | | * 根据身份证查询用户数量 |
| | | * @param idCard 身份证号码 |
| | | * @return 用户数量 |
| | | */ |
| | | Integer getSysUserByIdCardCount(@Param("idCard") String idCard); |
| | | } |