Browse Source

调整经纬度距离计算逻辑

liwh 1 year ago
parent
commit
2ec4fbcb26

+ 1 - 1
tile-web/src/main/java/cn/com/taiji/web/service/impl/EnterpriseServiceImpl.java

@@ -114,7 +114,7 @@ public class EnterpriseServiceImpl implements IEnterpriseService {
 
         String wkt = "POINT ("+deviceVo.getLon()+" "+deviceVo.getLat()+")";
 
-        filterCql.append("(DWITHIN(location," + wkt + ", "+deviceVo.getRadius()/1000+", kilometers))");
+        filterCql.append("(DWITHIN(location," + wkt + ", "+deviceVo.getRadius()/100+", kilometers))");