소스 검색

FIX: 进线转化统计字段修复

xdd 2 일 전
부모
커밋
385d63255f
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      fs-service/src/main/resources/mapper/statis/FsStatisQwWatchMapper.xml

+ 2 - 2
fs-service/src/main/resources/mapper/statis/FsStatisQwWatchMapper.xml

@@ -413,8 +413,8 @@
             company_user_id,
             qw_user_id,
             COUNT(DISTINCT log_id) as send_count,
-            COUNT(DISTINCT sop_id,camp_period_time) as period_person_count,
-            COUNT(DISTINCT qw_external_contact_id) as period_count,
+            COUNT(DISTINCT sop_id) as period_count,
+            COUNT(DISTINCT CASE WHEN sop_id is not null then qw_external_contact_id END) as period_person_count,
             COUNT(DISTINCT CASE WHEN log_type = 3 THEN log_id END) as not_register_count,
             COUNT(DISTINCT CASE WHEN log_type = 2 THEN log_id END) as completed_count,
             COUNT(DISTINCT CASE WHEN (log_type = 4 OR log_type = 1) THEN log_id END) as interrupt_count