|
|
|
@ -704,7 +704,8 @@ public class IOrderBoxServiceImpl implements IOrderBoxService { |
|
|
|
new LambdaQueryWrapper<Location>() |
|
|
|
new LambdaQueryWrapper<Location>() |
|
|
|
.ne(Location::getStatus, ORIGINAL_RACK) |
|
|
|
.ne(Location::getStatus, ORIGINAL_RACK) |
|
|
|
.eq(Location::getLocationStatus, STATUS_FREE) |
|
|
|
.eq(Location::getLocationStatus, STATUS_FREE) |
|
|
|
); |
|
|
|
.orderByDesc((sql -> "RIGHT(LOCATION_CODE, 1) = '2'") |
|
|
|
|
|
|
|
)); |
|
|
|
if (!CollectionUtils.isEmpty(freeLocationList)) { |
|
|
|
if (!CollectionUtils.isEmpty(freeLocationList)) { |
|
|
|
Location location = freeLocationList.get(0); |
|
|
|
Location location = freeLocationList.get(0); |
|
|
|
task.setLocationId(location.getId()); |
|
|
|
task.setLocationId(location.getId()); |
|
|
|
|