吉安感知网项目-后端
linwei
2026-02-04 a8a8631285d51728e8669b63143e833603b42ab7
工单权限优化
1 files modified
13 ■■■■■ changed files
drone-ops/drone-resource/src/main/java/org/sxkj/resource/service/impl/AttachServiceImpl.java 13 ●●●●● patch | view | raw | blame | history
drone-ops/drone-resource/src/main/java/org/sxkj/resource/service/impl/AttachServiceImpl.java
@@ -116,9 +116,11 @@
    @Override
    public IPage<AttachVO> selectAttachPage(IPage<AttachVO> page, AttachPageParam attach) {
        // 创建部门
        List<Long> deptList = SysCache.getDeptChildIds(Long.valueOf(AuthUtil.getDeptId()));
        attach.setDeptList(deptList);
          List<AttachVO> attachVOS   = baseMapper.selectAttachPage(page, attach);
        if (!AuthUtil.isAdministrator()) {
            List<Long> deptList = SysCache.getDeptChildIds(Long.valueOf(AuthUtil.getDeptId()));
            attach.setDeptList(deptList);
        }
        List<AttachVO> attachVOS = baseMapper.selectAttachPage(page, attach);
        return page.setRecords(attachVOS);
    }
@@ -783,7 +785,8 @@
    /**
     * 下载附件
     * @param param 下载参数
     *
     * @param param        下载参数
     * @param outputStream 输出流
     * @return
     * @throws IOException
@@ -878,7 +881,7 @@
        } catch (Exception e) {
            log.error("创建zip文件失败", e);
            return false;
        }finally {
        } finally {
            if (outputStream != null) {
                try {
                    outputStream.flush();