吉安感知网项目-后端
rain
2026-02-09 66bfbdb9251c22ffa2b5f05595a76a3547a2f5eb
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();