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();