更新
This commit is contained in:
@@ -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);
|
||||
|
||||
//取货完成等待
|
||||
|
||||
@@ -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(",");
|
||||
|
||||
@@ -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("请求失败,指令任务号不存在!");
|
||||
|
||||
Reference in New Issue
Block a user