From e39c7ba23d87c222960526f6ee90b38b2f73c2b1 Mon Sep 17 00:00:00 2001
From: liding <756868258@qq.com>
Date: 星期四, 27 八月 2026 15:40:10 +0800
Subject: [PATCH] feat: 移除1.MQTT对接 2.外部人事系统 3.MES 推送 4.OA提交参数
---
inspect-server/src/main/java/com/ruoyi/inspect/service/impl/InsUnqualifiedHandlerFileServiceImpl.java | 35 -----------------------------------
1 files changed, 0 insertions(+), 35 deletions(-)
diff --git a/inspect-server/src/main/java/com/ruoyi/inspect/service/impl/InsUnqualifiedHandlerFileServiceImpl.java b/inspect-server/src/main/java/com/ruoyi/inspect/service/impl/InsUnqualifiedHandlerFileServiceImpl.java
index 28236fa..2ee87f4 100644
--- a/inspect-server/src/main/java/com/ruoyi/inspect/service/impl/InsUnqualifiedHandlerFileServiceImpl.java
+++ b/inspect-server/src/main/java/com/ruoyi/inspect/service/impl/InsUnqualifiedHandlerFileServiceImpl.java
@@ -1,6 +1,5 @@
package com.ruoyi.inspect.service.impl;
-import cn.hutool.core.io.IoUtil;
import cn.hutool.core.lang.UUID;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.framework.exception.ErrorException;
@@ -12,12 +11,7 @@
import org.springframework.stereotype.Service;
import org.springframework.web.multipart.MultipartFile;
-import javax.servlet.http.HttpServletResponse;
import java.io.File;
-import java.io.IOException;
-import java.net.URLEncoder;
-import java.nio.charset.StandardCharsets;
-import java.nio.file.Files;
/**
* @author 27233
@@ -72,35 +66,6 @@
e.printStackTrace();
log.error("闄勪欢涓婁紶閿欒");
throw new ErrorException(e.getMessage());
- }
- }
-
- @Override
- public void downloadOAFile(Long handlerFileId, HttpServletResponse response) {
- response.reset();
- String fileName;
- try {
- //鏌ヨ涓婁紶闄勪欢璁板綍
- InsUnqualifiedHandlerFile file = baseMapper.selectById(handlerFileId);
- if (file != null){
- fileName = file.getFileName();
- fileName = URLEncoder.encode(fileName, StandardCharsets.UTF_8.toString());
- response.setContentType("application/vnd.ms-excel");
- response.setHeader("Cache-Control", "no-cache");
- response.setHeader("Content-Disposition", "attachment;filename=" + fileName);
- response.setHeader("Access-Control-Expose-Headers", "Content-Disposition");
- //鑾峰彇鏂囦欢澶硅矾寰�
- String path = file.getType()==1?imgUrl:wordUrl;
- //鏂囦欢瀹屾暣璺緞
- String fullPath = path + file.getFileUrl();
- //鍒ゆ柇鏂囦欢鏄惁瀛樺湪
- File fullFile = new File(fullPath);
- if(fullFile.exists()){
- IoUtil.copy(Files.newInputStream(fullFile.toPath()),response.getOutputStream());
- }
- }
- } catch (IOException e) {
- throw new RuntimeException(e);
}
}
--
Gitblit v1.9.3