jiazx0107
2025-11-30 87e5654c26476fabd1156023350d7726092af8c1
fzzy-igdss-core/src/main/java/com/fzzy/igds/service/DeviceSerService.java
@@ -35,6 +35,15 @@
     *
     * @return
     */
    public List<DeviceSer> getAllSerByCompanyId(String companyId) {
        return deviceSerRepository.getAllSerByCompanyId(companyId);
    }
    /**
     * JPA 查询分机列表
     *
     * @return
     */
    public List<DeviceSer> getAllSer() {
        SysUser user = ContextUtil.getLoginUser();
        SysDept userDept = iSysDeptService.selectDeptById(user.getDeptId());
@@ -43,7 +52,6 @@
        }else {
            return deviceSerRepository.getDataByParentId(user.getDeptId() + "%");
        }
    }
    /**
@@ -172,7 +180,7 @@
        if (StringUtils.isEmpty(companyId)) {
            companyId = ContextUtil.getCompanyId();
        }
        List<DeviceSer> list = this.getAllSer();
        List<DeviceSer> list = this.getAllSerByCompanyId(companyId);
        this.setCacheSer(list, companyId);
    }