Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yanxuan-qc-change-system
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
胡园园
yanxuan-qc-change-system
Commits
cc072afd
Commit
cc072afd
authored
Dec 26, 2022
by
jx-art
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Integer类型判断修改判断方式
parent
21461adc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
3 deletions
+1
-3
ChangeTypeServiceImpl.java
...change/biz/service/impl/change/ChangeTypeServiceImpl.java
+1
-3
No files found.
yanxuan-qc-change-system-biz/src/main/java/com/netease/mail/yanxuan/change/biz/service/impl/change/ChangeTypeServiceImpl.java
View file @
cc072afd
...
...
@@ -160,7 +160,6 @@ public class ChangeTypeServiceImpl implements ChangeTypeService {
public
List
<
ChangeTypePo
>
queryConfigType
()
{
//获取数据,创建目录集合,遍历分组
List
<
ChangeTypePo
>
changeTypes
=
mapper
.
queryArrayChangeTypes
();
logger
.
error
(
"查询所有一级二级配置类型"
+
changeTypes
.
size
());
List
<
ChangeTypePo
>
pos
=
new
ArrayList
<>();
for
(
ChangeTypePo
changeType
:
changeTypes
)
{
if
(
changeType
.
getParentId
()
==
0
){
...
...
@@ -169,13 +168,12 @@ public class ChangeTypeServiceImpl implements ChangeTypeService {
pos
.
add
(
changeType
);
}
else
{
for
(
ChangeTypePo
po
:
pos
){
if
(
po
.
getId
()
==
changeType
.
getParentId
(
)){
if
(
po
.
getId
()
.
equals
(
changeType
.
getParentId
()
)){
po
.
getChangeTypes
().
add
(
changeType
);
}
}
}
}
logger
.
error
(
"map处理后结果"
+
pos
.
size
());
//去重如果父类下边包裹的List数量为0的时候就自动剔除
pos
.
removeIf
(
changeTypePo
->
changeTypePo
.
getChangeTypes
().
size
()
==
0
);
return
pos
;
...
...
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