Commit def4b2d2 authored by 王向伟's avatar 王向伟

导出配置添加日志

parent 53306eef
...@@ -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));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment