From 2878a6fd4ab9266faf2d9751cc8efeae1237bd94 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E6=B1=9F=E7=8E=AE?= Date: Thu, 16 Nov 2023 14:16:24 +0800 Subject: [PATCH] Update YkbkHandServiceImpl.java --- .../aykbk/service/impl/YkbkHandServiceImpl.java | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/hd/nladmin-system/src/main/java/org/nl/hand/aykbk/service/impl/YkbkHandServiceImpl.java b/hd/nladmin-system/src/main/java/org/nl/hand/aykbk/service/impl/YkbkHandServiceImpl.java index 5ee0e50..8f9efaf 100644 --- a/hd/nladmin-system/src/main/java/org/nl/hand/aykbk/service/impl/YkbkHandServiceImpl.java +++ b/hd/nladmin-system/src/main/java/org/nl/hand/aykbk/service/impl/YkbkHandServiceImpl.java @@ -410,6 +410,13 @@ public class YkbkHandServiceImpl implements YkbkHandService { standardInspectSiteDevicedriver.setBatch(batch); device.setBatch(batch); } + if (device.getDeviceDriver() instanceof StandardOrdinarySiteDeviceDriver) { + StandardOrdinarySiteDeviceDriver driver = (StandardOrdinarySiteDeviceDriver) device.getDeviceDriver(); + driver.setMaterial(material_type); + device.setMaterial_type(material_type); + driver.setBatch(batch); + device.setBatch(batch); + } //伊科拜克默认物料 if (device.getDeviceDriver() instanceof YkbkSpecialDeviceDriver) { ykbkSpecialDeviceDriver = (YkbkSpecialDeviceDriver) device.getDeviceDriver(); @@ -430,6 +437,14 @@ public class YkbkHandServiceImpl implements YkbkHandService { device.setMaterial_type(""); device.setBatch(""); } + + if (device.getDeviceDriver() instanceof StandardOrdinarySiteDeviceDriver) { + StandardOrdinarySiteDeviceDriver driver = (StandardOrdinarySiteDeviceDriver) device.getDeviceDriver(); + driver.setMaterial(""); + device.setMaterial_type(""); + driver.setBatch(""); + device.setBatch(""); + } //伊科拜克默认物料 if (device.getDeviceDriver() instanceof YkbkSpecialDeviceDriver) { ykbkSpecialDeviceDriver = (YkbkSpecialDeviceDriver) device.getDeviceDriver();