Procházet zdrojové kódy

t_class_teacher更改主键字段名

ywx
王宁 před 2 měsíci
rodič
revize
bc1ae9e9ee

+ 1
- 1
sapi/src/main/java/com/xhkjedu/sapi/model/gradeclass/TClassTeacher.java Zobrazit soubor

@@ -12,7 +12,7 @@ import javax.persistence.Transient;
12 12
 public class TClassTeacher extends BaseBean {
13 13
     //班级教师表
14 14
     @Id
15
-    private Integer ctid;
15
+    private Integer cteacherid;
16 16
 
17 17
     //班级id
18 18
     private Integer classid;

+ 1
- 1
slive/src/main/java/com/xhkjedu/slive/model/gradeclass/TClassTeacher.java Zobrazit soubor

@@ -12,7 +12,7 @@ import javax.persistence.Transient;
12 12
 public class TClassTeacher extends BaseBean {
13 13
     //班级教师表
14 14
     @Id
15
-    private Integer ctid;
15
+    private Integer cteacherid;
16 16
 
17 17
     //班级id
18 18
     private Integer classid;

+ 0
- 7
suser/src/main/java/com/xhkjedu/suser/controller/gradeclass/ClassTeacherController.java Zobrazit soubor

@@ -49,13 +49,6 @@ public class ClassTeacherController {
49 49
         return new ResultVo(0,"修改成功");
50 50
     }
51 51
 
52
-    @PostMapping("/detail")
53
-    public ResultVo detail(@RequestBody TClassTeacher tClassTeacher) {
54
-        N_Utils.validation(new Object[]{tClassTeacher.getCtid(),"班级教师id",1});
55
-        TClassTeacher classTeacher = classTeacherService.findById(tClassTeacher.getCtid());
56
-        return new ResultVo(0,"获取详情成功",classTeacher);
57
-    }
58
-
59 52
     @PostMapping("/list")
60 53
     public ResultVo list(@RequestBody TClassTeacher tClassTeacher) {
61 54
         Integer schoolid = tClassTeacher.getSchoolid();

+ 1
- 1
suser/src/main/java/com/xhkjedu/suser/model/gradeclass/TClassTeacher.java Zobrazit soubor

@@ -12,7 +12,7 @@ import javax.persistence.Transient;
12 12
 public class TClassTeacher extends BaseBean {
13 13
     //班级教师表
14 14
     @Id
15
-    private Integer ctid;
15
+    private Integer cteacherid;
16 16
 
17 17
     //班级id
18 18
     private Integer classid;

+ 0
- 4
suser/src/main/java/com/xhkjedu/suser/service/gradeclass/ClassTeacherService.java Zobrazit soubor

@@ -67,10 +67,6 @@ public class ClassTeacherService {
67 67
         userService.update(user);
68 68
     }
69 69
 
70
-    //获取详情
71
-    public TClassTeacher findById(Integer teacherid) {
72
-        return classTeacherMapper.selectByPrimaryKey(teacherid);
73
-    }
74 70
 
75 71
     //获取列表
76 72
     public List <ClassTeacherVo> findAll(TClassTeacher teacher, Integer year) {

Načítá se…
Zrušit
Uložit