Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
asset-distribution
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
data-spider
asset-distribution
Commits
e2f97e08
Commit
e2f97e08
authored
Sep 25, 2021
by
技术部-韩成龙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
白名单用户
parent
2ae312d2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
2 deletions
+11
-2
IChannelRuleRepository.java
...bution/service/jpa/repository/IChannelRuleRepository.java
+1
-0
CoreFilter.java
...tgroup/asset/distribution/service/newrule/CoreFilter.java
+10
-2
No files found.
src/main/java/com/quantgroup/asset/distribution/service/jpa/repository/IChannelRuleRepository.java
View file @
e2f97e08
...
...
@@ -19,4 +19,5 @@ public interface IChannelRuleRepository extends JpaRepository<ChannelRuleEntity,
void
deleteAllByChannelIdEqualsAndEnableEquals
(
Long
channelId
,
Boolean
enable
);
List
<
ChannelRuleEntity
>
getByChannelIdAndFundProductIdOrderByPriority
(
long
channelId
,
long
fundProductId
);
}
src/main/java/com/quantgroup/asset/distribution/service/newrule/CoreFilter.java
View file @
e2f97e08
...
...
@@ -73,11 +73,19 @@ public class CoreFilter {
@Transactional
(
rollbackFor
=
Exception
.
class
)
public
void
coreHandle
(
AuditResponce
auditResponce
){
List
<
ChannelRuleEntity
>
channelRuleEntityList
=
channelRuleRepository
.
getByChannelIdOrderByPriority
(
Long
.
parseLong
(
auditResponce
.
getBizChannel
()));
List
<
ChannelRuleEntity
>
channelRuleEntityList
;
UserAssociationBean
associationBean
=
userCenterService
.
getUserAssociationBean
(
auditResponce
.
getUuid
());
//白名单
WhiteListEntity
whiteListEntity
=
whiteListRepository
.
getByPhoneEquals
(
associationBean
.
getPhoneNo
());
if
(
whiteListEntity
!=
null
&&
whiteListEntity
.
getStatus
().
equals
(
Byte
.
valueOf
(
"1"
)))
{
log
.
info
(
"白名单用户,phoneNo:{}"
,
associationBean
.
getPhoneNo
());
channelRuleEntityList
=
channelRuleRepository
.
getByChannelIdAndFundProductIdOrderByPriority
(
Long
.
parseLong
(
auditResponce
.
getBizChannel
()),
whiteListEntity
.
getFundProductId
());
}
else
{
channelRuleEntityList
=
channelRuleRepository
.
getByChannelIdOrderByPriority
(
Long
.
parseLong
(
auditResponce
.
getBizChannel
()));
}
if
(
CollectionUtils
.
isEmpty
(
channelRuleEntityList
)){
throw
new
RuntimeException
(
"渠道配置产品集不存在,运营人员配置有问题"
);
}
UserAssociationBean
associationBean
=
userCenterService
.
getUserAssociationBean
(
auditResponce
.
getUuid
());
List
<
FinanceProduct
>
financeProducts
=
new
ArrayList
<>();
List
<
RoutingRecordVO
>
routingRecordList
=
new
ArrayList
<>();
for
(
ChannelRuleEntity
channelRuleEntity
:
channelRuleEntityList
)
{
...
...
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