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