|
@@ -71,6 +71,14 @@ public class SellBuildServiceImpl implements SellBuildService{
|
|
|
} catch (NumberFormatException e) {
|
|
|
throw new BusinessException("参数异常");
|
|
|
}
|
|
|
+ }else if (parts.length == 1){
|
|
|
+ try {
|
|
|
+ float spaceMin = Float.parseFloat(parts[0].trim());
|
|
|
+ query.setSpaceMin(spaceMin);
|
|
|
+ query.setSpaceMax(Float.MAX_VALUE); // 设置最大值为浮点数的最大值
|
|
|
+ } catch (NumberFormatException e) {
|
|
|
+ throw new BusinessException("参数异常");
|
|
|
+ }
|
|
|
} else {
|
|
|
throw new BusinessException("参数格式错误");
|
|
|
}
|