|
@@ -101,8 +101,10 @@ public class BusinessServiceImpl implements IBusinessService {
|
|
invLotLocIdService.initInv(locationFrom.getId().toString(), agvCall.getSku(), Constant.CUSTOMER_ID, agvCall.getQty(), agvCall.getLotattDTO());
|
|
invLotLocIdService.initInv(locationFrom.getId().toString(), agvCall.getSku(), Constant.CUSTOMER_ID, agvCall.getQty(), agvCall.getLotattDTO());
|
|
}
|
|
}
|
|
} else if (flowConfigHeaderVO.getFlowType().equals("SO")) {
|
|
} else if (flowConfigHeaderVO.getFlowType().equals("SO")) {
|
|
|
|
+ //判断库存是否足够
|
|
locationFrom = this.zoneLocationAllocation(locationFromList, "locationFrom", "SO", asnSoStrategy, agvCallDTO);
|
|
locationFrom = this.zoneLocationAllocation(locationFromList, "locationFrom", "SO", asnSoStrategy, agvCallDTO);
|
|
locationTo = this.zoneLocationAllocation(locationToList, "locationTo", "SO", asnSoStrategy, agvCallDTO);
|
|
locationTo = this.zoneLocationAllocation(locationToList, "locationTo", "SO", asnSoStrategy, agvCallDTO);
|
|
|
|
+
|
|
} else if (flowConfigHeaderVO.getFlowType().equals("MV")) {
|
|
} else if (flowConfigHeaderVO.getFlowType().equals("MV")) {
|
|
locationFrom = this.zoneLocationAllocation(locationFromList, "locationFrom", "MV", asnSoStrategy, agvCallDTO);
|
|
locationFrom = this.zoneLocationAllocation(locationFromList, "locationFrom", "MV", asnSoStrategy, agvCallDTO);
|
|
locationTo = this.zoneLocationAllocation(locationToList, "locationTo", "MV", asnSoStrategy, agvCallDTO);
|
|
locationTo = this.zoneLocationAllocation(locationToList, "locationTo", "MV", asnSoStrategy, agvCallDTO);
|
|
@@ -276,7 +278,7 @@ public class BusinessServiceImpl implements IBusinessService {
|
|
return locationInfo;
|
|
return locationInfo;
|
|
} else { //目标库位
|
|
} else { //目标库位
|
|
for (BaseLocationInfo b : locationInfoList) {
|
|
for (BaseLocationInfo b : locationInfoList) {
|
|
- if (!b.getStockStatus().equals("00")) {
|
|
|
|
|
|
+ if (!b.getStockStatus().equals("00") || !b.getIsEmpty().equals("Y")) {
|
|
continue;
|
|
continue;
|
|
}
|
|
}
|
|
locationInfo = b;
|
|
locationInfo = b;
|