From 080e3168061e4a90b9c66cd6e58d7ec4b4171533 Mon Sep 17 00:00:00 2001
From: lin <sbla5888@163.com>
Date: Thu, 29 Feb 2024 13:26:47 +0800
Subject: [PATCH] bug 修复
---
src/main/java/org/springblade/modules/place/mapper/PlaceMapper.xml | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/main/java/org/springblade/modules/place/mapper/PlaceMapper.xml b/src/main/java/org/springblade/modules/place/mapper/PlaceMapper.xml
index 31938d0..d1f27b3 100644
--- a/src/main/java/org/springblade/modules/place/mapper/PlaceMapper.xml
+++ b/src/main/java/org/springblade/modules/place/mapper/PlaceMapper.xml
@@ -743,13 +743,13 @@
<!--比对两点间的距离是否在1km 范围内 (和采集的位置对比)-->
<select id="comparisonPositionNotHouseCode" resultType="java.lang.Boolean">
- select (
+ select IFNULL((
ACOS(
SIN(
( #{place.y} * 3.1415 )/ 180 ) * SIN(( #{place.lat} * 3.1415 )/ 180 )
+ COS(( #{place.y} * 3.1415 )/ 180 ) * COS(( #{place.lat} * 3.1415 )/ 180 ) * COS(( #{place.x} * 3.1415 )/ 180
- ( #{place.lng} * 3.1415 )/ 180 ))* 6370.996
- ) <= 1
+ ),2) <= 1
</select>
--
Gitblit v1.9.3