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
394774ad
Commit
394774ad
authored
Oct 23, 2019
by
jiaorz
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master-background-manager' into base-modify
parents
b3c057d2
af0864ad
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
38 additions
and
36 deletions
+38
-36
VehicleMapper.xml
...ehicle-server/src/main/resources/mapper/VehicleMapper.xml
+38
-36
No files found.
xx-vehicle/xx-vehicle-server/src/main/resources/mapper/VehicleMapper.xml
View file @
394774ad
...
@@ -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,
...
@@ -118,9 +119,9 @@
...
@@ -118,9 +119,9 @@
<if
test=
"vin !=null and vin != ''"
>
<if
test=
"vin !=null and vin != ''"
>
and v.vin = #{vin}
and v.vin = #{vin}
</if>
</if>
<!-- <if test="subordinateBranch !=null">-->
<!-- <if test="subordinateBranch !=null">-->
<!-- and v.subordinate_branch = #{subordinateBranch}-->
<!-- and v.subordinate_branch = #{subordinateBranch}-->
<!-- </if>-->
<!-- </if>-->
<if
test=
"code !=null"
>
<if
test=
"code !=null"
>
and v.code = #{code}
and v.code = #{code}
</if>
</if>
...
@@ -160,15 +161,15 @@
...
@@ -160,15 +161,15 @@
and ( v.park_branch_company_id = #{subordinateBranch})
and ( v.park_branch_company_id = #{subordinateBranch})
</if>
</if>
<if
test=
" addrProvince !=null or addrCity !=null or zoneId !=null "
>
<if
test=
" addrProvince !=null or addrCity !=null or zoneId !=null "
>
<if
test=
"addrProvince !=null"
>
<if
test=
"addrProvince !=null"
>
and bc.addr_province=#{addrProvince}
and bc.addr_province=#{addrProvince}
</if>
</if>
<if
test=
"addrCity !=null"
>
<if
test=
"addrCity !=null"
>
and bc.addr_city=#{addrCity}
and bc.addr_city=#{addrCity}
</if>
</if>
<if
test=
"zoneId !=null"
>
<if
test=
"zoneId !=null"
>
and bc.zone_id=#{zoneId}
and bc.zone_id=#{zoneId}
</if>
</if>
</if>
</if>
) r ORDER BY r.parkBranchCompanyName
) r ORDER BY r.parkBranchCompanyName
</select>
</select>
...
@@ -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,
...
@@ -229,25 +231,25 @@
...
@@ -229,25 +231,25 @@
v.is_del=0
v.is_del=0
<if
test=
"companyList != null"
>
<if
test=
"companyList != null"
>
and ( v.park_branch_company_id in (
and ( v.park_branch_company_id in (
<trim
suffixOverrides=
","
>
<trim
suffixOverrides=
","
>
<foreach
collection=
"companyList"
item=
"companyId"
>
<foreach
collection=
"companyList"
item=
"companyId"
>
#{companyId},
#{companyId},
</foreach>
</foreach>
</trim>
</trim>
)
)
<!--or v.expect_destination_branch_company_id in (
<!--or v.expect_destination_branch_company_id in (
<trim suffixOverrides=",">
<trim suffixOverrides=",">
<foreach collection="companyList" item="companyId">
<foreach collection="companyList" item="companyId">
#{companyId},
#{companyId},
</foreach>
</foreach>
</trim>
</trim>
)-->
)-->
<!-- or v.subordinate_branch in (-->
<!-- or v.subordinate_branch in (-->
<!-- <trim suffixOverrides=",">-->
<!-- <trim suffixOverrides=",">-->
<!-- <foreach collection="companyList" item="companyId">-->
<!-- <foreach collection="companyList" item="companyId">-->
<!-- #{companyId},-->
<!-- #{companyId},-->
<!-- </foreach>-->
<!-- </foreach>-->
<!-- </trim>-->
<!-- </trim>-->
)
)
</if>
</if>
<if
test=
"mRangeDateEnd !=null"
>
<if
test=
"mRangeDateEnd !=null"
>
...
@@ -280,9 +282,9 @@
...
@@ -280,9 +282,9 @@
<if
test=
"vin !=null and vin != ''"
>
<if
test=
"vin !=null and vin != ''"
>
and v.vin = #{vin}
and v.vin = #{vin}
</if>
</if>
<!-- <if test="subordinateBranch !=null">-->
<!-- <if test="subordinateBranch !=null">-->
<!-- and v.subordinate_branch = #{subordinateBranch}-->
<!-- and v.subordinate_branch = #{subordinateBranch}-->
<!-- </if>-->
<!-- </if>-->
<if
test=
"code !=null"
>
<if
test=
"code !=null"
>
and v.code = #{code}
and v.code = #{code}
</if>
</if>
...
...
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