|
@@ -156,7 +156,7 @@ public class BusinessServiceImpl implements IBusinessService {
|
|
|
List<BaseLocationInfo> locationFromList = this.convertLocation(paramLocationFrom, agvCallDTO.getWarehouseId(), null);
|
|
|
List<BaseLocationInfo> locationToList = this.convertLocation(paramLocationTo, agvCallDTO.getWarehouseId(), "shift_no+ 0,shift_index");
|
|
|
locationFrom = this.zoneLocationAllocation(locationFromList, "locationFrom", "ASN", asnSoStrategy, agvCall, token);
|
|
|
- locationTo = this.zoneLocationAllocation(locationToList, "locationTo", "ASN", asnSoStrategy, agvCall, token);
|
|
|
+ locationTo = this.zoneLocationAllocation(locationFrom, locationToList, "locationTo", "ASN", asnSoStrategy, agvCall, token);
|
|
|
|
|
|
|
|
|
|
|
@@ -293,6 +293,11 @@ public class BusinessServiceImpl implements IBusinessService {
|
|
|
|
|
|
@Override
|
|
|
public BaseLocationInfo zoneLocationAllocation(List<BaseLocationInfo> locationInfoList, String locationType, String type, AsnSoStrategy asnSoStrategy, AgvCallItemDTO agvCallDTO, Long token) {
|
|
|
+ return zoneLocationAllocation(null, locationInfoList, locationType, type, asnSoStrategy, agvCallDTO, token);
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public BaseLocationInfo zoneLocationAllocation(BaseLocationInfo locationFrom, List<BaseLocationInfo> locationInfoList, String locationType, String type, AsnSoStrategy asnSoStrategy, AgvCallItemDTO agvCallDTO, Long token) {
|
|
|
BaseLocationInfo locationInfo = null;
|
|
|
if (type.equals("ASN")) {
|
|
|
|
|
@@ -320,8 +325,8 @@ public class BusinessServiceImpl implements IBusinessService {
|
|
|
}
|
|
|
|
|
|
|
|
|
- if (b.getLocationNo().equals("IN-02-01") || b.getLocationNo().equals("RET-01-01")
|
|
|
- || b.getAgvStation() == 200 || b.getAgvStation() == 500) {
|
|
|
+ if (locationFrom.getLocationNo().equals("IN-02-01") || locationFrom.getLocationNo().equals("RET-01-01")
|
|
|
+ || locationFrom.getAgvStation() == 200 || locationFrom.getAgvStation() == 500) {
|
|
|
if (!b.getShiftNo().equals("1")) {
|
|
|
continue;
|
|
|
}
|