liusheng
2026-01-26 4141aff4286fe78bff88f037b3935b2754e38ada
ruoyi-system/src/main/java/com/ruoyi/system/service/impl/SysUserServiceImpl.java
@@ -564,7 +564,7 @@
//        }
        if (!CollectionUtils.isEmpty(user.getDeptCodes())) {
            for (String deptCode : user.getDeptCodes()) {
                SysDept sysDept = sysDeptMapper.selectDeptByCode(user.getOrgid(), user.getCampusid(), deptCode);
                SysDept sysDept = sysDeptMapper.selectDeptByCode(user.getOrgid(), deptCode);
                if (ObjectUtils.isEmpty(sysDept)) {
                    continue;
                }
@@ -590,7 +590,7 @@
        }
        if (!CollectionUtils.isEmpty(user.getWardCodes())) {
            for (String wardCode : user.getWardCodes()) {
                SysDept sysDept = sysDeptMapper.selectDeptByCode(user.getOrgid(), user.getCampusid(), wardCode);
                SysDept sysDept = sysDeptMapper.selectDeptByCode(user.getOrgid(), wardCode);
                if (ObjectUtils.isEmpty(sysDept)) {
                    continue;
                }
@@ -673,7 +673,7 @@
//        }
        if (!CollectionUtils.isEmpty(user.getDeptCodes())) {
            for (String deptCode : user.getDeptCodes()) {
                SysDept sysDept = sysDeptMapper.selectDeptByCode(user.getOrgid(), user.getCampusid(), deptCode);
                SysDept sysDept = sysDeptMapper.selectDeptByCode(user.getOrgid(), deptCode);
                if (ObjectUtils.isEmpty(sysDept)) {
                    continue;
                }
@@ -699,7 +699,7 @@
        }
        if (!CollectionUtils.isEmpty(user.getWardCodes())) {
            for (String wardCode : user.getWardCodes()) {
                SysDept sysDept = sysDeptMapper.selectDeptByCode(user.getOrgid(), user.getCampusid(), wardCode);
                SysDept sysDept = sysDeptMapper.selectDeptByCode(user.getOrgid(), wardCode);
                if (ObjectUtils.isEmpty(sysDept)) {
                    continue;
                }