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
4ed88dee
Commit
4ed88dee
authored
Aug 09, 2019
by
周健威
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加model相关修改
parent
043b816d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
24 deletions
+25
-24
VehicleMapper.xml
...ehicle-server/src/main/resources/mapper/VehicleMapper.xml
+25
-24
No files found.
xx-vehicle/xx-vehicle-server/src/main/resources/mapper/VehicleMapper.xml
View file @
4ed88dee
...
@@ -520,7 +520,28 @@
...
@@ -520,7 +520,28 @@
and vm.id is not null
and vm.id is not null
and vm.status = 1
and vm.status = 1
and vm.isdel = 0
and vm.isdel = 0
and bc.id is not null)
and bc.id is not null
GROUP BY model_id, company_id
<if
test=
"lon != null and lat != null"
>
, distance
</if>
<!--<if test=" yearMonthAndParam !=null and yearNo4Where != null and yearNo4Where == true">, hasVehicle</if>-->
<!-- 循环 相同父级 数据做并集, 不同父级做或集 -->
<if
test=
" catas != null "
>
having ( 1
<foreach
collection=
"catas"
index=
"key"
item=
"cataList"
>
&
(
<foreach
collection=
"cataList"
index=
"cIndex"
item=
"cata"
>
<if
test=
" cIndex != 0"
>
|
</if>
(case when FIND_IN_SET(#{cata.id},catas) > 0 then 1 else 0 end)
</foreach>
)
</foreach>
) > 0
</if>
)
<!-- union 所有车型 -->
<if
test=
"startCompanyId != null or parkBranchCompanyId != null "
>
<if
test=
"startCompanyId != null or parkBranchCompanyId != null "
>
union
union
(select id as model_id,
(select id as model_id,
...
@@ -543,26 +564,6 @@
...
@@ -543,26 +564,6 @@
</if>
</if>
from vehicle_model where vehicle_model.isdel = 0)
from vehicle_model where vehicle_model.isdel = 0)
</if>
</if>
GROUP BY model_id, company_id
<if
test=
"lon != null and lat != null"
>
, distance
</if>
<!--<if test=" yearMonthAndParam !=null and yearNo4Where != null and yearNo4Where == true">, hasVehicle</if>-->
<!-- 循环 相同父级 数据做并集, 不同父级做或集 -->
<if
test=
" catas != null "
>
having ( 1
<foreach
collection=
"catas"
index=
"key"
item=
"cataList"
>
&
(
<foreach
collection=
"cataList"
index=
"cIndex"
item=
"cata"
>
<if
test=
" cIndex != 0"
>
|
</if>
(case when FIND_IN_SET(#{cata.id},catas) > 0 then 1 else 0 end)
</foreach>
)
</foreach>
) > 0
</if>
<if
test=
"lon != null and lat != null"
>
<if
test=
"lon != null and lat != null"
>
order by
order by
<if
test=
" yearMonthAndParam !=null and yearNo4Where != null and yearNo4Where == true"
>
<if
test=
" yearMonthAndParam !=null and yearNo4Where != null and yearNo4Where == true"
>
...
...
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