From 0292b754fe110c054231f9fdede04e09c9d28429 Mon Sep 17 00:00:00 2001 From: Jerry Yan <792602257@qq.com> Date: Mon, 26 May 2025 17:29:13 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=9F=E8=AE=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../resources/mapper/StatisticsMapper.xml | 92 ++++++++++++------- 1 file changed, 57 insertions(+), 35 deletions(-) diff --git a/src/main/resources/mapper/StatisticsMapper.xml b/src/main/resources/mapper/StatisticsMapper.xml index a149fa8..1ccba5d 100644 --- a/src/main/resources/mapper/StatisticsMapper.xml +++ b/src/main/resources/mapper/StatisticsMapper.xml @@ -25,9 +25,9 @@ select count(1) as count FROM `t_stats_record` r left join `t_stats` s on r.trace_id=s.trace_id - where r.trace_id in (select trace_id from `t_stats_record` where action = "ENTER_SCENIC" and `identifier`=#{scenicId}) - and action = "LOAD" - and identifier = "pages/videoSynthesis/buy" + where r.trace_id in (select trace_id from `t_stats_record` where action = 'ENTER_SCENIC' and `identifier`=#{scenicId}) + and action = 'LOAD' + and identifier = 'pages/videoSynthesis/buy' and JSON_EXTRACT(`params`, '$.share') is null and r.create_time >= #{startTime} @@ -45,8 +45,8 @@ select 1 FROM `t_stats_record` r left join `t_stats` s on r.trace_id=s.trace_id - where r.trace_id in (select trace_id from `t_stats_record` where action = "ENTER_SCENIC" and `identifier`=#{scenicId}) - and action = "LAUNCH" + where r.trace_id in (select trace_id from `t_stats_record` where action = 'ENTER_SCENIC' and `identifier`=#{scenicId}) + and action = 'LAUNCH' and JSON_EXTRACT(`params`, '$.scene') in (1047,1048,1049) and s.create_time >= #{startTime} @@ -128,8 +128,8 @@ select count(1) as count FROM `t_stats_record` r left join `t_stats` s on r.trace_id=s.trace_id - where r.trace_id in (select trace_id from `t_stats_record` where action = "ENTER_SCENIC" and `identifier`=#{scenicId}) - and action = "PERM_REQ" and identifier = "NOTIFY" + where r.trace_id in (select trace_id from `t_stats_record` where action = 'ENTER_SCENIC' and `identifier`=#{scenicId}) + and action = 'PERM_REQ' and identifier = 'NOTIFY' and r.create_time >= #{startTime} @@ -153,30 +153,40 @@