This commit is contained in:
2023-03-22 17:34:06 +08:00
parent 60b7993d93
commit b2c183cd86
2 changed files with 9 additions and 7 deletions

View File

@@ -63,8 +63,10 @@ public class NDCAgvServiceImpl implements NDCAgvService {
};
log.info("下发删除AGV指令--{}", Bytes2HexString(b));
// NDCSocketConnectionAutoRun.write(b);
OneNDCSocketConnectionAutoRun.write(b);
System.out.println("下发删除agv指令数据:" + Bytes2HexString(b));
} else {
log.info("下发AGV删除指令失败:{}", "参数表中forkagv值不等于1");
}
}
@@ -214,9 +216,9 @@ public class NDCAgvServiceImpl implements NDCAgvService {
};
log.info("下发AGV充电任务--{}", str1);
try{
try {
OneNDCSocketConnectionAutoRun.write(b);
} catch (Exception e){
} catch (Exception e) {
e.getMessage();
return false;
}

View File

@@ -130,9 +130,9 @@ public class AcsToWmsServiceImpl implements AcsToWmsService {
.header("Content-Type", "application/json")
.body(String.valueOf(reqData))
.execute();
log.info("反馈WMS任务状态,请求参数:{},响应参数:{}", String.valueOf(reqData), String.valueOf(result));
log.info("反馈WMS任务状态,请求路径:{},请求参数:{},响应参数:{}", url + taskcode, String.valueOf(reqData), String.valueOf(result));
} catch (Exception e) {
log.error("反馈WMS任务状态,请求参数:{},响应参数:{}", String.valueOf(reqData), e.getMessage());
log.error("反馈WMS任务状态,请求路径:{},请求参数:{},响应参数:{}", url + taskcode, String.valueOf(reqData), e.getMessage());
}
}
String type = "";
@@ -567,9 +567,9 @@ public class AcsToWmsServiceImpl implements AcsToWmsService {
result = HttpRequest.post(url + "?token=" + token)
.body(JSON.toJSONString(from))
.execute();
log.info("反馈WMS取放货状态,请求参数:{},响应参数:{}", JSON.toJSONString(from), String.valueOf(result));
log.info("反馈WMS取放货状态,请求路径:{},请求参数:{},响应参数:{}", url, JSON.toJSONString(from), String.valueOf(result));
} catch (Exception e) {
log.info("反馈WMS取放货状态,请求参数:{},响应参数:{}", JSON.toJSONString(from), e.getMessage());
log.info("反馈WMS取放货状态,请求路径:{},请求参数:{},响应参数:{}", url, JSON.toJSONString(from), e.getMessage());
}
return result;
}