add lmstoACS日志
This commit is contained in:
@@ -333,6 +333,7 @@ public class AgvNdcOneDeviceDriver extends AbstractDeviceDriver implements Devic
|
||||
agv_message = conveyorPressStationDeviceDriver.getDevice_code() + message;
|
||||
logService.deviceExecuteLog(device_code, "", "", message);
|
||||
log.info("{},{}", device_code,message);
|
||||
log.info("模式为{} 光电信号{} 取放信号{}",conveyorPressStationDeviceDriver.getMode(),conveyorPressStationDeviceDriver.getMove(),conveyorPressStationDeviceDriver.getIo_action());
|
||||
lucene.deviceExecuteLog(new LuceneLogDto(this.device_code, message));
|
||||
}
|
||||
}
|
||||
@@ -585,6 +586,7 @@ public class AgvNdcOneDeviceDriver extends AbstractDeviceDriver implements Devic
|
||||
agv_message = conveyorPressStationDeviceDriver.getDevice_code() + message;
|
||||
logService.deviceExecuteLog(device_code, "", "", message);
|
||||
log.info("{},{}", device_code,message);
|
||||
log.info("模式为{} 光电信号{} 取放信号{}",conveyorPressStationDeviceDriver.getMode(),conveyorPressStationDeviceDriver.getMove(),conveyorPressStationDeviceDriver.getIo_action());
|
||||
lucene.deviceExecuteLog(new LuceneLogDto(this.device_code, message));
|
||||
}
|
||||
}
|
||||
@@ -857,6 +859,7 @@ public class AgvNdcOneDeviceDriver extends AbstractDeviceDriver implements Devic
|
||||
agv_message = conveyorPressStationDeviceDriver.getDevice_code() + message;
|
||||
logService.deviceExecuteLog(device_code, "", "", message);
|
||||
log.info("{},{}", device_code,message);
|
||||
log.info("模式为{} 光电信号{} 取放信号{}",conveyorPressStationDeviceDriver.getMode(),conveyorPressStationDeviceDriver.getMove(),conveyorPressStationDeviceDriver.getIo_action());
|
||||
lucene.deviceExecuteLog(new LuceneLogDto(this.device_code, message));
|
||||
}
|
||||
}
|
||||
@@ -1114,6 +1117,7 @@ public class AgvNdcOneDeviceDriver extends AbstractDeviceDriver implements Devic
|
||||
agv_message = conveyorPressStationDeviceDriver.getDevice_code() + message;
|
||||
logService.deviceExecuteLog(device_code, "", "", message);
|
||||
log.info("{},{}", device_code,message);
|
||||
log.info("模式为{} 光电信号{} 取放信号{}",conveyorPressStationDeviceDriver.getMode(),conveyorPressStationDeviceDriver.getMove(),conveyorPressStationDeviceDriver.getIo_action());
|
||||
lucene.deviceExecuteLog(new LuceneLogDto(this.device_code, message));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -458,6 +458,7 @@ public class ConveyorBarcodeDeviceDriver extends AbstractOpcDeviceDriver impleme
|
||||
jo.put("isOnline", isonline);
|
||||
jo.put("hasGoods", hasGoods);
|
||||
jo.put("message", message);
|
||||
jo.put("requireSucess",requireSucess);
|
||||
return jo;
|
||||
}
|
||||
|
||||
|
||||
@@ -276,14 +276,13 @@ public class WmsToAcsServiceImpl implements WmsToAcsService {
|
||||
resp.setMessage("请求成功");
|
||||
log.info("createFromWms - 返回参数 {}", JSON.toJSON(resp));
|
||||
|
||||
// LuceneLogDto logDto = LuceneLogDto.builder()
|
||||
// .device_code("LMSTOACS")
|
||||
// .requestparam(JSON.toJSON(resp).toString())
|
||||
// .responseparam(JSON.toJSON(resp).toString())
|
||||
// .status_code(String.valueOf(resp.getCode()))
|
||||
// .method(tasks.getRequest_medthod_code())
|
||||
// .build();
|
||||
// lucene.interfaceExecuteLog(logDto);
|
||||
LuceneLogDto logDto = LuceneLogDto.builder()
|
||||
.requestparam(JSON.toJSON(resp).toString())
|
||||
.responseparam(JSON.toJSON(resp).toString())
|
||||
.status_code(String.valueOf(resp.getCode()))
|
||||
.method(tasks.getRequest_medthod_code())
|
||||
.build();
|
||||
lucene.interfaceExecuteLog(logDto);
|
||||
return (JSONObject) JSON.toJSON(resp);
|
||||
} finally {
|
||||
MDC.remove(log_file_type);
|
||||
@@ -550,6 +549,7 @@ public class WmsToAcsServiceImpl implements WmsToAcsService {
|
||||
lnshSplitManipulatorDeviceDriver.writing(100);
|
||||
is_flag = true;
|
||||
}
|
||||
|
||||
//下发成功后,写入工单信息表记录
|
||||
|
||||
// ProduceshiftorderDto dto = new ProduceshiftorderDto();
|
||||
@@ -578,9 +578,14 @@ public class WmsToAcsServiceImpl implements WmsToAcsService {
|
||||
resp.setRequestNo(request_no);
|
||||
resp.setResponseDate(AgvUtil.getDate());
|
||||
resp.setMessage("请求成功");
|
||||
log.info("createOrder - 返回参数 {}", JSON.toJSON(resp));
|
||||
LuceneLogDto logDto = LuceneLogDto.builder()
|
||||
.requestparam(JSON.toJSON(resp).toString())
|
||||
.responseparam(JSON.toJSON(resp).toString())
|
||||
.status_code(String.valueOf(resp.getCode()))
|
||||
.method(orders.getRequest_medthod_code())
|
||||
.build();
|
||||
lucene.interfaceExecuteLog(logDto);
|
||||
return (JSONObject) JSON.toJSON(resp);
|
||||
|
||||
} finally {
|
||||
MDC.remove(log_file_type);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user