From 81e151f26b6852416ae0b7679d081900c9e64ace Mon Sep 17 00:00:00 2001
From: Fancy <Fancy.fx@outlook.com>
Date: 星期三, 17 七月 2024 14:51:15 +0800
Subject: [PATCH] status and result change
---
pms-parent/pms-web-report/src/main/java/com/dy/pmsReport/deviceReport/DeviceReportSv.java | 25 +++++++++----------------
1 files changed, 9 insertions(+), 16 deletions(-)
diff --git a/pms-parent/pms-web-report/src/main/java/com/dy/pmsReport/deviceReport/DeviceReportSv.java b/pms-parent/pms-web-report/src/main/java/com/dy/pmsReport/deviceReport/DeviceReportSv.java
index ae28116..177494d 100644
--- a/pms-parent/pms-web-report/src/main/java/com/dy/pmsReport/deviceReport/DeviceReportSv.java
+++ b/pms-parent/pms-web-report/src/main/java/com/dy/pmsReport/deviceReport/DeviceReportSv.java
@@ -2,9 +2,7 @@
import com.alibaba.excel.util.StringUtils;
import com.dy.pmsGlobal.daoSta.*;
-import com.dy.pmsGlobal.pojoSta.StaDeviceLast;
-import com.dy.pmsGlobal.pojoSta.StaDeviceLife;
-import com.dy.pmsGlobal.pojoSta.StaDeviceProductionLog;
+import com.dy.pmsGlobal.pojoSta.*;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
@@ -58,22 +56,17 @@
Map<String, Object> deviceInfo =new HashMap<>();
deviceInfo.put("deviceInfo", deviceLast);
//鏌ヨ璁惧鏃ュ織
- List<StaDeviceProductionLog> log = deviceProductionLogDao.selectByEquipNo(deviceNo);
+ List<StaDeviceProductionLog> log = deviceProductionLogDao.selectByDeviceNo(deviceNo);
deviceInfo.put("deviceLog", log);
// 鏌ヨ璁惧鐢熷懡鍛ㄦ湡
- List<StaDeviceLife> deviceLife = deviceLifeDao.selectByEquipNo(deviceNo);
- deviceInfo.put("deviceLife", log);
+ List<StaDeviceLife> deviceLife = deviceLifeDao.selectByDeviceNo(deviceNo);
+ deviceInfo.put("deviceLife", deviceLife);
// 鏌ヨ璁惧缁翠慨淇℃伅
- /*StaRepairInfo repairInfo = repairInfoDao.selectByDeviceNo(deviceNo);
-
- if (preRecord.getStatus() == 1) {
- if (repairInfo == null) {
- return null;
- }
- // 鏌ヨ璁惧缁翠慨淇℃伅
- StaWipSnEx wipSnEx = wipSnExDao.selectByDeviceNo();
- }
- return DeviceReportDao.getDeviceInfo(deviceNo);*/
+ List<StaRepairInfo> repairInfo = repairInfoDao.selectByDeviceNo(deviceNo);
+ deviceInfo.put("deviceRepair", repairInfo);
+ // 鏌ヨ璁惧闄勪欢淇℃伅
+ List<StaWipSnEx> wipSnEx = wipSnExDao.selectByDeviceNo(deviceNo);
+ deviceInfo.put("deviceAttach", wipSnEx);
return deviceInfo;
}
}
--
Gitblit v1.8.0