Browse Source

教材相关基础信息添加管理列表信息list_manage

tags/正式3.13.0
王宁 1 year ago
parent
commit
8b932df2e1

+ 15
- 0
sstudy/src/main/java/com/xhkjedu/sstudy/controller/subjectbook/DirectorController.java View File

@@ -26,6 +26,20 @@ public class DirectorController {
26 26
     @Autowired
27 27
     private DirectorService directorService;
28 28
 
29
+    /*
30
+     * @Description 章节管理列表
31
+     * @Date 2023/11/28 10:23:52
32
+     * @Author WN
33
+     * @Param [director]
34
+     * @Return com.xhkjedu.vo.ResultVo
35
+     **/
36
+    @PostMapping("/list_manage")
37
+    public ResultVo listManage(@RequestBody TDirector director) {
38
+        N_Utils.validation(new Object[]{director.getLsbid(), "教材id", 1});
39
+        List<TDirector> lst = directorService.lisTDirectors(director);
40
+        return new ResultVo(0, "获取教材下章节成功", lst);
41
+    }
42
+
29 43
     /**
30 44
      * 功能描述  教材下章节树形结构
31 45
      *
@@ -41,6 +55,7 @@ public class DirectorController {
41 55
         return new ResultVo(0, "获取教材下章节成功", lst);
42 56
     }
43 57
 
58
+
44 59
     /**
45 60
      * 功能描述  添加
46 61
      *

+ 13
- 0
sstudy/src/main/java/com/xhkjedu/sstudy/controller/subjectbook/PointController.java View File

@@ -27,6 +27,19 @@ public class PointController {
27 27
     @Autowired
28 28
     private PointService pointService;
29 29
 
30
+    /*
31
+     * @Description 知识点管理列表
32
+     * @Date 2023/11/28 10:25:01
33
+     * @Author WN
34
+     * @Param [point]
35
+     * @Return com.xhkjedu.vo.ResultVo
36
+     **/
37
+    @PostMapping("/list_manage")
38
+    public ResultVo listManage(@RequestBody TPoint point){
39
+        N_Utils.validation(new Object[]{point.getSubjectid(),"科目id",2});
40
+        List<TPoint> lst = pointService.listPoints(point);
41
+        return new ResultVo(0,"获取科目下知识点成功",lst);
42
+    }
30 43
     /**
31 44
      *功能描述  科目下知识点列表
32 45
      * @author WN

+ 16
- 0
sstudy/src/main/java/com/xhkjedu/sstudy/controller/subjectbook/SubjectBookController.java View File

@@ -104,6 +104,22 @@ public class SubjectBookController {
104 104
         return new ResultVo(0,"获取教材树形结构成功",lst);
105 105
     }
106 106
 
107
+    /**
108
+     *功能描述  教材管理列表
109
+     * @author WN
110
+     * @date 2020/6/7
111
+     * @param  * @param subjectBook
112
+     * @return com.xhkjedu.vo.ResultVo
113
+     */
114
+    @PostMapping("/list_manage")
115
+    public ResultVo listManage(@RequestBody TSubjectBook subjectBook){
116
+        N_Utils.validation(new Object[]{
117
+                subjectBook.getLevel(),"阶段",1
118
+        });
119
+        List<TSubjectBook> lst = subjectBookService.listSubjectBooks(subjectBook);
120
+        return new ResultVo(0,"获取所有教材集合",lst);
121
+    }
122
+
107 123
     /**
108 124
      *功能描述  获取教材集合
109 125
      * @author WN

+ 13
- 0
sstudy/src/main/java/com/xhkjedu/sstudy/controller/subjectbook/SubjectController.java View File

@@ -28,6 +28,19 @@ public class SubjectController {
28 28
     @Autowired
29 29
     private SubjectService subjectService;
30 30
 
31
+    /*
32
+     * @Description 科目管理列表
33
+     * @Date 2023/11/28 10:29:09
34
+     * @Author WN
35
+     * @Param [subject]
36
+     * @Return com.xhkjedu.vo.ResultVo
37
+     **/
38
+    @PostMapping("/list_manage")
39
+    public ResultVo listManage(@RequestBody TSubject subject){
40
+        List<TSubject> lst = subjectService.listSubjects(subject);
41
+        return new ResultVo(0,"查询科目集合成功",lst);
42
+    }
43
+
31 44
     /**
32 45
      *功能描述  获取阶段下所有科目信息
33 46
      * @author WN

+ 14
- 0
sstudy/src/main/java/com/xhkjedu/sstudy/controller/subjectbook/SubjectQuestiontypeController.java View File

@@ -26,6 +26,20 @@ public class SubjectQuestiontypeController {
26 26
     @Autowired
27 27
     private SubjectQuestiontypeService subjectQuestiontypeService;
28 28
 
29
+    /*
30
+     * @Description 题型管理列表
31
+     * @Date 2023/11/28 10:29:43
32
+     * @Author WN
33
+     * @Param [qtype]
34
+     * @Return com.xhkjedu.vo.ResultVo
35
+     **/
36
+    @PostMapping("/list_manage")
37
+    public ResultVo listManage(@RequestBody TSubjectQuestiontype qtype){
38
+        N_Utils.validation(new Object[]{qtype.getSubjectid(),"科目",1});
39
+        List<TSubjectQuestiontype> lst = subjectQuestiontypeService.listQuestiontypes(qtype);
40
+        return new ResultVo(0,"查询题型集合成功",lst);
41
+    }
42
+
29 43
     /**
30 44
      *功能描述 科目下题型列表
31 45
      * @author WN

+ 13
- 0
sstudy/src/main/java/com/xhkjedu/sstudy/controller/subjectbook/VersionController.java View File

@@ -25,6 +25,19 @@ public class VersionController {
25 25
     @Autowired
26 26
     private VersionService versionService;
27 27
 
28
+    /*
29
+     * @Description 版本管理列表
30
+     * @Date 2023/11/28 10:30:32
31
+     * @Author WN
32
+     * @Param [version]
33
+     * @Return com.xhkjedu.vo.ResultVo
34
+     **/
35
+    @PostMapping("/list_manage")
36
+    public ResultVo listManage(@RequestBody TVersion version){
37
+        List<TVersion> lst = versionService.listVersions(version);
38
+        return new ResultVo(0,"查询教材版本集合成功",lst);
39
+    }
40
+
28 41
     /**
29 42
      *功能描述 列表
30 43
      * @author WN

Loading…
Cancel
Save