Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
I
indicators
Overview
Overview
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
zhangkb
indicators
Commits
6725ec1c
Commit
6725ec1c
authored
Jul 03, 2020
by
zhangkb
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
目录idPath添加分号隔开
parent
33c98c37
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
8 deletions
+8
-8
ScoreRuleCatalogService.java
...indicators/service/hytobacco/ScoreRuleCatalogService.java
+2
-2
ScorecardCatalogService.java
...indicators/service/hytobacco/ScorecardCatalogService.java
+2
-2
ShortboardCatalogService.java
...ndicators/service/hytobacco/ShortboardCatalogService.java
+2
-2
ShortboardUnitCatalogService.java
...ators/service/hytobacco/ShortboardUnitCatalogService.java
+2
-2
No files found.
src/main/java/com/keymobile/indicators/service/hytobacco/ScoreRuleCatalogService.java
View file @
6725ec1c
...
...
@@ -31,14 +31,14 @@ public class ScoreRuleCatalogService {
//获取parentId拼接idPath
Integer
parentId
=
scoreRuleCatalog
.
getParentId
();
if
(
parentId
==
0
)
{
//顶层节点
scoreRuleCatalog
.
setIdPath
(
String
.
valueOf
(
scoreRuleCatalog
.
getId
()));
scoreRuleCatalog
.
setIdPath
(
String
.
valueOf
(
scoreRuleCatalog
.
getId
())
+
";"
);
}
else
{
ScoreRuleCatalog
parentScoreRuleCatalog
=
scoreRuleCatalogMapper
.
selectByPrimaryKey
(
scoreRuleCatalog
.
getParentId
());
if
(
parentScoreRuleCatalog
==
null
)
{
throw
new
Exception
(
"父节点不存在:parent catalog is not exist"
);
}
else
{
scoreRuleCatalog
.
setIdPath
(
parentScoreRuleCatalog
.
getIdPath
()+
";"
+
scoreRuleCatalog
.
getId
()
);
scoreRuleCatalog
.
setIdPath
(
parentScoreRuleCatalog
.
getIdPath
()+
scoreRuleCatalog
.
getId
()+
";"
);
}
}
//保存
...
...
src/main/java/com/keymobile/indicators/service/hytobacco/ScorecardCatalogService.java
View file @
6725ec1c
...
...
@@ -31,14 +31,14 @@ public class ScorecardCatalogService {
//获取parentId拼接idPath
Integer
parentId
=
scorecardCatalog
.
getParentId
();
if
(
parentId
==
0
)
{
//顶层节点
scorecardCatalog
.
setIdPath
(
String
.
valueOf
(
scorecardCatalog
.
getId
()));
scorecardCatalog
.
setIdPath
(
String
.
valueOf
(
scorecardCatalog
.
getId
())
+
";"
);
}
else
{
ScorecardCatalog
parentScorecardCatalog
=
scorecardCatalogMapper
.
selectByPrimaryKey
(
scorecardCatalog
.
getParentId
());
if
(
parentScorecardCatalog
==
null
)
{
throw
new
Exception
(
"父节点不存在:parent catalog is not exist"
);
}
else
{
scorecardCatalog
.
setIdPath
(
parentScorecardCatalog
.
getIdPath
()+
";"
+
scorecardCatalog
.
getId
()
);
scorecardCatalog
.
setIdPath
(
parentScorecardCatalog
.
getIdPath
()+
scorecardCatalog
.
getId
()+
";"
);
}
}
//保存
...
...
src/main/java/com/keymobile/indicators/service/hytobacco/ShortboardCatalogService.java
View file @
6725ec1c
...
...
@@ -30,14 +30,14 @@ public class ShortboardCatalogService {
//获取parentId拼接idPath
Integer
parentId
=
shortboardCatalog
.
getParentId
();
if
(
parentId
==
0
)
{
//顶层节点
shortboardCatalog
.
setIdPath
(
String
.
valueOf
(
shortboardCatalog
.
getId
()));
shortboardCatalog
.
setIdPath
(
String
.
valueOf
(
shortboardCatalog
.
getId
())
+
";"
);
}
else
{
ShortboardCatalog
parentShortboardCatalog
=
shortboardCatalogMapper
.
selectByPrimaryKey
(
shortboardCatalog
.
getParentId
());
if
(
parentShortboardCatalog
==
null
)
{
throw
new
Exception
(
"父节点不存在:parent catalog is not exist"
);
}
else
{
shortboardCatalog
.
setIdPath
(
parentShortboardCatalog
.
getIdPath
()+
";"
+
shortboardCatalog
.
getId
()
);
shortboardCatalog
.
setIdPath
(
parentShortboardCatalog
.
getIdPath
()+
shortboardCatalog
.
getId
()+
";"
);
}
}
//保存
...
...
src/main/java/com/keymobile/indicators/service/hytobacco/ShortboardUnitCatalogService.java
View file @
6725ec1c
...
...
@@ -31,14 +31,14 @@ public class ShortboardUnitCatalogService {
//获取parentId拼接idPath
Integer
parentId
=
shortboardUnitCatalog
.
getParentId
();
if
(
parentId
==
0
)
{
//顶层节点
shortboardUnitCatalog
.
setIdPath
(
String
.
valueOf
(
shortboardUnitCatalog
.
getId
()));
shortboardUnitCatalog
.
setIdPath
(
String
.
valueOf
(
shortboardUnitCatalog
.
getId
())
+
";"
);
}
else
{
ShortboardUnitCatalog
parentShortboardUnitCatalog
=
shortboardUnitCatalogMapper
.
selectByPrimaryKey
(
shortboardUnitCatalog
.
getParentId
());
if
(
parentShortboardUnitCatalog
==
null
)
{
throw
new
Exception
(
"父节点不存在:parent catalog is not exist"
);
}
else
{
shortboardUnitCatalog
.
setIdPath
(
parentShortboardUnitCatalog
.
getIdPath
()+
";"
+
shortboardUnitCatalog
.
getId
()
);
shortboardUnitCatalog
.
setIdPath
(
parentShortboardUnitCatalog
.
getIdPath
()+
shortboardUnitCatalog
.
getId
()+
";"
);
}
}
//保存
...
...
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