| | |
| | | * @Description 此处仅涉及复杂SQL操作,务必不要在此再次写单表的CRUD操作,因为mybatisPlus已经实现。 |
| | | * @company: hugeinfo |
| | | * @author: liyj |
| | | * @time: 2024-08-17 15:30:57 |
| | | * @time: 2024-08-19 20:04:19 |
| | | * @version 1.0.0 |
| | | */ |
| | | @Repository |
| | |
| | | */ |
| | | List<CtUser> pageTerms(@Param("page") PageRequest page, @Param("terms") Map<String, Object> terms); |
| | | |
| | | /** |
| | | * 按条件查询实体总数 |
| | | * |
| | | * @param terms 查询条件集合 |
| | | */ |
| | | long countQueryCtUser(@Param("terms") Map<String, Object> terms); |
| | | |
| | | /** |
| | | * 按条件查询实体分页结果集 |
| | | * @param page 分页对象 |
| | | * @param terms 查询条件集合 |
| | | * @return |
| | | */ |
| | | List<CtUser> pageQueryCtUser(@Param("page") PageRequest page, @Param("terms") Map<String, Object> terms); |
| | | |
| | | /** |
| | | * 根据部门和角色查询 |
| | | * @param unitId 组织编号 |
| | | * @param roleCode 角色代码 |
| | | * @return List<SelectTermDTO> |
| | | */ |
| | | List<CtUser> listUserByUnitRoleList(@Param("unitId") String unitId, @Param("roleCode") String roleCode); |
| | | |
| | | CtUser selectByIdCard(@Param("idCard")String idCard); |
| | | |
| | | } |