From 10785ed3389ab40c0b647d7e9783dd8045bf2b67 Mon Sep 17 00:00:00 2001
From: qushaowei <qushaowei@163.com>
Date: 星期一, 26 五月 2025 14:43:14 +0800
Subject: [PATCH] 点检报表 数据格式修改

---
 lxzn-module-eam/src/main/java/org/jeecg/modules/eam/controller/InspectionOrderController.java |   24 ++++++++++++++----------
 1 files changed, 14 insertions(+), 10 deletions(-)

diff --git a/lxzn-module-eam/src/main/java/org/jeecg/modules/eam/controller/InspectionOrderController.java b/lxzn-module-eam/src/main/java/org/jeecg/modules/eam/controller/InspectionOrderController.java
index 17a9be7..f66c7e9 100644
--- a/lxzn-module-eam/src/main/java/org/jeecg/modules/eam/controller/InspectionOrderController.java
+++ b/lxzn-module-eam/src/main/java/org/jeecg/modules/eam/controller/InspectionOrderController.java
@@ -34,6 +34,7 @@
 //import org.jeecg.modules.system.entity.SysUploadRela;
 //import org.jeecg.modules.system.service.IUploadRelaService;
 //import org.jeecg.modules.system.service.IUploadService;
+import org.jeecg.modules.eam.vo.InspectionResultVo;
 import org.jeecg.modules.eam.vo.SysFileNameVo;
 import org.jeecgframework.poi.excel.ExcelImportUtil;
 import org.jeecgframework.poi.excel.def.NormalExcelConstants;
@@ -737,7 +738,7 @@
 			 String detectionStandard = (String)map.get("detectionStandard");
 			 List<Map<String, Object>> record = inspectionOrderService.findDayInspectionStandardProject(equipmentNum,name, detectionStandard,dataTime);
 
-			 List<Map<String, Object>> list = new ArrayList<>();
+			 List<InspectionResultVo> list = new ArrayList<>();
 
 			 for (Map<String, Object> r : record) {
 				 if(maps.size()>0){
@@ -745,9 +746,10 @@
 					 for (Map<String, Object> map1 : maps) {
 						 if(map1.containsValue(r.get("name")) && map1.containsValue(r.get("detectionStandard"))){
 //							 map1.put(r.get("dayTime").toString(),r.get("insResult"));
-							 HashMap<String, Object> hashMap1 = new HashMap<>();
-							 hashMap1.put(r.get("dayTime").toString(),r.get("insResult"));
-							 list.add(hashMap1);
+							 InspectionResultVo inspectionResultVo = new InspectionResultVo();
+							 inspectionResultVo.setDayTime((String)r.get("dayTime"));
+							 inspectionResultVo.setInsResult((String)r.get("detectionStandard"));
+							 list.add(inspectionResultVo);
 							 flag = true;
 						 }
 					 }
@@ -757,9 +759,10 @@
 						 hashMap.put("detectionStandard",r.get("detectionStandard"));
 
 //						 hashMap.put(r.get("dayTime").toString(),r.get("insResult"));
-						 HashMap<String, Object> hashMap1 = new HashMap<>();
-						 hashMap1.put(r.get("dayTime").toString(),r.get("insResult"));
-						 list.add(hashMap1);
+						 InspectionResultVo inspectionResultVo = new InspectionResultVo();
+						 inspectionResultVo.setDayTime((String)r.get("dayTime"));
+						 inspectionResultVo.setInsResult((String)r.get("detectionStandard"));
+						 list.add(inspectionResultVo);
 						 maps.add(hashMap);
 					 }
 				 }else{
@@ -768,9 +771,10 @@
 					 hashMap.put("detectionStandard",r.get("detectionStandard"));
 //					 hashMap.put(r.get("dayTime").toString(),r.get("insResult"));
 
-					 HashMap<String, Object> hashMap1 = new HashMap<>();
-					 hashMap1.put(r.get("dayTime").toString(),r.get("insResult"));
-					 list.add(hashMap1);
+					 InspectionResultVo inspectionResultVo = new InspectionResultVo();
+					 inspectionResultVo.setDayTime((String)r.get("dayTime"));
+					 inspectionResultVo.setInsResult((String)r.get("detectionStandard"));
+					 list.add(inspectionResultVo);
 					 hashMap.put("dataList",list);
 
 					 maps.add(hashMap);

--
Gitblit v1.9.3