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
f9516b49
Commit
f9516b49
authored
Nov 19, 2019
by
hanfeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改车型列表
parent
81fa11f7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
VehicleModelMapper.xml
...e-server/src/main/resources/mapper/VehicleModelMapper.xml
+7
-5
No files found.
xx-vehicle/xx-vehicle-server/src/main/resources/mapper/VehicleModelMapper.xml
View file @
f9516b49
...
@@ -4,14 +4,16 @@
...
@@ -4,14 +4,16 @@
<select
id=
"findVehicleModelPage"
parameterType=
"com.xxfc.platform.vehicle.pojo.VehicleModelQueryCondition"
<select
id=
"findVehicleModelPage"
parameterType=
"com.xxfc.platform.vehicle.pojo.VehicleModelQueryCondition"
resultType=
"com.xxfc.platform.vehicle.pojo.VehicleModelVo"
>
resultType=
"com.xxfc.platform.vehicle.pojo.VehicleModelVo"
>
SELECT * from
SELECT * from
(select vm.*,v.sum,v2.leasableQuantity,vpc.`name` brandName,vpc2.name numberName from vehicle_model vm left JOIN
(select vm.*,v.sum,v2.leasableQuantity,vpc.`name` brandName,vpc2.name numberName from vehicle_model vm
(select model_id as mid, count(1) as sum FROM vehicle GROUP BY mid) v
left JOIN
on vm.id=v.mid left JOIN
(select model_id as mid, count(1) as sum FROM vehicle where is_del= 0 GROUP BY mid) v
(select model_id as mid2, count(1) as leasableQuantity FROM vehicle where`use_type`=1 GROUP BY model_id) v2
on vm.id=v.mid
left JOIN
(select model_id as mid2, count(1) as leasableQuantity FROM vehicle where`use_type`=1 and is_del= 0 GROUP BY model_id) v2
on v.mid=v2.mid2
on v.mid=v2.mid2
left join (SELECT id,name FROM vehicle_plat_cata where state=0) vpc on vm.brand=vpc.id
left join (SELECT id,name FROM vehicle_plat_cata where state=0) vpc on vm.brand=vpc.id
left join (SELECT id,name FROM vehicle_plat_cata where state=0) vpc2 on vm.number=vpc2.id
left join (SELECT id,name FROM vehicle_plat_cata where state=0) vpc2 on vm.number=vpc2.id
where isdel = 0
where
vm.
isdel = 0
) vmqc WHERE 1=1
) vmqc WHERE 1=1
<if
test=
"isDel !=null "
>
<if
test=
"isDel !=null "
>
...
...
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