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
a69e057a
Commit
a69e057a
authored
Nov 09, 2020
by
hezhen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
123
parent
0c4d03a9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
BranchCompanyMapper.xml
...e-admin/src/main/resources/mapper/BranchCompanyMapper.xml
+3
-3
No files found.
ace-modules/ace-admin/src/main/resources/mapper/BranchCompanyMapper.xml
View file @
a69e057a
...
@@ -24,10 +24,10 @@
...
@@ -24,10 +24,10 @@
<select
id=
"search"
parameterType=
"com.github.wxiaoqi.security.admin.dto.CompanySearchDTO"
resultType=
"com.github.wxiaoqi.security.admin.vo.CompanySearchVO"
>
<select
id=
"search"
parameterType=
"com.github.wxiaoqi.security.admin.dto.CompanySearchDTO"
resultType=
"com.github.wxiaoqi.security.admin.vo.CompanySearchVO"
>
select c.*,i.name as companyName,l.name as levelName
select c.*,i.name as companyName,l.name as levelName
<if
test=
"lon != null and lat != null"
>
<if
test=
"lon != null and lat != null"
>
, ROUND(( (2 * ASIN( SQRT( POW( SIN((latitude * PI() / 180.0
, ROUND(( (2 * ASIN( SQRT( POW( SIN((
c.
latitude * PI() / 180.0
-${lat} * PI() / 180.0)/2), 2)
-${lat} * PI() / 180.0)/2), 2)
+COS( latitude * PI() / 180.0)*COS(${lat} * PI() / 180.0)
+COS(
c.
latitude * PI() / 180.0)*COS(${lat} * PI() / 180.0)
*POW(SIN((longitude * PI() / 180.0 - ${lon} * PI() /
*POW(SIN((
c.
longitude * PI() / 180.0 - ${lon} * PI() /
180.0)/2),2))))*6378.137)*10000)/10000 as distance
180.0)/2),2))))*6378.137)*10000)/10000 as distance
</if>
</if>
from branch_company c
from branch_company c
...
...
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