Commit 1278c757 by songyinghui

feature: 触达日志 操作日志记录

parent 11804589
...@@ -34,6 +34,7 @@ public class HoloDataSource implements InitializingBean, DisposableBean { ...@@ -34,6 +34,7 @@ public class HoloDataSource implements InitializingBean, DisposableBean {
holoConfig.setPassword(holoPassword); holoConfig.setPassword(holoPassword);
this.client = new HoloClient(holoConfig); this.client = new HoloClient(holoConfig);
this.client.setAsyncCommit(false); this.client.setAsyncCommit(false);
log.info("holo链接初始化完成");
}catch (Exception ex) { }catch (Exception ex) {
log.info("初始化client 异常 >>>", ex); log.info("初始化client 异常 >>>", ex);
} }
......
...@@ -59,6 +59,7 @@ public class TriggerCustomerDetailServiceImpl implements TriggerCustomerDetailSe ...@@ -59,6 +59,7 @@ public class TriggerCustomerDetailServiceImpl implements TriggerCustomerDetailSe
@Override @Override
public void batchSave(List<TriggerCustomerDetailBO> triggerCustomerDetailBos) { public void batchSave(List<TriggerCustomerDetailBO> triggerCustomerDetailBos) {
if (CollectionUtils.isEmpty(triggerCustomerDetailBos)) { if (CollectionUtils.isEmpty(triggerCustomerDetailBos)) {
log.info("无客户触达日志 >>>> ");
return; return;
} }
Config appConfig = ConfigService.getAppConfig(); Config appConfig = ConfigService.getAppConfig();
...@@ -78,7 +79,7 @@ public class TriggerCustomerDetailServiceImpl implements TriggerCustomerDetailSe ...@@ -78,7 +79,7 @@ public class TriggerCustomerDetailServiceImpl implements TriggerCustomerDetailSe
try { try {
HoloClient client = holoDataSource.getClient(); HoloClient client = holoDataSource.getClient();
if (client == null) { if (client == null) {
log.error("数仓数据源链接异常, 请检查!!!!"); log.error("数仓数据源链接异常, 请检查!!!!{}", JSON.toJSONString(triggerCustomerDetailBos));
return; return;
} }
TableSchema tableSchema = client.getTableSchema("tab_haoban_trigger_customer_detail"); TableSchema tableSchema = client.getTableSchema("tab_haoban_trigger_customer_detail");
......
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