1
This commit is contained in:
@@ -744,8 +744,13 @@ public class InstructionServiceImpl implements InstructionService, ApplicationAu
|
|||||||
JSONObject jo1 = new JSONObject();
|
JSONObject jo1 = new JSONObject();
|
||||||
jo1.put("device_code", instnextdevice);
|
jo1.put("device_code", instnextdevice);
|
||||||
|
|
||||||
String start_point_code = entity.getStart_point_code();
|
String start_device_code = entity.getStart_device_code();
|
||||||
Device deviceByCode = deviceAppService.findDeviceByCode(start_point_code);
|
|
||||||
|
Device deviceByCode = deviceAppService.findDeviceByCode(start_device_code);
|
||||||
|
if (deviceByCode == null) {
|
||||||
|
log.debug("地址对应设备未找到");
|
||||||
|
throw new BadRequestException("地址对应设备未找到");
|
||||||
|
}
|
||||||
if(deviceByCode.getDeviceDriver() instanceof HailiangEngravingMachineDeviceDriver){
|
if(deviceByCode.getDeviceDriver() instanceof HailiangEngravingMachineDeviceDriver){
|
||||||
jo1.put("hasGoodStatus", "2");
|
jo1.put("hasGoodStatus", "2");
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user