Browse Source

更新

master
gengby 2 years ago
parent
commit
b2c183cd86
  1. 8
      acs/nladmin-system/src/main/java/org/nl/acs/agv/server/impl/NDCAgvServiceImpl.java
  2. 8
      acs/nladmin-system/src/main/java/org/nl/acs/ext/wms/service/impl/AcsToWmsServiceImpl.java

8
acs/nladmin-system/src/main/java/org/nl/acs/agv/server/impl/NDCAgvServiceImpl.java

@ -63,8 +63,10 @@ public class NDCAgvServiceImpl implements NDCAgvService {
}; };
log.info("下发删除AGV指令--{}", Bytes2HexString(b)); log.info("下发删除AGV指令--{}", Bytes2HexString(b));
// NDCSocketConnectionAutoRun.write(b); OneNDCSocketConnectionAutoRun.write(b);
System.out.println("下发删除agv指令数据:" + Bytes2HexString(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); log.info("下发AGV充电任务--{}", str1);
try{ try {
OneNDCSocketConnectionAutoRun.write(b); OneNDCSocketConnectionAutoRun.write(b);
} catch (Exception e){ } catch (Exception e) {
e.getMessage(); e.getMessage();
return false; return false;
} }

8
acs/nladmin-system/src/main/java/org/nl/acs/ext/wms/service/impl/AcsToWmsServiceImpl.java

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

Loading…
Cancel
Save