Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-biz
Project
Project
Details
Activity
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
项目统一框架
amos-boot-biz
Commits
44f5f2f9
Commit
44f5f2f9
authored
Sep 30, 2021
by
tangwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改bug
parent
b8a109d1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
LinkageUnitMapper.xml
...ommon-api/src/main/resources/mapper/LinkageUnitMapper.xml
+7
-7
No files found.
amos-boot-module/amos-boot-module-api/amos-boot-module-common-api/src/main/resources/mapper/LinkageUnitMapper.xml
View file @
44f5f2f9
...
@@ -47,10 +47,10 @@
...
@@ -47,10 +47,10 @@
Round(st_distance(point(a.longitude,a.latitude),point(#{par.longitude},#{par.latitude}))*111195,1)
Round(st_distance(point(a.longitude,a.latitude),point(#{par.longitude},#{par.latitude}))*111195,1)
AS distance,
AS distance,
SUM(case when csps.person_number is null then 0 else
(select SUM(csps.person_number) from cb_special_position_staff csps where a.sequence_nbr = csps.company_id and csps.is_delete=0 ) as userNum,
csps.person_number end) as userNum,
(select SUM(cre.vehicle_number) from cb_rescue_equipment cre where a.sequence_nbr = cre.company_id and cre.is_delete=0 ) as carNum
SUM(case when cre.vehicle_number is null then 0 else cre.vehicle_number end )as
carNum
<!--
<!--
case when csps.person_number is null then 0 else
case when csps.person_number is null then 0 else
csps.person_number end as userNum,
csps.person_number end as userNum,
...
@@ -59,12 +59,12 @@
...
@@ -59,12 +59,12 @@
FROM
FROM
cb_linkage_unit a
cb_linkage_unit a
LEFT JOIN cb_special_position_staff csps ON a.sequence_nbr =
<!--
LEFT JOIN cb_special_position_staff csps ON a.sequence_nbr =
csps.company_id
csps.company_id
LEFT JOIN cb_rescue_equipment cre on a.sequence_nbr = cre.company_id
LEFT JOIN cb_rescue_equipment cre on a.sequence_nbr = cre.company_id-->
where a.is_delete=0 and a.longitude is not null and
where a.is_delete=0 and a.longitude is not null and
a.latitude is not null GROUP BY a.sequence_nbr
a.latitude is not null
<if
test=
'par.distance!=null'
>
<if
test=
'par.distance!=null'
>
and
and
Round(st_distance(point(a.longitude,a.latitude),point(#{par.longitude},#{par.latitude}))*111195,1)
Round(st_distance(point(a.longitude,a.latitude),point(#{par.longitude},#{par.latitude}))*111195,1)
...
...
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