Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cash-loan-flow-boss
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
QG
cash-loan-flow-boss
Commits
def4b2d2
Commit
def4b2d2
authored
Jul 27, 2020
by
王向伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
导出配置添加日志
parent
53306eef
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
8 deletions
+12
-8
ChannelConfServiceImpl.java
...nflowboss/api/channel/service/ChannelConfServiceImpl.java
+12
-8
No files found.
src/main/java/cn/quantgroup/cashloanflowboss/api/channel/service/ChannelConfServiceImpl.java
View file @
def4b2d2
...
@@ -196,30 +196,34 @@ public class ChannelConfServiceImpl implements ChannelConfService {
...
@@ -196,30 +196,34 @@ public class ChannelConfServiceImpl implements ChannelConfService {
@Override
@Override
public
String
exportChannelConf
(
Long
channelId
)
{
public
String
exportChannelConf
(
Long
channelId
)
{
log
.
info
(
"导出渠道配置 channelId={}"
,
channelId
);
ClfChannelConfiguration
channelConfiguration
=
clfCenterService
.
findChannelConfigurationByChannelId
(
channelId
);
ClfCallbackConfiguration
callbackConfiguration
=
clfCenterService
.
findCallbackConfigurationByChannelId
(
channelId
);
List
<
ChannelApplyInfoStrategy
>
channelApplyInfoStrategies
=
clfCenterService
.
findChannelApplyInfoStrategyByChannelId
(
channelId
);
ChannelSecurityKey
channelSecurityKey
=
clfCenterService
.
findChannelSecurityByChannelId
(
channelId
);
List
<
ClfOrderCallBack
>
orderCallBackList
=
clfCenterService
.
findClfOrderCallBackByChannelId
(
channelId
);
StringJoiner
joiner
=
new
StringJoiner
(
"\n"
);
StringJoiner
joiner
=
new
StringJoiner
(
"\n"
);
log
.
info
(
"导出基本配置channelId={}"
,
channelId
);
ClfChannelConfiguration
channelConfiguration
=
clfCenterService
.
findChannelConfigurationByChannelId
(
channelId
);
if
(
Objects
.
nonNull
(
channelConfiguration
))
{
if
(
Objects
.
nonNull
(
channelConfiguration
))
{
joiner
.
add
(
generateInsertSql
(
channelConfiguration
));
joiner
.
add
(
generateInsertSql
(
channelConfiguration
));
}
}
log
.
info
(
"导出回调配置channelId={}"
,
channelId
);
ClfCallbackConfiguration
callbackConfiguration
=
clfCenterService
.
findCallbackConfigurationByChannelId
(
channelId
);
if
(
Objects
.
nonNull
(
callbackConfiguration
))
{
if
(
Objects
.
nonNull
(
callbackConfiguration
))
{
joiner
.
add
(
generateInsertSql
(
callbackConfiguration
));
joiner
.
add
(
generateInsertSql
(
callbackConfiguration
));
}
}
log
.
info
(
"导出进件配置项配置channelId={}"
,
channelId
);
List
<
ChannelApplyInfoStrategy
>
channelApplyInfoStrategies
=
clfCenterService
.
findChannelApplyInfoStrategyByChannelId
(
channelId
);
if
(
CollectionUtils
.
isNotEmpty
(
channelApplyInfoStrategies
))
{
if
(
CollectionUtils
.
isNotEmpty
(
channelApplyInfoStrategies
))
{
for
(
ChannelApplyInfoStrategy
channelApplyInfoStrategy
:
channelApplyInfoStrategies
)
{
for
(
ChannelApplyInfoStrategy
channelApplyInfoStrategy
:
channelApplyInfoStrategies
)
{
joiner
.
add
(
generateInsertSql
(
channelApplyInfoStrategy
));
joiner
.
add
(
generateInsertSql
(
channelApplyInfoStrategy
));
}
}
}
}
log
.
info
(
"导出密钥配置channelId={}"
,
channelId
);
ChannelSecurityKey
channelSecurityKey
=
clfCenterService
.
findChannelSecurityByChannelId
(
channelId
);
if
(
Objects
.
nonNull
(
channelSecurityKey
))
{
if
(
Objects
.
nonNull
(
channelSecurityKey
))
{
joiner
.
add
(
generateInsertSql
(
channelSecurityKey
));
joiner
.
add
(
generateInsertSql
(
channelSecurityKey
));
}
}
log
.
info
(
"导出订单回调配置channelId={}"
,
channelId
);
List
<
ClfOrderCallBack
>
orderCallBackList
=
clfCenterService
.
findClfOrderCallBackByChannelId
(
channelId
);
if
(
CollectionUtils
.
isNotEmpty
(
orderCallBackList
))
{
if
(
CollectionUtils
.
isNotEmpty
(
orderCallBackList
))
{
for
(
ClfOrderCallBack
orderCallBack
:
orderCallBackList
)
{
for
(
ClfOrderCallBack
orderCallBack
:
orderCallBackList
)
{
joiner
.
add
(
generateInsertSql
(
orderCallBack
));
joiner
.
add
(
generateInsertSql
(
orderCallBack
));
...
...
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