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
a29e96b0
Commit
a29e96b0
authored
Oct 23, 2019
by
jiaorz
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master-background-manager' into dev
parents
3b64ddc5
7603eb1e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
VehicleMapper.xml
...ehicle-server/src/main/resources/mapper/VehicleMapper.xml
+6
-4
No files found.
xx-vehicle/xx-vehicle-server/src/main/resources/mapper/VehicleMapper.xml
View file @
a29e96b0
...
@@ -41,7 +41,8 @@
...
@@ -41,7 +41,8 @@
SELECT r.* FROM (
SELECT r.* FROM (
select DISTINCT v.`id`,
select DISTINCT v.`id`,
v.`code`,
v.`code`,
v.`status`,
(CASE WHEN #{status} != null THEN #{status}
ELSE 0 END) status ,
v.number_plate,
v.number_plate,
v.brand,
v.brand,
v.park_branch_company_id,
v.park_branch_company_id,
...
@@ -113,7 +114,7 @@
...
@@ -113,7 +114,7 @@
and v.insurance_company = #{insuranceCompany}
and v.insurance_company = #{insuranceCompany}
</if>
</if>
<if
test=
"belongToName !=null and belongToName != ''"
>
<if
test=
"belongToName !=null and belongToName != ''"
>
and v.belong_to_name
=
like concat('%',#{belongToName},'%')
and v.belong_to_name like concat('%',#{belongToName},'%')
</if>
</if>
<if
test=
"vin !=null and vin != ''"
>
<if
test=
"vin !=null and vin != ''"
>
and v.vin = #{vin}
and v.vin = #{vin}
...
@@ -178,7 +179,8 @@
...
@@ -178,7 +179,8 @@
SELECT r.* FROM (
SELECT r.* FROM (
select DISTINCT v.`id`,
select DISTINCT v.`id`,
v.`code`,
v.`code`,
v.`status`,
(CASE WHEN #{status} != null THEN #{status}
ELSE 0 END) status ,
v.number_plate,
v.number_plate,
v.brand,
v.brand,
-- IFNULL(v.park_branch_company_id,v.expect_destination_branch_company_id) AS subordinate_branch,
-- IFNULL(v.park_branch_company_id,v.expect_destination_branch_company_id) AS subordinate_branch,
...
@@ -275,7 +277,7 @@
...
@@ -275,7 +277,7 @@
and v.insurance_company = #{insuranceCompany}
and v.insurance_company = #{insuranceCompany}
</if>
</if>
<if
test=
"belongToName !=null and belongToName != ''"
>
<if
test=
"belongToName !=null and belongToName != ''"
>
and v.belong_to_name
=
like concat('%',#{belongToName},'%')
and v.belong_to_name like concat('%',#{belongToName},'%')
</if>
</if>
<if
test=
"vin !=null and vin != ''"
>
<if
test=
"vin !=null and vin != ''"
>
and v.vin = #{vin}
and v.vin = #{vin}
...
...
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