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 | 6 ++----
1 files changed, 2 insertions(+), 4 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..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
@@ -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