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