|
|
|
|
@ -18,6 +18,8 @@ import com.zhehekeji.web.pojo.websocket.WebSocketVo;
|
|
|
|
|
import com.zhehekeji.web.service.RFID.RFIDMap;
|
|
|
|
|
import com.zhehekeji.web.service.RFID.RFIDSocket;
|
|
|
|
|
import com.zhehekeji.web.service.algorithm.AlgorithmService;
|
|
|
|
|
import com.zhehekeji.web.service.damLightSource.JYDAMEquip;
|
|
|
|
|
import com.zhehekeji.web.service.damLightSource.JYDamHelper;
|
|
|
|
|
import com.zhehekeji.web.service.hikLightSource.HikControlSocket;
|
|
|
|
|
import com.zhehekeji.web.service.interfaces.RfidLiveService;
|
|
|
|
|
import com.zhehekeji.web.service.ksec.KsecDataInfo;
|
|
|
|
|
@ -673,19 +675,9 @@ public class PlcService {
|
|
|
|
|
plcCmdInfo.setStreetName(street.getName());
|
|
|
|
|
List<LightSource> lightSources = lightSourceMapper.selectList(new QueryWrapper<LightSource>().eq("street_id", street.getId()));
|
|
|
|
|
|
|
|
|
|
lightSources.forEach(lightSource -> {
|
|
|
|
|
HikControlSocket.openLight(lightSource.getIp(), lightSource.getPort(), configProperties.getLightSource().getIndex(), 1);
|
|
|
|
|
});
|
|
|
|
|
Thread thread = new Thread(() -> {
|
|
|
|
|
try {
|
|
|
|
|
Thread.sleep(30000);
|
|
|
|
|
} catch (InterruptedException e) {
|
|
|
|
|
throw new RuntimeException(e);
|
|
|
|
|
}
|
|
|
|
|
//关闭光源
|
|
|
|
|
streetController.closeStreetLightSource(street.getId());
|
|
|
|
|
});
|
|
|
|
|
thread.start();
|
|
|
|
|
//关闭光源
|
|
|
|
|
streetController.openStreetLightSource(street.getId());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
log.info("盘点摄像头变化参数:" + plcCmdInfo.toString());
|
|
|
|
|
Integer cameraId = getCameraByPlcCmdE(plcCmdInfo, plcCmdInfo.getLeftRight1());
|
|
|
|
|
@ -710,6 +702,17 @@ 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 = 1;
|
|
|
|
|
//托盘和货物都正确
|
|
|
|
|
@ -762,6 +765,7 @@ public class PlcService {
|
|
|
|
|
checkLog.setPic(stock.getCheckPic());
|
|
|
|
|
checkLog.setStreetId(stock.getStreetId());
|
|
|
|
|
checkLog.setDirection(stock.getDirection());
|
|
|
|
|
checkLog.setTaskId(stock.getCheckNum());
|
|
|
|
|
checkLog.setSide(stock.getSide());
|
|
|
|
|
checkLog.setCode(stock.getCode());
|
|
|
|
|
checkLog.setWmsCode(stock.getWmsCode());
|
|
|
|
|
@ -853,11 +857,14 @@ public class PlcService {
|
|
|
|
|
plcCmdInfo.setToSeparation(dataInfo.getToSeparation());
|
|
|
|
|
plcCmdInfo.setFromAround(dataInfo.getFromAround());
|
|
|
|
|
plcCmdInfo.setToSide(dataInfo.getToSeparation());
|
|
|
|
|
//古井贡增加层概念,等于行
|
|
|
|
|
if( dataInfo.getToStorey()!=null ){
|
|
|
|
|
plcCmdInfo.setToRow(dataInfo.getToStorey());
|
|
|
|
|
plcCmdInfo.setRow2(dataInfo.getToStorey());
|
|
|
|
|
}
|
|
|
|
|
if( dataInfo.getFromStorey()!=null ){
|
|
|
|
|
plcCmdInfo.setFromRow(dataInfo.getFromStorey());
|
|
|
|
|
plcCmdInfo.setRow1(dataInfo.getFromStorey());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//左右不交换
|
|
|
|
|
|