|
|
@@ -543,20 +543,25 @@ public class SysUserServiceImpl implements ISysUserService {
|
|
543
|
543
|
}
|
|
544
|
544
|
Collections.reverse(deptList);
|
|
545
|
545
|
SysDept teams = deptList.stream().filter(x -> StrUtil.equals(DeptType.TEAMS.getCode(), x.getDeptType())).findFirst().orElse(new SysDept());
|
|
546
|
|
- SysDept department = deptList.stream().filter(x -> StrUtil.equals(DeptType.DEPARTMENT.getCode(), x.getDeptType())).findFirst().orElse(new SysDept());
|
|
|
546
|
+ SysDept department = deptList.stream().filter(x -> StrUtil.equals(DeptType.MANAGER.getCode(), x.getDeptType())).findFirst().orElse(new SysDept());
|
|
|
547
|
+ SysDept brigade = deptList.stream().filter(x -> StrUtil.equals(DeptType.BRIGADE.getCode(), x.getDeptType())).findFirst().orElse(new SysDept());
|
|
547
|
548
|
SysDept station = deptList.stream().filter(x -> StrUtil.equals(DeptType.STATION.getCode(), x.getDeptType())).findFirst().orElse(new SysDept());
|
|
548
|
549
|
userInfo.setTeamsId(teams.getDeptId());
|
|
549
|
550
|
userInfo.setTeamsName(teams.getDeptName());
|
|
550
|
551
|
userInfo.setDepartmentId(department.getDeptId());
|
|
551
|
552
|
userInfo.setDepartmentName(department.getDeptName());
|
|
|
553
|
+ userInfo.setBrigadeId(brigade.getDeptId());
|
|
|
554
|
+ userInfo.setBrigadeName(brigade.getDeptName());
|
|
552
|
555
|
userInfo.setStationId(station.getDeptId());
|
|
553
|
556
|
userInfo.setStationName(station.getDeptName());
|
|
554
|
557
|
|
|
555
|
558
|
Long deptId;
|
|
556
|
559
|
if (StrUtil.equals(DeptType.TEAMS.getCode(), deptType)) {
|
|
557
|
560
|
deptId = userInfo.getTeamsId();
|
|
558
|
|
- } else if (StrUtil.equals(DeptType.DEPARTMENT.getCode(), deptType)) {
|
|
|
561
|
+ } else if (StrUtil.equals(DeptType.MANAGER.getCode(), deptType)) {
|
|
559
|
562
|
deptId = userInfo.getDepartmentId();
|
|
|
563
|
+ } else if (StrUtil.equals(DeptType.BRIGADE.getCode(), deptType)) {
|
|
|
564
|
+ deptId = userInfo.getBrigadeId();
|
|
560
|
565
|
} else if (StrUtil.equals(DeptType.STATION.getCode(), deptType)) {
|
|
561
|
566
|
deptId = userInfo.getStationId();
|
|
562
|
567
|
} else {
|
|
|
@@ -607,7 +612,7 @@ public class SysUserServiceImpl implements ISysUserService {
|
|
607
|
612
|
public List<SysUser> selectUserListByRoleKey(List<String> roleKeyList) {
|
|
608
|
613
|
return userMapper.selectUserListByRoleKey(roleKeyList);
|
|
609
|
614
|
}
|
|
610
|
|
-
|
|
|
615
|
+
|
|
611
|
616
|
@Override
|
|
612
|
617
|
public List<SysUser> selectUserListByRoleKeyAndDeptId(List<String> roleKeyList, Long stationId) {
|
|
613
|
618
|
return userMapper.selectUserListByRoleKeyAndDeptId(roleKeyList, stationId);
|