|
|
@ -15,11 +15,7 @@ public class KnowledgePointController { |
|
|
private KnowledgePointApplicationService knowledgePointApplicationService; |
|
|
private KnowledgePointApplicationService knowledgePointApplicationService; |
|
|
|
|
|
|
|
|
@GetMapping("/getStatistics") |
|
|
@GetMapping("/getStatistics") |
|
|
public Result<KnowledgePointStatisticsDTO> getSum(Long subLineId){ |
|
|
public Result<KnowledgePointStatisticsDTO> getSum(Long subLineId) throws Exception { |
|
|
try { |
|
|
return knowledgePointApplicationService.getStatistics(subLineId); |
|
|
return knowledgePointApplicationService.getStatistics(subLineId); |
|
|
|
|
|
} catch (Exception e) { |
|
|
|
|
|
throw new RuntimeException(e); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|