|
|
|
|
@ -446,6 +446,21 @@ public class PlcService {
|
|
|
|
|
gyrateCameraByCodeTimeLater(cameraId, "C5", configProperties.getCameraConfig().getC2OutDelayCaptureTime() + 500);
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
if (configProperties.getActionCheckPic()){
|
|
|
|
|
|
|
|
|
|
code = "E1" + "-" + plcCmdInfo.getEndStr(1, plcCmdInfo.getFromAround());
|
|
|
|
|
|
|
|
|
|
gyrateCameraByCode(cameraId, code);
|
|
|
|
|
|
|
|
|
|
path = PathUtil.createFileNameByRowColumn2("jpg", cameraId, plcCmdInfo.getRow1(), plcCmdInfo.getColumn1());
|
|
|
|
|
try {
|
|
|
|
|
|
|
|
|
|
cameraCapture(cameraId, false, null, path);
|
|
|
|
|
} catch (NullPointerException e) {
|
|
|
|
|
log.error("相机{}未连接无法拍照", cameraId);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// threadPoolExecutor.execute(()->{
|
|
|
|
|
// rfidLiveService.rfidOrderStock(plcCmdInfo, times, code);
|
|
|
|
|
// });
|
|
|
|
|
@ -778,23 +793,7 @@ public class PlcService {
|
|
|
|
|
//货物使用球机扫码
|
|
|
|
|
|
|
|
|
|
log.info("盘点信息:{}", algorithmPojo.toString());
|
|
|
|
|
// //关闭光源
|
|
|
|
|
// Thread thread = new Thread(() -> {
|
|
|
|
|
// try {
|
|
|
|
|
// Thread.sleep(30000);
|
|
|
|
|
// } catch (InterruptedException e) {
|
|
|
|
|
// throw new RuntimeException(e);
|
|
|
|
|
// }
|
|
|
|
|
// //关闭光源
|
|
|
|
|
// streetController.closeStreetLightSource(street.getId());
|
|
|
|
|
// });
|
|
|
|
|
// thread.start();
|
|
|
|
|
//核对异常
|
|
|
|
|
// Integer status = 4;
|
|
|
|
|
//托盘和货物都正确
|
|
|
|
|
// if (algorithmPojo != null && algorithmPojo.getResult() != null && algorithmPojo.getResult() == 1) {
|
|
|
|
|
// status = 2;
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
Integer status = 1;
|
|
|
|
|
if (algorithmPojo != null && algorithmPojo.getResult() != null && algorithmPojo.getResult() == 0) {
|
|
|
|
|
status = 2;
|
|
|
|
|
|