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 @@