Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cloud-platform
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
youjj
cloud-platform
Commits
13de83e7
Commit
13de83e7
authored
Dec 18, 2020
by
周健威
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改车辆距离
parent
bd89ebf3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
VehicleMapper.xml
...ehicle-server/src/main/resources/mapper/VehicleMapper.xml
+3
-3
No files found.
xx-vehicle/xx-vehicle-server/src/main/resources/mapper/VehicleMapper.xml
View file @
13de83e7
...
@@ -1050,7 +1050,7 @@
...
@@ -1050,7 +1050,7 @@
as hasVehicle
as hasVehicle
</if>
</if>
<if
test=
"lon != null and lat != null"
>
<if
test=
"lon != null and lat != null"
>
,st_distance_sphere(point(#{lon}, #{lat}), point(bc
.longitude, bc
.latitude)) as distance
,st_distance_sphere(point(#{lon}, #{lat}), point(bc
m.longitude, bcm
.latitude)) as distance
</if>
</if>
<include
refid=
"searchUsableSql"
/>
<include
refid=
"searchUsableSql"
/>
...
@@ -1121,7 +1121,7 @@
...
@@ -1121,7 +1121,7 @@
, bcm.province_name as manageProvinceName
, bcm.province_name as manageProvinceName
, bcm.city_name as manageCityName
, bcm.city_name as manageCityName
<if
test=
"lon != null and lat != null"
>
<if
test=
"lon != null and lat != null"
>
,st_distance_sphere(point(#{lon}, #{lat}), point(bc
.longitude, bc
.latitude)) as distance
,st_distance_sphere(point(#{lon}, #{lat}), point(bc
m.longitude, bcm
.latitude)) as distance
</if>
</if>
<if
test=
" catas2 != null "
>
<if
test=
" catas2 != null "
>
,vc.catas as catas
,vc.catas as catas
...
@@ -1474,7 +1474,7 @@
...
@@ -1474,7 +1474,7 @@
bc1.province_name as manageProvinceName,
bc1.province_name as manageProvinceName,
bc1.city_name as manageCityName
bc1.city_name as manageCityName
<if
test=
"lon != null and lat != null"
>
<if
test=
"lon != null and lat != null"
>
,st_distance_sphere(point(#{lon}, #{lat}), point(bc
.longitude, bc
.latitude)) as distance
,st_distance_sphere(point(#{lon}, #{lat}), point(bc
1.longitude, bc1
.latitude)) as distance
</if>
</if>
FROM vehicle v
FROM vehicle v
LEFT JOIN vehicle_brand b ON v.brand_id=b.id
LEFT JOIN vehicle_brand b ON v.brand_id=b.id
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment