This commit is contained in:
2022-12-07 19:08:39 +08:00
parent 3184564486
commit 7e6373f44d
4 changed files with 8 additions and 5 deletions

View File

@@ -260,7 +260,7 @@ public class XianGongAgvServiceImpl implements XianGongAgvService {
JSONObject jo1 = new JSONObject();
jo1.put("blockId", IdUtil.simpleUUID());
jo1.put("location", inst.getStart_point_code());
jo1.put("operation", "Jackload");
jo1.put("operation", "JackLoad");
ja.add(jo1);
//取货完成等待

View File

@@ -220,6 +220,9 @@ public class MaGangConveyorDeviceDriver extends AbstractOpcDeviceDriver implemen
//将扩展表中的字符串数据转换成集合
public List<String> getExtraDeviceCodes(String extraName) {
String extraValue = (String) this.getDevice().getExtraValue().get(extraName);
if (StrUtil.isEmpty(extraValue)){
return new ArrayList<>();
}
String devicesString = extraValue.substring(1, extraValue.length() - 1);
List<String> devicesList = new ArrayList<>();
String[] devices = devicesString.split(",");

View File

@@ -36,7 +36,7 @@ public class AgvToAcsServiceImpl implements AgvToAcsService {
//车号
String vehicle_code = param.getString("device_code");
String deviceCode = RouteUtil.getDeviceCode(address);
Instruction instructionDto = instructionService.findByCode(inst_code);
Instruction instructionDto = instructionService.findByCodeFromCache(inst_code);
if (ObjectUtil.isEmpty(instructionDto)) {
logService.deviceExecuteLog(deviceCode, vehicle_code, inst_code, "请求路径api/agv/waitpointRequest请求参数" + param.toString() + ",请求失败-原因:指令任务号不存在! 指令号:" + inst_code);
throw new BadRequestException("请求失败,指令任务号不存在!");