Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in
Toggle navigation
T
tamp_fund
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
周鹏
tamp_fund
Commits
bf78ec83
Commit
bf78ec83
authored
Oct 25, 2021
by
胡定国
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
策略排序
parent
4717a79d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
7 deletions
+8
-7
ProductPrivateServiceImpl.java
...om/tanpu/fund/service/impl/ProductPrivateServiceImpl.java
+8
-7
No files found.
src/main/java/com/tanpu/fund/service/impl/ProductPrivateServiceImpl.java
View file @
bf78ec83
...
...
@@ -545,12 +545,13 @@ public class ProductPrivateServiceImpl implements ProductPrivateService, Constan
}
// 排除白名单相关策略
List
<
String
>
excludeCodes
=
Lists
.
newArrayList
(
"9010"
,
"9020"
,
"9030"
,
"9040"
,
"9050"
,
"7030"
);
return
resp
.
attributes
.
stream
().
filter
(
v
->
!
excludeCodes
.
contains
(
v
.
getConstantCode
())).
map
(
item
->
{
SysConstantVO
vo
=
new
SysConstantVO
();
vo
.
setConstantCode
(
item
.
getConstantCode
());
vo
.
setConstantName
(
item
.
getConstantName
());
vo
.
setConstantValue
(
item
.
getConstantValue
());
return
vo
;
}).
collect
(
Collectors
.
toList
());
return
resp
.
attributes
.
stream
().
sorted
(
Comparator
.
comparing
(
SysConstantResp:
:
getConstantCode
))
.
filter
(
v
->
!
excludeCodes
.
contains
(
v
.
getConstantCode
())).
map
(
item
->
{
SysConstantVO
vo
=
new
SysConstantVO
();
vo
.
setConstantCode
(
item
.
getConstantCode
());
vo
.
setConstantName
(
item
.
getConstantName
());
vo
.
setConstantValue
(
item
.
getConstantValue
());
return
vo
;
}).
collect
(
Collectors
.
toList
());
}
}
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