Browse Source

Update YkbkHandServiceImpl.java

master
张江玮 1 year ago
parent
commit
2878a6fd4a
  1. 15
      hd/nladmin-system/src/main/java/org/nl/hand/aykbk/service/impl/YkbkHandServiceImpl.java

15
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); standardInspectSiteDevicedriver.setBatch(batch);
device.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) { if (device.getDeviceDriver() instanceof YkbkSpecialDeviceDriver) {
ykbkSpecialDeviceDriver = (YkbkSpecialDeviceDriver) device.getDeviceDriver(); ykbkSpecialDeviceDriver = (YkbkSpecialDeviceDriver) device.getDeviceDriver();
@ -430,6 +437,14 @@ public class YkbkHandServiceImpl implements YkbkHandService {
device.setMaterial_type(""); device.setMaterial_type("");
device.setBatch(""); 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) { if (device.getDeviceDriver() instanceof YkbkSpecialDeviceDriver) {
ykbkSpecialDeviceDriver = (YkbkSpecialDeviceDriver) device.getDeviceDriver(); ykbkSpecialDeviceDriver = (YkbkSpecialDeviceDriver) device.getDeviceDriver();

Loading…
Cancel
Save