Commit fb11a55a by 毛树良

[chg]全天分析后,默认不在跑支付事件数据,因为这个功能已迁移至VVAS-PayAnalysis服务中;如果项目未部署VVAS-PayAnalysis服务,又需要支付事件,可以开启;

1 parent 88afe9d5
......@@ -35,6 +35,9 @@ public class MallDataStatisticsConsumer {
@Value("${vion.consumer.mallDataStatistics.zoneNum:true}")
private boolean zoneNumEnable;
@Value("${vion.consumer.mallDataStatistics.payEvent:false}")
private boolean payEventEnable;
private ExecutorService executorService = ThreadUtil.newFixedExecutor(1, 1024, "dataStatistics-", true);
@KafkaListener(topics = KafkaConstants.MALL_DATA_STATISTICS_TOPIC
......@@ -196,6 +199,7 @@ public class MallDataStatisticsConsumer {
}
}
if (payEventEnable) {
url = reidUrl + "/reid/tool/payEvent?mallId=" + mallDataStatisticsInfo.getMallId() + "&countDate=" + date;
try {
String result = HttpUtil.get(url);
......@@ -204,4 +208,5 @@ public class MallDataStatisticsConsumer {
log.error("收银事件计算异常:{}", url, e);
}
}
}
}
......@@ -81,3 +81,4 @@ vion.consumer.mallDataStatistics.autoStartup=true
vion.consumer.mallDataStatistics.concurrency=1
vion.consumer.mallDataStatistics.reidUrl=http://10.0.14.11:23456
vion.consumer.mallDataStatistics.zoneNum=false
vion.consumer.mallDataStatistics.payEvent=false
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!