| | |
| | | package com.yuanchu.mom.mapper; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.yuanchu.mom.dto.DepartmentDto; |
| | | import com.yuanchu.mom.dto.UserDto; |
| | | import com.yuanchu.mom.mybatis_config.MyBaseMapper; |
| | | import com.yuanchu.mom.pojo.Department; |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import java.util.List; |
| | | |
| | |
| | | * @author 江苏鵷雏网络科技有限公司 |
| | | * @since 2024-04-15 04:01:48 |
| | | */ |
| | | public interface DepartmentMapper extends BaseMapper<Department> { |
| | | public interface DepartmentMapper extends MyBaseMapper<Department> { |
| | | |
| | | |
| | | //获取部门树 |
| | | List<DepartmentDto> selectDepartment(); |
| | | |
| | | //根据选择的树展示相关的人员 |
| | | IPage<UserDto> showUserById(@Param("page") IPage<UserDto> page, @Param("ids") List<String> ids, @Param("ew") QueryWrapper<UserDto> ew); |
| | | |
| | | |
| | | //根据部门id,查询他的所有子类id |
| | | List<Integer> selectSonById(Integer id); |