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
ec947583
Commit
ec947583
authored
Dec 16, 2020
by
hezhen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
123
parent
055848fb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
10 deletions
+8
-10
VehicleApplyMapper.xml
...e-server/src/main/resources/mapper/VehicleApplyMapper.xml
+8
-10
No files found.
xx-vehicle/xx-vehicle-server/src/main/resources/mapper/VehicleApplyMapper.xml
View file @
ec947583
...
...
@@ -58,11 +58,10 @@
b.cn_name as brandName,
c.`name` categoryName
FROM
(SELECT v.* FROM
(SELECT * FROM vehicle_apply
WHERE (vehicle_id is NOT NULL and vehicle_id != '' ) and apply_status != 1
ORDER BY id desc) v
GROUP BY v.vehicle_id
(
SELECT * FROM vehicle_apply a WHERE not EXISTS(
SELECT 1 FROM vehicle_apply WHERE vehicle_id = a.vehicle_id
AND id > a.id) and (vehicle_id is NOT NULL and vehicle_id != '' ) and apply_status != 1
UNION ALL
SELECT * FROM vehicle_apply WHERE apply_status != 1 and (vehicle_id is NULL OR vehicle_id = '' )) v
LEFT JOIN vehicle_brand b ON v.brand_id=b.id
...
...
@@ -93,11 +92,10 @@
b.cn_name as brandName,
c.`name` categoryName
FROM
(SELECT v.* FROM
(SELECT * FROM vehicle_apply
WHERE (vehicle_id is NOT NULL and vehicle_id != '' )
ORDER BY id desc) v
GROUP BY v.vehicle_id
(
SELECT * FROM vehicle_apply a WHERE not EXISTS(
SELECT 1 FROM vehicle_apply WHERE vehicle_id = a.vehicle_id
AND id > a.id) and (vehicle_id is NOT NULL and vehicle_id != '' )
UNION ALL
SELECT * FROM vehicle_apply WHERE (vehicle_id is NULL OR vehicle_id = '' )) v
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