From c80a342eacd6b639c486eb47afdf04984d54183e Mon Sep 17 00:00:00 2001
From: zouyu <2723363702@qq.com>
Date: 星期二, 03 二月 2026 13:25:13 +0800
Subject: [PATCH] 不合格管理:重新提交oa功能调整3
---
inspect-server/src/main/java/com/ruoyi/inspect/service/impl/FinishProductSpotCheckServiceImpl.java | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/inspect-server/src/main/java/com/ruoyi/inspect/service/impl/FinishProductSpotCheckServiceImpl.java b/inspect-server/src/main/java/com/ruoyi/inspect/service/impl/FinishProductSpotCheckServiceImpl.java
index 3ac468f..d9ffc28 100644
--- a/inspect-server/src/main/java/com/ruoyi/inspect/service/impl/FinishProductSpotCheckServiceImpl.java
+++ b/inspect-server/src/main/java/com/ruoyi/inspect/service/impl/FinishProductSpotCheckServiceImpl.java
@@ -15,6 +15,7 @@
import com.deepoove.poi.config.ConfigureBuilder;
import com.deepoove.poi.data.Pictures;
import com.ruoyi.common.core.domain.Result;
+import com.ruoyi.common.enums.ContractType;
import com.ruoyi.common.utils.DateImageUtil;
import com.ruoyi.common.utils.api.IfsApiUtils;
import com.ruoyi.common.utils.QueryWrappers;
@@ -82,7 +83,7 @@
jresult.put("data", new JSONArray());
JSONObject jsonObject = new JSONObject();
generateIfsStockQueryParams(jsonObject, ifsStockQueryDTO, ifsStockQueryDTO.getPage(), ifsStockQueryDTO.getLimit());
- Result result = ifsApiUtils.getIfsStock(jsonObject.toJSONString());
+ Result result = ifsApiUtils.getIfsStock(ContractType.ZTNS.getValue(),jsonObject.toJSONString());
if (result.getCode() == 200) {
JSONObject data = (JSONObject) JSON.toJSON(result.getData());
JSONArray array = new JSONArray();
@@ -476,6 +477,7 @@
template.write(os);
os.flush();
os.close();
+ inputStream.close();
} catch (Exception e) {
e.printStackTrace();
throw new RuntimeException("瀵煎嚭澶辫触");
@@ -669,6 +671,7 @@
template.write(os);
os.flush();
os.close();
+ inputStream.close();
} catch (IOException e) {
throw new RuntimeException(e);
}
--
Gitblit v1.9.3