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
26a57bcf
Commit
26a57bcf
authored
Feb 17, 2022
by
tangwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改 bug
parent
d71b080b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
2 deletions
+26
-2
DataDictionaryMapper.xml
...common/src/main/resources/mapper/DataDictionaryMapper.xml
+2
-2
jcs-1.0.0.0.xml
...ystem-jcs/src/main/resources/db/changelog/jcs-1.0.0.0.xml
+24
-0
No files found.
amos-boot-biz-common/src/main/resources/mapper/DataDictionaryMapper.xml
View file @
26a57bcf
...
...
@@ -60,7 +60,7 @@ GROUP BY
<select
id=
"getFireTeamTypeTree"
resultType=
"com.yeejoin.amos.boot.biz.common.entity.DataDictionary"
>
SELECT
cdd.*,get
ParentLi
stCode(cdd.sequence_nbr) treeCode, case when fire.count is null then 0 else fire.count end as count
cdd.*,get
ChildL
stCode(cdd.sequence_nbr) treeCode, case when fire.count is null then 0 else fire.count end as count
FROM
cb_data_dictionary cdd
LEFT JOIN (
...
...
@@ -81,7 +81,7 @@ GROUP BY
<select
id =
"getFirefightersJobTitle"
resultType=
"com.yeejoin.amos.boot.biz.common.entity.DataDictionary"
>
SELECT
*,getParentListCode(
sequence_nbr) treeCode
cbb.*,getChildLstCode(cbb.
sequence_nbr) treeCode
FROM
cb_data_dictionary cbb
...
...
amos-boot-system-jcs/src/main/resources/db/changelog/jcs-1.0.0.0.xml
View file @
26a57bcf
...
...
@@ -2793,5 +2793,29 @@
END#
</sql>
</changeSet>
<changeSet
author=
"tw"
id=
"20220217-2"
runAlways=
"true"
>
<comment>
`getChildLstCode`
</comment>
<sql
endDelimiter=
"#"
>
DROP FUNCTION IF EXISTS `getChildLstCode`#
CREATE DEFINER=`root`@`%` FUNCTION `getChildLstCode`(rootId varchar(100)) RETURNS varchar(2000) CHARSET latin1
BEGIN
DECLARE i varchar(2000) default '';
DECLARE j varchar(1000) default rootId;
WHILE rootId is not null do
SET i =(SELECT group_concat(sequence_nbr) FROM cb_data_dictionary WHERE parent in ( rootId) );
IF i is not null THEN
SET j = concat(i, ',', j);
SET rootId = i;
ELSE
SET rootId = i;
END IF;
END WHILE;
return j;
END#
</sql>
</changeSet>
</databaseChangeLog>
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