录音时长统计修改
This commit is contained in:
@@ -91,33 +91,11 @@ public class AudioManagementStatisticsServiceTest {
|
||||
|
||||
// 打印销售人员统计信息
|
||||
for (AudioManagementStatistics stat : statistics) {
|
||||
System.out.println("销售人员: " + stat.getSalesName() +
|
||||
System.out.println("销售人员ID: " + stat.getSalesId() +
|
||||
", 日期: " + stat.getStatisticsDate() +
|
||||
", 录音数量: " + stat.getSalesRecordingCount() +
|
||||
", 总时长: " + stat.getSalesTotalDuration() + "秒" +
|
||||
", 平均时长: " + stat.getSalesAvgDuration() + "秒");
|
||||
}
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testGetStatisticsByProject() {
|
||||
// 测试查询指定项目的统计数据
|
||||
String projectId = "project001"; // 假设项目ID
|
||||
LocalDate startDate = LocalDate.now().minusDays(30); // 最近30天
|
||||
LocalDate endDate = LocalDate.now().minusDays(1);
|
||||
|
||||
List<AudioManagementStatistics> statistics = audioStatisticsService.getStatisticsByProject(projectId, startDate, endDate);
|
||||
|
||||
assertNotNull(statistics, "统计列表不应该为null");
|
||||
System.out.println("查询到项目统计记录数: " + statistics.size());
|
||||
|
||||
// 打印项目统计信息
|
||||
for (AudioManagementStatistics stat : statistics) {
|
||||
System.out.println("项目: " + stat.getProjectName() +
|
||||
", 日期: " + stat.getStatisticsDate() +
|
||||
", 录音数量: " + stat.getProjectRecordingCount() +
|
||||
", 总时长: " + stat.getProjectTotalDuration() + "秒" +
|
||||
", 平均时长: " + stat.getProjectAvgDuration() + "秒");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user