|
|
|
|
@ -679,14 +679,14 @@ public class IOrderBoxServiceImpl implements IOrderBoxService { |
|
|
|
|
if (!CollectionUtils.isEmpty(freeStationList)) { |
|
|
|
|
Station station = null; |
|
|
|
|
String stationPosition = ""; |
|
|
|
|
station = freeStationList.get(0); |
|
|
|
|
if (station.getStatus() == SAME_LAYER) { |
|
|
|
|
station = null; |
|
|
|
|
Station startStation = stationService.list(new LambdaQueryWrapper<Station>().eq(Station::getStationCode, startStationCode)).get(0); |
|
|
|
|
stationPosition = startStation.getStationPosition(); |
|
|
|
|
station = findByField(freeStationList, "stationPosition", stationPosition); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} else { |
|
|
|
|
station = freeStationList.get(0); |
|
|
|
|
} |
|
|
|
|
if (station == null) { |
|
|
|
|
return R.fail("当前班次" + stationPosition + "楼层库位繁忙,请空闲后再试"); |
|
|
|
|
|