录音时长统计修改
This commit is contained in:
@@ -95,7 +95,7 @@ public class AudioStatisticsController {
|
||||
* 查询指定销售人员的统计数据
|
||||
*/
|
||||
@Operation(summary = "查询指定销售人员的统计数据", description = "根据销售人员ID或电话号码查询指定日期范围内的录音统计数据")
|
||||
@GetMapping("/sales")
|
||||
@PostMapping("/sales")
|
||||
public Result<?> getStatisticsBySales(
|
||||
@Parameter(description = "销售人员ID")
|
||||
@RequestParam(required = false) String salesId,
|
||||
@@ -141,27 +141,7 @@ public class AudioStatisticsController {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询指定项目的统计数据
|
||||
*/
|
||||
@Operation(summary = "查询指定项目的统计数据", description = "查询指定项目在指定日期范围内的录音统计数据")
|
||||
@GetMapping("/project/{projectId}")
|
||||
public Result<?> getStatisticsByProject(
|
||||
@Parameter(description = "项目ID")
|
||||
@PathVariable String projectId,
|
||||
@Parameter(description = "开始日期,格式:yyyy-MM-dd")
|
||||
@RequestParam @DateTimeFormat(pattern = "yyyy-MM-dd") LocalDate startDate,
|
||||
@Parameter(description = "结束日期,格式:yyyy-MM-dd")
|
||||
@RequestParam @DateTimeFormat(pattern = "yyyy-MM-dd") LocalDate endDate) {
|
||||
try {
|
||||
List<AudioManagementStatistics> statistics = audioStatisticsService.getStatisticsByProject(projectId, startDate, endDate);
|
||||
Result<?> result = Result.ok(statistics);
|
||||
result.setMsg("查询成功");
|
||||
return result;
|
||||
} catch (Exception e) {
|
||||
return Result.error("查询失败:" + e.getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 查询指定日期的统计数据
|
||||
|
||||
Reference in New Issue
Block a user