|
@@ -224,7 +224,7 @@ public class WmsDocOrderSubService {
|
|
|
int locationIndex = partitionLocationIdList.indexOf(locationInfo.getId());
|
|
|
|
|
|
List<Long> partitionLocationRightSubList = !StringUtils.equals(partitionRowKey, Constants.LAST) ?
|
|
|
- ListUtil.sub(partitionLocationIdList, locationIndex, partitionLocationIdList.size()) : Lists.newArrayList();
|
|
|
+ ListUtil.reverse(ListUtil.sub(partitionLocationIdList, locationIndex, partitionLocationIdList.size())) : Lists.newArrayList();
|
|
|
List<Long> partitionLocationLeftSubList = !StringUtils.equals(partitionRowKey, Constants.FIRST)
|
|
|
? ListUtil.sub(partitionLocationIdList, Constants.START_VALUE, locationIndex + 1) : Lists.newArrayList();
|
|
|
List<Long> partitionLocationSubList = CollectionUtil.isNotEmpty(partitionLocationRightSubList) ? partitionLocationRightSubList : partitionLocationLeftSubList;
|
|
@@ -238,9 +238,9 @@ public class WmsDocOrderSubService {
|
|
|
PartitionLocationDTO partitionLocationLeftDTO = buildPartitionLocationDTO(locationInfo.getId(), quantity, baseLocationLotattList,
|
|
|
sourceInvLotLocIdList, partitionLocationLeftSubList);
|
|
|
if (ObjectUtil.isNull(partitionLocationLeftDTO)) continue;
|
|
|
- qtyCount = CompareUtil.compare(partitionLocationLeftDTO.getQtyCount(), qtyCount) > 0
|
|
|
+ qtyCount = CompareUtil.compare(partitionLocationLeftDTO.getQtyCount(), qtyCount) < 0
|
|
|
? partitionLocationLeftDTO.getQtyCount() : qtyCount;
|
|
|
- resultLocationIdList = CompareUtil.compare(partitionLocationLeftDTO.getQtyCount(), qtyCount) > 0
|
|
|
+ resultLocationIdList = CompareUtil.compare(partitionLocationLeftDTO.getQtyCount(), qtyCount) < 0
|
|
|
? partitionLocationLeftDTO.getResultLocationIdList() : resultLocationIdList;
|
|
|
}
|
|
|
List<Long> partitionLocationList = resultLocationIdList;
|