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
86ca22f3
Commit
86ca22f3
authored
Mar 06, 2020
by
liwenbin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
a869a83a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
QGExceptionType.java
...ntgroup/asset/distribution/exception/QGExceptionType.java
+1
-0
AssetServiceImpl.java
...set/distribution/service/asset/impl/AssetServiceImpl.java
+4
-5
No files found.
src/main/java/com/quantgroup/asset/distribution/exception/QGExceptionType.java
View file @
86ca22f3
...
@@ -41,6 +41,7 @@ public enum QGExceptionType {
...
@@ -41,6 +41,7 @@ public enum QGExceptionType {
RULE_DATA_IS_EMPTY
(
2032
,
"规则数据为空,key:%s, operator:%s, value:%s"
),
RULE_DATA_IS_EMPTY
(
2032
,
"规则数据为空,key:%s, operator:%s, value:%s"
),
DATA_COMPARE_ERROR
(
2033
,
"数据比较出现错误"
),
DATA_COMPARE_ERROR
(
2033
,
"数据比较出现错误"
),
RULE_OPERATOR_NOT_EXIST
(
2034
,
"规则符不存在"
),
RULE_OPERATOR_NOT_EXIST
(
2034
,
"规则符不存在"
),
CRATE_RULE_VO_ERROR
(
2035
,
"规则格式无法形成规则对象"
),
NOTIFY_FUND_SERVER_ERROR
(
2041
,
"通知资金系统失败, uuid : %s, bizNo : %s, assetNo : %s"
),
NOTIFY_FUND_SERVER_ERROR
(
2041
,
"通知资金系统失败, uuid : %s, bizNo : %s, assetNo : %s"
),
...
...
src/main/java/com/quantgroup/asset/distribution/service/asset/impl/AssetServiceImpl.java
View file @
86ca22f3
...
@@ -244,11 +244,7 @@ public class AssetServiceImpl implements IAssetService{
...
@@ -244,11 +244,7 @@ public class AssetServiceImpl implements IAssetService{
List
<
ChannelFundConfigNew
>
fundConfigList
=
JSONArray
.
parseArray
(
config
.
getFunds
(),
ChannelFundConfigNew
.
class
);
List
<
ChannelFundConfigNew
>
fundConfigList
=
JSONArray
.
parseArray
(
config
.
getFunds
(),
ChannelFundConfigNew
.
class
);
A
:
for
(
ChannelFundConfigNew
channelFundConfig
:
fundConfigList
)
{
A
:
for
(
ChannelFundConfigNew
channelFundConfig
:
fundConfigList
)
{
IRuleVO
ruleVO
=
ruleService
.
getIRuleVo
(
channelFundConfig
.
getLimits
());
IRuleVO
ruleVO
=
ruleService
.
getIRuleVo
(
channelFundConfig
.
getLimits
());
if
(
ruleVO
!=
null
)
{
if
(
ruleVO
==
null
)
{
throw
new
QGException
(
QGExceptionType
.
CRATE_RULE_VO_ERROR
);
}
if
(!
ruleVO
.
valid
(
data
))
{
continue
A
;
}
}
// 如果参数为空,直接不满足
// 如果参数为空,直接不满足
Set
<
String
>
params
=
ruleVO
.
getParamNames
();
Set
<
String
>
params
=
ruleVO
.
getParamNames
();
for
(
String
key
:
params
)
{
for
(
String
key
:
params
)
{
...
@@ -256,6 +252,9 @@ public class AssetServiceImpl implements IAssetService{
...
@@ -256,6 +252,9 @@ public class AssetServiceImpl implements IAssetService{
continue
A
;
continue
A
;
}
}
}
}
if
(!
ruleVO
.
valid
(
data
))
{
continue
A
;
}
// 是否配了审核条件
// 是否配了审核条件
boolean
hasAuditResultLimit
=
params
.
contains
(
"audit_result"
);
boolean
hasAuditResultLimit
=
params
.
contains
(
"audit_result"
);
if
(!
hasAuditResultLimit
)
{
if
(!
hasAuditResultLimit
)
{
...
...
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