| | |
| | | package com.mindskip.xzs.repository; |
| | | |
| | | import com.mindskip.xzs.domain.Department; |
| | | import com.mindskip.xzs.domain.vo.CascaderDataVO; |
| | | import com.mindskip.xzs.viewmodel.admin.department.DepartmentResponseVM; |
| | | import com.mindskip.xzs.viewmodel.admin.education.SubjectPageRequestVM; |
| | | import com.mindskip.xzs.vo.SubjectVO; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import java.util.List; |
| | | |
| | |
| | | |
| | | Integer update(Department department); |
| | | |
| | | List<Department> gets(); |
| | | List<Department> gets(List<Integer> deptId); |
| | | |
| | | List<Department> page(DepartmentResponseVM departmentResponseVM); |
| | | List<DepartmentResponseVM> page(DepartmentResponseVM departmentResponseVM); |
| | | |
| | | Department getName(String name); |
| | | |
| | | Department getById(Integer id); |
| | | |
| | | Integer selectByAdminId(@Param("userId") Integer userId); |
| | | |
| | | /** |
| | | * 查询除了id这个单位,该用户还是几个单位的负责人 |
| | | * @param userId |
| | | * @param id |
| | | * @return |
| | | */ |
| | | Integer countByAdminId(@Param("userId") Integer userId, @Param("id") Integer id); |
| | | |
| | | /** |
| | | * 所有部门 |
| | | * |
| | | * @return |
| | | */ |
| | | List<CascaderDataVO> list(); |
| | | |
| | | /** |
| | | * 获取这些部门拥有的子部门 |
| | | * |
| | | * @param deptIds |
| | | * @return |
| | | */ |
| | | List<Integer> getChilds(@Param("deptIds") List<Integer> deptIds); |
| | | |
| | | /** |
| | | * 获取该部门的上级(不包含自己) |
| | | * |
| | | * @param deptId |
| | | * @return |
| | | */ |
| | | List<Integer> getFather(@Param("deptId") Integer deptId); |
| | | |
| | | /** |
| | | * 获取几级单位 |
| | | * |
| | | * @param level |
| | | * @return |
| | | */ |
| | | List<CascaderDataVO> getLevelDeptList(@Param("level") Integer level); |
| | | |
| | | /** |
| | | * 管理分页 |
| | | * |
| | | * @return |
| | | */ |
| | | List<SubjectVO> page1(@Param("query") SubjectPageRequestVM model); |
| | | } |