任务完成后修改起点终点的状态

This commit is contained in:
张江玮
2022-12-06 15:41:34 +08:00
parent 52c6c43e53
commit aa67abac7b
2 changed files with 24 additions and 0 deletions

View File

@@ -1010,6 +1010,12 @@ public class DeviceServiceImpl implements DeviceService, ApplicationAutoInitial
device.setQuantity(quantity);
device.setBatch(batch);
device.setIslock(islock);
device.setModel(model);
device.setProcess(process);
device.setWeight(weight);
device.setQc_status(qc_status);
device.setDate(date);
device.setOperation_by(operation_by);
JSONObject updatejson = JSONObject.fromObject(obj);
runpointwo.update(updatejson, "device_code = '" + device_code + "'");
}
@@ -1034,6 +1040,12 @@ public class DeviceServiceImpl implements DeviceService, ApplicationAutoInitial
device.setMaterial_type(material_type);
device.setBatch(batch);
device.setIslock(islock);
device.setModel(model);
device.setProcess(process);
device.setWeight(weight);
device.setQc_status(qc_status);
device.setDate(date);
device.setOperation_by(operation_by);
JSONObject updatejson = JSONObject.fromObject(obj);
runpointwo.update(updatejson, "device_code = '" + device_code + "'");
}

View File

@@ -675,6 +675,12 @@ public class InstructionServiceImpl implements InstructionService, ApplicationAu
jo1.put("batch", startdevice.getBatch());
jo1.put("vehicle_code", entity.getVehicle_code());
jo1.put("islock", "false");
jo1.put("model", startdevice.getModel());
jo1.put("process", startdevice.getProcess());
jo1.put("weight", startdevice.getWeight());
jo1.put("qc_status", startdevice.getQc_status());
jo1.put("date", startdevice.getDate());
jo1.put("operation_by", startdevice.getOperation_by());
deviceService.changeDeviceStatus(jo1);
// 如果是无光电的设备 指令完成变更起点、终点状态
JSONObject jo = new JSONObject();
@@ -685,6 +691,12 @@ public class InstructionServiceImpl implements InstructionService, ApplicationAu
jo.put("remark", "");
jo.put("batch", "");
jo.put("islock", "false");
jo.put("model", "");
jo.put("process", "");
jo.put("weight", "");
jo.put("qc_status", "");
jo.put("date", "");
jo.put("operation_by", "");
deviceService.changeDeviceStatus(jo);
JSONObject json = JSONObject.fromObject(entity);