修改
This commit is contained in:
@@ -1162,6 +1162,27 @@ public class DeviceServiceImpl implements DeviceService, ApplicationAutoInitial
|
||||
standardInspectSiteDeviceDriver.setBatch(batch);
|
||||
device.setMaterial_type(material_type);
|
||||
device.setBatch(batch);
|
||||
device.setModel(model);
|
||||
device.setProcess(process);
|
||||
device.setWeight(weight);
|
||||
device.setQc_status(qc_status);
|
||||
device.setDate(date);
|
||||
device.setOperation_by(operation_by);
|
||||
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.setMaterial_type(material_type);
|
||||
obj.setBatch(batch);
|
||||
obj.setModel(model);
|
||||
obj.setProcess(process);
|
||||
obj.setWeight(weight);
|
||||
obj.setQc_status(qc_status);
|
||||
obj.setDate(date);
|
||||
obj.setOperation_by(operation_by);
|
||||
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);
|
||||
|
||||
Reference in New Issue
Block a user