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
ae727340
Commit
ae727340
authored
Oct 15, 2021
by
chenzhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
应急单位左侧统计展示修改 无数据也展示 默认为0
parent
c50a27fd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
14 deletions
+13
-14
DataDictionaryMapper.xml
...common/src/main/resources/mapper/DataDictionaryMapper.xml
+13
-14
No files found.
amos-boot-biz-common/src/main/resources/mapper/DataDictionaryMapper.xml
View file @
ae727340
...
...
@@ -28,25 +28,24 @@ GROUP BY
<select
id =
"getNoInLinkUnit"
resultType=
"com.yeejoin.amos.boot.biz.common.entity.DataDictionary"
>
SELECT
CONCAT(cbb.`name`,' (',elink.count,')') as `name`,
cbb.*,
elink.count as count
FROM
cb_data_dictionary cbb
LEFT JOIN (
SELECT
CONCAT(cbb.`name`,' (',IFNULL(elink.count, 0),')') as `name`,
cbb.*,
elink.count as count
FROM
cb_data_dictionary cbb
LEFT JOIN (
SELECT
emergency_linkage_unit_code,
COUNT(1) count
FROM
FROM
cb_linkage_unit
WHERE is_delete = 0
GROUP BY
WHERE is_delete = 0
GROUP BY
emergency_linkage_unit_code
) elink ON elink.emergency_linkage_unit_code = cbb.`code`
WHERE
cbb.type = 'YJLDDW' and cbb.is_delete = 0
AND elink.count IS NOT NULL
) elink ON elink.emergency_linkage_unit_code = cbb.`code`
WHERE
cbb.type = 'YJLDDW' and cbb.is_delete = 0
</select>
<select
id =
"getByCode"
resultType=
"com.yeejoin.amos.boot.biz.common.entity.DataDictionary"
>
...
...
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