推客统计

This commit is contained in:
2025-06-10 15:12:28 +08:00
parent e32f231a8f
commit a84b38dab5

View File

@ -43,7 +43,7 @@
WHERE DATE_ADD(#{startTime}, INTERVAL (units.i + tens.i * 10 + hundreds.i * 100) DAY) <= #{endTime}
) date_series
LEFT JOIN broker_record br ON DATE(br.create_time) = date_series.date AND br.broker_id = #{brokerId}
LEFT JOIN t_stats_record s ON s.action = 'CODE_SCAN' and s.identifier = br.id
LEFT JOIN t_stats_record s ON s.action = 'CODE_SCAN' and DATE(s.create_time) = date_series.date and s.identifier = #{brokerId}
GROUP BY date_series.date
ORDER BY date_series.date
</select>