|
|
|
@ -504,11 +504,31 @@ public class PlcService {
|
|
|
|
return street.getCamera1Id();
|
|
|
|
return street.getCamera1Id();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}else {
|
|
|
|
}else {
|
|
|
|
if(plcCmdInfo.getSeparation1() == 2){
|
|
|
|
if(plcCmdInfo.getSeparation1() == 1){
|
|
|
|
//右侧 内货架 camera2
|
|
|
|
//右侧 内货架 camera1
|
|
|
|
|
|
|
|
return street.getCamera1Id();
|
|
|
|
|
|
|
|
}else {
|
|
|
|
|
|
|
|
//右侧 外货架 camera2
|
|
|
|
|
|
|
|
return street.getCamera2Id();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}else {
|
|
|
|
|
|
|
|
//左侧
|
|
|
|
|
|
|
|
if(plcCmdInfo.getLeftRight2() == 1){
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(plcCmdInfo.getSeparation2() == 1){
|
|
|
|
|
|
|
|
//左侧 内货架 camera2
|
|
|
|
|
|
|
|
return street.getCamera2Id();
|
|
|
|
|
|
|
|
}else {
|
|
|
|
|
|
|
|
//左侧 外货架 camera1
|
|
|
|
|
|
|
|
return street.getCamera1Id();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}else {
|
|
|
|
|
|
|
|
if(plcCmdInfo.getSeparation2() == 1){
|
|
|
|
|
|
|
|
//右侧 内货架 camera1
|
|
|
|
return street.getCamera1Id();
|
|
|
|
return street.getCamera1Id();
|
|
|
|
}else {
|
|
|
|
}else {
|
|
|
|
//右侧 外货架 camera1
|
|
|
|
//右侧 外货架 camera2
|
|
|
|
return street.getCamera2Id();
|
|
|
|
return street.getCamera2Id();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@ -517,25 +537,9 @@ public class PlcService {
|
|
|
|
Integer cameraId = street.getCamera1Id() != null && street.getCamera1Id() != 0 ? street.getCamera1Id() : street.getCamera2Id();
|
|
|
|
Integer cameraId = street.getCamera1Id() != null && street.getCamera1Id() != 0 ? street.getCamera1Id() : street.getCamera2Id();
|
|
|
|
return cameraId;
|
|
|
|
return cameraId;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return null;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public void kescTest6(PlcCmdInfo plcCmdInfo,String code,String wmsCode){
|
|
|
|
|
|
|
|
long startTime = System.currentTimeMillis();
|
|
|
|
|
|
|
|
log.info("test startTime",startTime);
|
|
|
|
|
|
|
|
check(plcCmdInfo,"C2-L",wmsCode,"2");
|
|
|
|
|
|
|
|
plcCmdInfo.setColumn1(plcCmdInfo.getColumn1()+1);
|
|
|
|
|
|
|
|
check(plcCmdInfo,"C3-L",wmsCode,"2");
|
|
|
|
|
|
|
|
plcCmdInfo.setColumn1(plcCmdInfo.getColumn1());
|
|
|
|
|
|
|
|
check(plcCmdInfo,"C4-L",wmsCode,"2");
|
|
|
|
|
|
|
|
plcCmdInfo.setColumn1(plcCmdInfo.getColumn1()+1);
|
|
|
|
|
|
|
|
check(plcCmdInfo,"C5",wmsCode,"2");
|
|
|
|
|
|
|
|
plcCmdInfo.setColumn1(plcCmdInfo.getColumn1()+1);
|
|
|
|
|
|
|
|
check(plcCmdInfo,"E1",wmsCode,"2");
|
|
|
|
|
|
|
|
long endTime = System.currentTimeMillis();
|
|
|
|
|
|
|
|
log.info("test endTime:{},time:{}millisecond",endTime,(endTime - startTime));
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public Boolean check(PlcCmdInfo plcCmdInfo,String cmdCode,String wmsCode,String wmsTrayCode){
|
|
|
|
public Boolean check(PlcCmdInfo plcCmdInfo,String cmdCode,String wmsCode,String wmsTrayCode){
|
|
|
|
|