|
@@ -22,28 +22,28 @@ public class SpecialReportController {
|
|
|
@Resource
|
|
|
private SpecialReportService specialReportService;
|
|
|
|
|
|
-// @GetMapping("/generate")
|
|
|
-// @ApiOperation("生成专项诊断第一页知识点报告")
|
|
|
-// public SpecialResult generate(Long pid, Long uid) {
|
|
|
-// return specialReportService.generate(pid, uid);
|
|
|
-// }
|
|
|
-
|
|
|
@GetMapping("/generate")
|
|
|
- @ApiOperation("生成专项诊断第一页知识点报告")
|
|
|
+ @ApiOperation("学生端 生成专项诊断第一页知识点报告 ")
|
|
|
+ public SpecialResult generate(Long pid, Long uid) {
|
|
|
+ return specialReportService.generate(pid, uid);
|
|
|
+ }
|
|
|
+
|
|
|
+ @GetMapping("/generate1")
|
|
|
+ @ApiOperation("管理端 生成专项诊断第一页知识点报告")
|
|
|
public SpecialResult generate(Long resultId) {
|
|
|
return specialReportService.generate(resultId);
|
|
|
}
|
|
|
|
|
|
-// @GetMapping("/generateMind")
|
|
|
-// @ApiOperation("生成专项诊断第二页思维过程报告")
|
|
|
-// public List<SpecialMindVo> generateMind(Long pid, Long uid) {
|
|
|
-// List<SpecialMindVo> list = specialReportService.generateMind(pid, uid);
|
|
|
-// list.sort(Comparator.comparingInt(SpecialMindVo::getSort));
|
|
|
-// return list;
|
|
|
-// }
|
|
|
-
|
|
|
@GetMapping("/generateMind")
|
|
|
@ApiOperation("生成专项诊断第二页思维过程报告")
|
|
|
+ public List<SpecialMindVo> generateMind(Long pid, Long uid) {
|
|
|
+ List<SpecialMindVo> list = specialReportService.generateMind(pid, uid);
|
|
|
+ list.sort(Comparator.comparingInt(SpecialMindVo::getSort));
|
|
|
+ return list;
|
|
|
+ }
|
|
|
+
|
|
|
+ @GetMapping("/generateMind1")
|
|
|
+ @ApiOperation("管理端 生成专项诊断第二页思维过程报告")
|
|
|
public List<SpecialMindVo> generateMind(Long resultId) {
|
|
|
List<SpecialMindVo> list = specialReportService.generateMind(resultId);
|
|
|
list.sort(Comparator.comparingInt(SpecialMindVo::getSort));
|