| | |
| | | package com.mindskip.xzs.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.extension.conditions.query.LambdaQueryChainWrapper; |
| | | import com.github.pagehelper.PageHelper; |
| | | import com.github.pagehelper.PageInfo; |
| | | import com.mindskip.xzs.domain.Department; |
| | | import com.mindskip.xzs.domain.UserDepartment; |
| | | import com.mindskip.xzs.domain.enums.DeptAdminEnum; |
| | | import com.mindskip.xzs.domain.vo.BaseSelect; |
| | | import com.mindskip.xzs.domain.vo.UpdateDeptAdminVO; |
| | |
| | | } |
| | | |
| | | @Override |
| | | public List<Department> gets(Integer deptId) { |
| | | if (deptId == null || deptId == -1) { |
| | | deptId = null; |
| | | } |
| | | public List<Department> gets(List<Integer> deptId) { |
| | | return departmentMapper.gets(deptId); |
| | | } |
| | | |
| | |
| | | // 标识部门管理员 |
| | | userMapper.updateDeptAdmin(form.getAdminIds(), DeptAdminEnum.YES.getValue(), entity.getId()); |
| | | } |
| | | // 修改被选择的用户为部门管理员 |
| | | userMapper.updateUserDeptAdmin(form); |
| | | // 修改没被选择的用户并且不是别的部门管理员的用户角色为1 |
| | | userMapper.cancelUserDeptAdmin(form); |
| | | } |
| | | } |