From 68e3bb82d2246ea3427bbbd420556b893894b231 Mon Sep 17 00:00:00 2001
From: zouyu <2723363702@qq.com>
Date: 星期五, 27 二月 2026 09:29:34 +0800
Subject: [PATCH] 设备核查计划:核查负责人回显为空问题修复

---
 inspect-server/src/main/java/com/ruoyi/inspect/service/impl/FinishProductSpotCheckServiceImpl.java |    8 +++-----
 1 files changed, 3 insertions(+), 5 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 8d7d884..0b58504 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
@@ -16,7 +16,7 @@
 import com.deepoove.poi.data.Pictures;
 import com.ruoyi.common.core.domain.Result;
 import com.ruoyi.common.utils.DateImageUtil;
-import com.ruoyi.common.utils.IfsApiUtils;
+import com.ruoyi.common.utils.api.IfsApiUtils;
 import com.ruoyi.common.utils.QueryWrappers;
 import com.ruoyi.framework.exception.ErrorException;
 import com.ruoyi.inspect.dto.IfsStockQueryDTO;
@@ -77,7 +77,6 @@
 
     public Result getIfsStockReport(IfsStockQueryDTO ifsStockQueryDTO) {
         JSONObject jresult = new JSONObject();
-        jresult.put("total", 0);
         jresult.put("count", 0);
         jresult.put("data", new JSONArray());
         JSONObject jsonObject = new JSONObject();
@@ -92,9 +91,6 @@
             }
             //鑾峰彇鎬绘暟閲�
             int count = data.getIntValue("TOTAL_RECORD");
-            //鑾峰彇椤垫暟
-            int total = (int) Math.ceil((double) count / (double) ifsStockQueryDTO.getLimit());
-            jresult.put("total", total);
             jresult.put("count", count);
             jresult.put("data", array);
         }
@@ -476,6 +472,7 @@
             template.write(os);
             os.flush();
             os.close();
+            inputStream.close();
         } catch (Exception e) {
             e.printStackTrace();
             throw new RuntimeException("瀵煎嚭澶辫触");
@@ -669,6 +666,7 @@
             template.write(os);
             os.flush();
             os.close();
+            inputStream.close();
         } catch (IOException e) {
             throw new RuntimeException(e);
         }

--
Gitblit v1.9.3