Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-biz
Project
Project
Details
Activity
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
项目统一框架
amos-boot-biz
Commits
997c92ca
Commit
997c92ca
authored
Aug 09, 2024
by
李秀明
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 消防车辆弹窗-消防车辆产权类型&消防车辆结构类型为根据bizOrgCode过滤
parent
c6c58220
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
2 deletions
+14
-2
CarPropertyMapper.xml
...tem-equip/src/main/resources/mapper/CarPropertyMapper.xml
+14
-2
No files found.
amos-boot-system-equip/src/main/resources/mapper/CarPropertyMapper.xml
View file @
997c92ca
...
@@ -177,8 +177,15 @@
...
@@ -177,8 +177,15 @@
<select
id=
"getCarUsedInfo"
resultType=
"Map"
>
<select
id=
"getCarUsedInfo"
resultType=
"Map"
>
SELECT
SELECT
( SELECT COUNT( 1 ) FROM wl_car WHERE use_type = '自购' ) AS zg,
SUM(CASE WHEN t.use_type = '自购' THEN 1 ELSE 0 END) AS zg,
( SELECT COUNT( 1 ) FROM wl_car WHERE use_type = '租赁' ) AS zl
SUM(CASE WHEN t.use_type = '租赁' THEN 1 ELSE 0 END) AS zl
FROM
wl_car t
<where>
<if
test=
"bizOrgCode != null and bizOrgCode != ''"
>
AND t.biz_org_code LIKE CONCAT(#{bizOrgCode},'%')
</if>
</where>
</select>
</select>
<select
id=
"getCarTypeInfo"
resultType=
"Map"
>
<select
id=
"getCarTypeInfo"
resultType=
"Map"
>
...
@@ -193,6 +200,11 @@
...
@@ -193,6 +200,11 @@
FROM
FROM
wl_car c
wl_car c
LEFT JOIN wl_equipment we ON we.id = c.equipment_id
LEFT JOIN wl_equipment we ON we.id = c.equipment_id
<where>
<if
test=
"bizOrgCode != null and bizOrgCode != ''"
>
AND c.biz_org_code LIKE CONCAT(#{bizOrgCode},'%')
</if>
</where>
) d
) d
</select>
</select>
...
...
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