修改统计单位为分钟
This commit is contained in:
@@ -29,9 +29,9 @@ public interface AudioManagementStatisticsMapper extends BaseMapper<AudioManagem
|
||||
@Select("SELECT " +
|
||||
"dealership_id, " +
|
||||
"dealership_name, " +
|
||||
"SUM(duration * 60) as total_duration_seconds, " +
|
||||
"SUM(duration) as total_duration_minutes, " +
|
||||
"COUNT(*) as recording_count, " +
|
||||
"AVG(duration * 60) as avg_duration_seconds " +
|
||||
"AVG(duration) as avg_duration_minutes " +
|
||||
"FROM audio_management " +
|
||||
"WHERE DATE(recording_time) = #{date} " +
|
||||
"AND dealership_id IS NOT NULL " +
|
||||
@@ -47,9 +47,9 @@ public interface AudioManagementStatisticsMapper extends BaseMapper<AudioManagem
|
||||
@Select("SELECT " +
|
||||
"sales_id, " +
|
||||
"sales_name, " +
|
||||
"SUM(duration * 60) as total_duration_seconds, " +
|
||||
"SUM(duration) as total_duration_minutes, " +
|
||||
"COUNT(*) as recording_count, " +
|
||||
"AVG(duration * 60) as avg_duration_seconds " +
|
||||
"AVG(duration) as avg_duration_minutes " +
|
||||
"FROM audio_management " +
|
||||
"WHERE DATE(recording_time) = #{date} " +
|
||||
"AND sales_id IS NOT NULL " +
|
||||
@@ -65,9 +65,9 @@ public interface AudioManagementStatisticsMapper extends BaseMapper<AudioManagem
|
||||
@Select("SELECT " +
|
||||
"project_id, " +
|
||||
"project_name, " +
|
||||
"SUM(duration * 60) as total_duration_seconds, " +
|
||||
"SUM(duration) as total_duration_minutes, " +
|
||||
"COUNT(*) as recording_count, " +
|
||||
"AVG(duration * 60) as avg_duration_seconds " +
|
||||
"AVG(duration) as avg_duration_minutes " +
|
||||
"FROM audio_management " +
|
||||
"WHERE DATE(recording_time) = #{date} " +
|
||||
"AND project_id IS NOT NULL " +
|
||||
|
||||
Reference in New Issue
Block a user