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
e9388ec7
Commit
e9388ec7
authored
Sep 27, 2021
by
技术部-韩成龙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
如果配置不为空,则匹配参数是否符合
parent
0d302a8f
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
6 deletions
+22
-6
CoreFilter.java
...tgroup/asset/distribution/service/newrule/CoreFilter.java
+7
-6
AuditResponce.java
...set/distribution/service/newrule/third/AuditResponce.java
+15
-0
No files found.
src/main/java/com/quantgroup/asset/distribution/service/newrule/CoreFilter.java
View file @
e9388ec7
...
...
@@ -213,14 +213,15 @@ public class CoreFilter {
log
.
error
(
"channelId不符"
);
return
Boolean
.
FALSE
;
}
if
(
StringUtils
.
isNotBlank
(
auditResponce
.
getCreditLevel
())
||
(
StringUtils
.
isNotBlank
(
auditResponce
.
getCreditLevel
())
&&
!
channelRuleEntity
.
getUserLevel
().
contains
(
auditResponce
.
getCreditLevel
())))
{
log
.
error
(
"CreditLevel不符"
);
//如果配置不为空,则匹配参数是否符合
if
(
StringUtils
.
isNotBlank
(
channelRuleEntity
.
getUserLevel
())
&&
!
channelRuleEntity
.
getUserLevel
().
contains
(
auditResponce
.
getCreditLevel
()))
{
log
.
error
(
"CreditLevel不符 userLevel:{}"
,
auditResponce
.
getCreditLevel
());
return
Boolean
.
FALSE
;
}
if
(
StringUtils
.
isNotBlank
(
auditResponce
.
getUserTag
())
||
(
StringUtils
.
isNotBlank
(
auditResponce
.
getUserTag
())
&&
!
channelRuleEntity
.
getUserTag
().
contains
(
auditResponce
.
getUserTag
()))
)
{
log
.
error
(
"UserTag不符
"
);
if
(
StringUtils
.
isNotBlank
(
channelRuleEntity
.
getUserTag
())
&&
!
channelRuleEntity
.
getUserTag
().
contains
(
auditResponce
.
getUserTag
()))
{
log
.
error
(
"UserTag不符
, userTag:{}"
,
auditResponce
.
getUserTag
()
);
return
Boolean
.
FALSE
;
}
String
basicRule
=
fundProduct
.
getBasicRule
();
...
...
src/main/java/com/quantgroup/asset/distribution/service/newrule/third/AuditResponce.java
View file @
e9388ec7
package
com
.
quantgroup
.
asset
.
distribution
.
service
.
newrule
.
third
;
import
com.quantgroup.asset.distribution.enums.route.UserTag
;
import
lombok.Data
;
import
org.apache.commons.lang3.math.NumberUtils
;
import
org.hibernate.validator.constraints.Length
;
import
javax.validation.constraints.NotNull
;
...
...
@@ -126,4 +128,17 @@ public class AuditResponce {
private
String
assetNo
;
public
String
getUserTag
()
{
if
(!
NumberUtils
.
isCreatable
(
userTag
))
{
return
userTag
;
}
UserTag
[]
tags
=
UserTag
.
values
();
for
(
UserTag
tag
:
tags
)
{
if
(
Integer
.
valueOf
(
userTag
).
equals
(
tag
.
ordinal
()))
{
return
tag
.
getValue
();
}
}
return
UserTag
.
OTHERS
.
getValue
();
}
}
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