Browse Source

Merge branch 'master' of http://116.63.33.55/git/nazw

xyg 6 months ago
parent
commit
bc8e3d739b

+ 8 - 0
nngkxxdp/src/main/java/com/example/nngkxxdp/service/impl/SellBuildServiceImpl.java

@@ -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("参数格式错误");
             }

+ 1 - 1
nngkxxdp/src/main/resources/mapper/SelectionAddrMapper.xml

@@ -74,7 +74,7 @@
         limit #{begin},#{pageSize}
     </select>
     <select id="findByParkId" resultType="com.example.nngkxxdp.entity.SelectionAddr" resultMap="BaseResultMap">
-        select sa.*,pd.title from t_selection_addr sa left join t_park_data pd on pd.id=sa.belong where belong = #{parkId}
+        select sa.*,pd.title from t_selection_addr sa left join t_park_data pd on pd.id=sa.belong where sa.belong = #{parkId}
     </select>