智慧保安后台管理-外网
Administrator
2022-06-14 38485e75615070ce30fec15d0f88c3af190c901c
保安员导入修改
1 files modified
6 ■■■■■ changed files
src/main/java/org/springblade/modules/system/service/impl/UserServiceImpl.java 6 ●●●●● patch | view | raw | blame | history
src/main/java/org/springblade/modules/system/service/impl/UserServiceImpl.java
@@ -1275,8 +1275,10 @@
            if (null!=deptIds && !deptIds.equals("")) {
                if (null != deptId && !deptId.equals("")) {
                    //管理员不分单位导入
                    if (!deptId.equals(deptIds) && !deptId.equals("1123598813738675201")) {
                        throw new ServiceException("导入失败!不能导入不是本公司的保安员数据!");
                    if (!deptId.equals(deptIds)) {
                        if(!deptId.equals("1123598813738675201")) {
                            throw new ServiceException("导入失败!不能导入不是本公司的保安员数据!");
                        }
                    }
                }
                user.setDeptId(deptIds);