|
@ -772,6 +772,21 @@ public class InstructionServiceImpl implements InstructionService, ApplicationAu |
|
|
// }
|
|
|
// }
|
|
|
|
|
|
|
|
|
// 如果是无光电的设备 指令完成变更起点、终点状态
|
|
|
// 如果是无光电的设备 指令完成变更起点、终点状态
|
|
|
|
|
|
Device start_device = appService.findDeviceByCode(dto.getStart_point_code()); |
|
|
|
|
|
JSONObject jo1 = new JSONObject(); |
|
|
|
|
|
jo1.put("device_code", dto.getNext_point_code()); |
|
|
|
|
|
jo1.put("hasGoodStatus", "1"); |
|
|
|
|
|
jo1.put("material_type", start_device.getMaterial_type()); |
|
|
|
|
|
jo1.put("batch", start_device.getBatch()); |
|
|
|
|
|
jo1.put("vehicle_code", dto.getVehicle_code()); |
|
|
|
|
|
jo1.put("model", start_device.getModel()); |
|
|
|
|
|
jo1.put("process", start_device.getProcess()); |
|
|
|
|
|
jo1.put("weight", start_device.getWeight()); |
|
|
|
|
|
jo1.put("qc_status", start_device.getQc_status()); |
|
|
|
|
|
jo1.put("date", start_device.getDate()); |
|
|
|
|
|
jo1.put("operation_by", start_device.getOperation_by()); |
|
|
|
|
|
deviceService.changeDeviceStatus(jo1); |
|
|
|
|
|
|
|
|
JSONObject jo = new JSONObject(); |
|
|
JSONObject jo = new JSONObject(); |
|
|
jo.put("device_code", dto.getStart_point_code()); |
|
|
jo.put("device_code", dto.getStart_point_code()); |
|
|
jo.put("hasGoodStatus", "0"); |
|
|
jo.put("hasGoodStatus", "0"); |
|
@ -785,21 +800,6 @@ public class InstructionServiceImpl implements InstructionService, ApplicationAu |
|
|
jo.put("operation_by", ""); |
|
|
jo.put("operation_by", ""); |
|
|
deviceService.changeDeviceStatus(jo); |
|
|
deviceService.changeDeviceStatus(jo); |
|
|
|
|
|
|
|
|
JSONObject jo1 = new JSONObject(); |
|
|
|
|
|
jo1.put("device_code", dto.getNext_point_code()); |
|
|
|
|
|
jo1.put("hasGoodStatus", "1"); |
|
|
|
|
|
jo1.put("material_type", dto.getMaterial()); |
|
|
|
|
|
jo1.put("batch", dto.getBatch()); |
|
|
|
|
|
jo1.put("vehicle_code", dto.getVehicle_code()); |
|
|
|
|
|
Device start_device = appService.findDeviceByCode(dto.getStart_point_code()); |
|
|
|
|
|
jo1.put("model", start_device.getModel()); |
|
|
|
|
|
jo1.put("process", start_device.getProcess()); |
|
|
|
|
|
jo1.put("weight", start_device.getWeight()); |
|
|
|
|
|
jo1.put("qc_status", start_device.getQc_status()); |
|
|
|
|
|
jo1.put("date", start_device.getDate()); |
|
|
|
|
|
jo1.put("operation_by", start_device.getOperation_by()); |
|
|
|
|
|
|
|
|
|
|
|
deviceService.changeDeviceStatus(jo1); |
|
|
|
|
|
LampThreecolorDeviceDriver lampThreecolorDeviceDriver; |
|
|
LampThreecolorDeviceDriver lampThreecolorDeviceDriver; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|