|
|
@ -1094,10 +1094,54 @@ public class DeviceServiceImpl implements DeviceService, ApplicationAutoInitial |
|
|
|
standardEmptyPalletSiteDeviceDriver.setContainer(vehicle_code); |
|
|
|
} else if (device.getDeviceDriver() instanceof StandardInspectSiteDeviceDriver) { |
|
|
|
standardInspectSiteDeviceDriver = (StandardInspectSiteDeviceDriver) device.getDeviceDriver(); |
|
|
|
standardInspectSiteDeviceDriver.setMaterial(material_type); |
|
|
|
standardInspectSiteDeviceDriver.setBatch(batch); |
|
|
|
device.setMaterial_type(material_type); |
|
|
|
device.setBatch(batch); |
|
|
|
if (StrUtil.isNotEmpty(material_type)) { |
|
|
|
standardInspectSiteDeviceDriver.setMaterial(material_type); |
|
|
|
device.setMaterial_type(material_type); |
|
|
|
} else { |
|
|
|
standardInspectSiteDeviceDriver.setMaterial(""); |
|
|
|
device.setMaterial_type(""); |
|
|
|
} |
|
|
|
if (StrUtil.isNotEmpty(quantity)) { |
|
|
|
standardInspectSiteDeviceDriver.setQty(quantity); |
|
|
|
device.setQuantity(quantity); |
|
|
|
} else { |
|
|
|
standardInspectSiteDeviceDriver.setQty(""); |
|
|
|
device.setQuantity(""); |
|
|
|
} |
|
|
|
if (StrUtil.isNotEmpty(remark)) { |
|
|
|
standardInspectSiteDeviceDriver.setRemark(remark); |
|
|
|
device.setRemark(remark); |
|
|
|
} else { |
|
|
|
standardInspectSiteDeviceDriver.setRemark(""); |
|
|
|
device.setRemark(""); |
|
|
|
} |
|
|
|
if (StrUtil.isNotEmpty(batch)) { |
|
|
|
standardInspectSiteDeviceDriver.setBatch(batch); |
|
|
|
device.setBatch(batch); |
|
|
|
} else { |
|
|
|
standardInspectSiteDeviceDriver.setBatch(""); |
|
|
|
device.setBatch(""); |
|
|
|
} |
|
|
|
if (StrUtil.isNotEmpty(islock)) { |
|
|
|
standardInspectSiteDeviceDriver.setIslock(Boolean.valueOf(islock)); |
|
|
|
device.setIslock(islock); |
|
|
|
} |
|
|
|
WQLObject runpointwo = WQLObject.getWQLObject("acs_device_runpoint"); |
|
|
|
JSONObject json = runpointwo.query("device_code ='" + device_code + "'").uniqueResult(0); |
|
|
|
if (!ObjectUtil.isEmpty(json)) { |
|
|
|
DeviceRunpointDto obj = (DeviceRunpointDto) JSONObject.toBean(json, DeviceRunpointDto.class); |
|
|
|
obj.setHasgoods(hasGoodStatus); |
|
|
|
obj.setMaterial_type(material_type); |
|
|
|
obj.setBatch(batch); |
|
|
|
device.setHas_goods(Integer.parseInt(hasGoodStatus)); |
|
|
|
device.setMaterial_type(material_type); |
|
|
|
device.setRemark(remark); |
|
|
|
device.setQuantity(quantity); |
|
|
|
device.setBatch(batch); |
|
|
|
device.setIslock(islock); |
|
|
|
JSONObject updatejson = JSONObject.fromObject(obj); |
|
|
|
runpointwo.update(updatejson, "device_code = '" + device_code + "'"); |
|
|
|
} |
|
|
|
} else if (device.getDeviceDriver() instanceof YkbkSpecialDeviceDriver) { |
|
|
|
ykbkSpecialDeviceDriver = (YkbkSpecialDeviceDriver) device.getDeviceDriver(); |
|
|
|
ykbkSpecialDeviceDriver.setMaterial(material_type); |
|
|
|