fix:日志修改

This commit is contained in:
2023-12-23 17:34:35 +08:00
parent 9e7675574e
commit 460e6ebadc
4 changed files with 8 additions and 8 deletions

View File

@@ -150,7 +150,7 @@ public class IndoorManipulatorDeviceDriver extends AbstractOpcDeviceDriver imple
String message = null;
Boolean iserror = false;
private Date instruction_update_time = new Date();
private int instruction_update_time_out = 1000;
private int instruction_update_time_out = 3000;
Integer heartbeat_tag;
private Date instruction_require_time = new Date();
@@ -507,7 +507,7 @@ public class IndoorManipulatorDeviceDriver extends AbstractOpcDeviceDriver imple
} else {
feedbackSucess = false;
message = "申请新取货点失败";
logServer.deviceExecuteLog(this.device_code, "", "", "申请新取货点,返回参数:" + applyManipulatorActionResponse);
logServer.deviceExecuteLog(this.device_code, "", "", "申请新取货点失败,返回参数:" + applyManipulatorActionResponse);
}
}

View File

@@ -524,7 +524,7 @@ public class PaperTubeConveyor2DeviceDriver extends AbstractOpcDeviceDriver impl
map3.put("to_command", "4");
this.writing(map3);
requireSucess = true;
logServer.deviceExecuteLog(this.device_code, "", "", "申请出纸管,返回参数:" + applyPaperActionResponse);
logServer.deviceExecuteLog(this.device_code, "", "", "申请出纸管成功,返回参数:" + applyPaperActionResponse);
message = "申请出货成功";
} else {
message = applyPaperActionResponse.getMessage();
@@ -532,7 +532,7 @@ public class PaperTubeConveyor2DeviceDriver extends AbstractOpcDeviceDriver impl
this.writing(map3);
requireSucess = false;
message = "出库顺序错误";
logServer.deviceExecuteLog(this.device_code, "", "", "申请出纸管,返回参数:" + applyPaperActionResponse);
logServer.deviceExecuteLog(this.device_code, "", "", "申请出纸管顺序错误,返回参数:" + applyPaperActionResponse);
}
}
}

View File

@@ -181,7 +181,7 @@ public class PluggingUnpluggingMachineDeviceDriver extends AbstractOpcDeviceDriv
map.put("to_command", 6);
this.writing(map);
requireSucess = true;
logServer.deviceExecuteLog(this.device_code, "", "", "拔轴成反馈,返回参数:" + applyManipulatorActionResponse);
logServer.deviceExecuteLog(this.device_code, "", "", "拔轴成反馈,返回参数:" + applyManipulatorActionResponse);
message = "拔轴完成成功";
}else{
message = applyManipulatorActionResponse.getMessage();
@@ -189,7 +189,7 @@ public class PluggingUnpluggingMachineDeviceDriver extends AbstractOpcDeviceDriv
map.put("to_command", 99);
requireSucess = true;
message = "拔轴失败";
logServer.deviceExecuteLog(this.device_code, "", "", "拔轴完成反馈,返回参数:" + applyManipulatorActionResponse);
logServer.deviceExecuteLog(this.device_code, "", "", "拔轴失败反馈,返回参数:" + applyManipulatorActionResponse);
}
}

View File

@@ -458,14 +458,14 @@ public class AcsToWmsServiceImpl implements AcsToWmsService {
AddressDto addressDto = addressService.findByCode("actionFinishRequest");
String methods_url = addressDto.getMethods_url();
String url = wmsUrl + methods_url;
log.info("ApplyManipulatorActionRequest----请求参数{}", param);
log.info("actionFinishRequest----请求参数{}", param);
try {
// String result = "";
String result = HttpRequest.post(url)
.body(JSON.toJSONString(param))
.execute().body();
JSONObject jsonObject = JSONObject.parseObject(result);
log.info("ApplyManipulatorActionResponse----返回参数{}", result);
log.info("actionFinishResponse----返回参数{}", result);
actionFinishRequestResponse = JSONObject.toJavaObject(jsonObject, ApplyManipulatorActionResponse.class);
} catch (Exception e) {
JSONObject map = new JSONObject();