统计标签,加判断

master
wujingtao 2 years ago
parent f183683bb3
commit b427b268ee

@ -30,7 +30,7 @@ public class ReportSync {
/**
* 23
*/
// @Scheduled(cron = "0 0/1 * * * ? ")
// @Scheduled(cron = "0 0/5 * * * ? ")
@Scheduled(cron = "0 0 23 * * ? ")
public void reportToker() {
log.info("拓客投流统计 开始------------------{}", DateUtil.date());
@ -63,7 +63,10 @@ public class ReportSync {
int notTurnOn = 0;
for (ClueMiddle clueMiddle : clueMiddlesByTaskId) {
//标签
String sourceLabel = clueMiddle.getSourceLabel().get(0);
String sourceLabel = "";
if (clueMiddle.getSourceLabel().size() > 0) {
sourceLabel = clueMiddle.getSourceLabel().get(0);
}
switch (sourceLabel) {
case SourceLabelConstants.INTENTION:
intention += 1;

Loading…
Cancel
Save