|
|
@ -42,9 +42,8 @@ public class AgvWaitUtil { |
|
|
|
log.info("仙工AGV请求取货,设备号 - {}", deviceCode); |
|
|
|
boolean flag = false; |
|
|
|
|
|
|
|
JSONObject jsonDevice = WQLObject.getWQLObject("acs_storage_cell").query("storage_code = '" + deviceCode + "'").uniqueResult(0); |
|
|
|
Device device = this.deviceAppService.findDeviceByCode(deviceCode); |
|
|
|
if (ObjectUtil.isEmpty(device) && ObjectUtil.isEmpty(jsonDevice)) { |
|
|
|
if (ObjectUtil.isEmpty(device)) { |
|
|
|
throw new BadRequestException("请求失败,未找到设备!"); |
|
|
|
} |
|
|
|
|
|
|
@ -85,9 +84,8 @@ public class AgvWaitUtil { |
|
|
|
log.info("仙工AGV取货完成后请求离开,设备号 - {}", deviceCode); |
|
|
|
boolean flag = false; |
|
|
|
|
|
|
|
JSONObject jsonDevice = WQLObject.getWQLObject("acs_storage_cell").query("storage_code = '" + deviceCode + "'").uniqueResult(0); |
|
|
|
Device device = this.deviceAppService.findDeviceByCode(deviceCode); |
|
|
|
if (ObjectUtil.isEmpty(device) && ObjectUtil.isEmpty(jsonDevice)) { |
|
|
|
if (ObjectUtil.isEmpty(device)) { |
|
|
|
throw new BadRequestException("请求失败,未找到设备!"); |
|
|
|
} |
|
|
|
|
|
|
@ -128,9 +126,8 @@ public class AgvWaitUtil { |
|
|
|
log.info("仙工AGV请求放货,设备号 - {}", deviceCode); |
|
|
|
boolean flag = false; |
|
|
|
|
|
|
|
JSONObject jsonDevice = WQLObject.getWQLObject("acs_storage_cell").query("storage_code = '" + deviceCode + "'").uniqueResult(0); |
|
|
|
Device device = this.deviceAppService.findDeviceByCode(deviceCode); |
|
|
|
if (ObjectUtil.isEmpty(device) && ObjectUtil.isEmpty(jsonDevice)) { |
|
|
|
if (ObjectUtil.isEmpty(device)) { |
|
|
|
throw new BadRequestException("请求失败,未找到设备!"); |
|
|
|
} |
|
|
|
|
|
|
@ -177,9 +174,8 @@ public class AgvWaitUtil { |
|
|
|
log.info("仙工AGV放货完成后请求离开,设备号 - {}", deviceCode); |
|
|
|
boolean flag = false; |
|
|
|
|
|
|
|
JSONObject jsonDevice = WQLObject.getWQLObject("acs_storage_cell").query("storage_code = '" + deviceCode + "'").uniqueResult(0); |
|
|
|
Device device = this.deviceAppService.findDeviceByCode(deviceCode); |
|
|
|
if (ObjectUtil.isEmpty(device) && ObjectUtil.isEmpty(jsonDevice)) { |
|
|
|
if (ObjectUtil.isEmpty(device)) { |
|
|
|
throw new BadRequestException("请求失败,未找到设备!"); |
|
|
|
} |
|
|
|
|
|
|
|