From 1d66b4f88c795ea55bdd72b7b245a3bcce1237c0 Mon Sep 17 00:00:00 2001
From: Fancy <Fancy.fx@outlook.com>
Date: 星期二, 09 七月 2024 16:57:29 +0800
Subject: [PATCH] change deviceNO to array

---
 pms-parent/pms-web-station/src/main/java/com/dy/pmsStation/assemblyStep/AssemblyStepSv.java |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/pms-parent/pms-web-station/src/main/java/com/dy/pmsStation/assemblyStep/AssemblyStepSv.java b/pms-parent/pms-web-station/src/main/java/com/dy/pmsStation/assemblyStep/AssemblyStepSv.java
index f7d2c49..cf7956c 100644
--- a/pms-parent/pms-web-station/src/main/java/com/dy/pmsStation/assemblyStep/AssemblyStepSv.java
+++ b/pms-parent/pms-web-station/src/main/java/com/dy/pmsStation/assemblyStep/AssemblyStepSv.java
@@ -131,7 +131,7 @@
         }
         PrAssemblyPlan plan = assemblyPlanDao.selectByPrimaryKey(workLast.getPlanId());
         // 楠岃瘉骞跺鐞嗚澶囧彿鍜岀墿鏂欏彿
-        Set<String> deviceSet = new HashSet<>(Arrays.asList(params.deviceNo.split(",")));
+        Set<String> deviceSet = new HashSet<>(Arrays.asList(params.deviceNo));
         // 鍒嗙被璁惧鍙峰拰鐗╂枡鍙�
         List<String> deviceList = new ArrayList<>();
         List<String> materialList = new ArrayList<>();
@@ -266,17 +266,17 @@
         if (workLast == null) {
             throw new RuntimeException("绯荤粺涓病鏈夎鏉$櫥褰曚俊鎭�");
         }
-        StaDeviceLast preDeviceRecord = deviceLastDao.selectByDeviceNo(vo.deviceNo);
+        StaDeviceLast preDeviceRecord = deviceLastDao.selectByDeviceNo(vo.deviceNo[0]);
         StaRepairInfo repairInfo = new StaRepairInfo();
         repairInfo.workId = workId;
-        repairInfo.deviceNo = vo.deviceNo;
+        repairInfo.deviceNo = vo.deviceNo[0];
         repairInfo.repairTime = new Date();
         repairInfo.repairBy = workLast.userId;
         repairInfo.repairReason = vo.errorMsg;
         repairInfo.fromNode = preDeviceRecord.currNode;
         repairInfoDao.insertSelective(repairInfo);
 
-        StaDeviceLast deviceLast = buildDeviceLast(vo, workLast, vo.deviceNo);
+        StaDeviceLast deviceLast = buildDeviceLast(vo, workLast, vo.deviceNo[0]);
 
         int count = deviceLast.id == null ? deviceLastDao.insertSelective(deviceLast) :
                 deviceLastDao.updateByPrimaryKeySelective(deviceLast);
@@ -295,7 +295,7 @@
             throw new RuntimeException("绯荤粺涓病鏈夎鏉$櫥褰曚俊鎭�");
         }
 
-        StaDeviceLast deviceLast = buildDeviceLast(vo, workLast, vo.deviceNo);
+        StaDeviceLast deviceLast = buildDeviceLast(vo, workLast, vo.deviceNo[0]);
         int count = deviceLast.id == null ? deviceLastDao.insertSelective(deviceLast) :
                 deviceLastDao.updateByPrimaryKeySelective(deviceLast);
         saveDeviceProductionLog(deviceLast);

--
Gitblit v1.8.0