|
|
|
@ -31,6 +31,11 @@ public class OrderInfo {
|
|
|
|
|
|
|
|
|
|
|
|
private Integer leftRight;
|
|
|
|
private Integer leftRight;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* 双伸货架 1:内 2:外侧
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
private Integer separation;
|
|
|
|
|
|
|
|
|
|
|
|
public OrderInfo(Street street, PlcCmdInfo plcCmdInfo, Integer times, String c) {
|
|
|
|
public OrderInfo(Street street, PlcCmdInfo plcCmdInfo, Integer times, String c) {
|
|
|
|
if (street == null) {
|
|
|
|
if (street == null) {
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
@ -47,15 +52,37 @@ public class OrderInfo {
|
|
|
|
leftRight = plcCmdInfo.getLeftRight1();
|
|
|
|
leftRight = plcCmdInfo.getLeftRight1();
|
|
|
|
row = plcCmdInfo.getRow1();
|
|
|
|
row = plcCmdInfo.getRow1();
|
|
|
|
column = plcCmdInfo.getColumn1();
|
|
|
|
column = plcCmdInfo.getColumn1();
|
|
|
|
|
|
|
|
separation = plcCmdInfo.getSeparation1();
|
|
|
|
} else if (times == 4 || times == 3) {
|
|
|
|
} else if (times == 4 || times == 3) {
|
|
|
|
leftRight = plcCmdInfo.getLeftRight2();
|
|
|
|
leftRight = plcCmdInfo.getLeftRight2();
|
|
|
|
row = plcCmdInfo.getRow2();
|
|
|
|
row = plcCmdInfo.getRow2();
|
|
|
|
column = plcCmdInfo.getColumn2();
|
|
|
|
column = plcCmdInfo.getColumn2();
|
|
|
|
|
|
|
|
separation = plcCmdInfo.getSeparation2();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (leftRight == 1) {
|
|
|
|
if (leftRight == 1) {
|
|
|
|
shelveId = street.getLeftShelveId();
|
|
|
|
//双伸
|
|
|
|
|
|
|
|
if(street.getLeftType() == 2){
|
|
|
|
|
|
|
|
//外侧
|
|
|
|
|
|
|
|
if(separation == 2){
|
|
|
|
|
|
|
|
shelveId = street.getLeftOutsideShelveId();
|
|
|
|
|
|
|
|
}else {
|
|
|
|
|
|
|
|
shelveId = street.getLeftOutsideShelveId();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}else {
|
|
|
|
|
|
|
|
shelveId = street.getLeftShelveId();
|
|
|
|
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
shelveId = street.getRightShelveId();
|
|
|
|
//双伸
|
|
|
|
|
|
|
|
if(street.getRightType() == 2){
|
|
|
|
|
|
|
|
//外侧
|
|
|
|
|
|
|
|
if(separation == 2){
|
|
|
|
|
|
|
|
shelveId = street.getRightOutsideShelveId();
|
|
|
|
|
|
|
|
}else {
|
|
|
|
|
|
|
|
shelveId = street.getRightInsideShelveId();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}else {
|
|
|
|
|
|
|
|
shelveId = street.getRightShelveId();
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
orderId = 0L;
|
|
|
|
orderId = 0L;
|
|
|
|
orderNum = plcCmdInfo.getOrderNum();
|
|
|
|
orderNum = plcCmdInfo.getOrderNum();
|
|
|
|
|