Browse Source

教师管理列表返回用户状态

tags/正式3.10.0
雍文秀 1 year ago
parent
commit
4c1aac70dd

+ 3
- 0
suser/src/main/java/com/xhkjedu/suser/vo/gradeclass/ClassTeacherVo.java View File

33
 
33
 
34
     //科目名称
34
     //科目名称
35
     private String subjectname;
35
     private String subjectname;
36
+
37
+    //用户状态1正常2删除
38
+    private Integer userstate;
36
 }
39
 }

+ 1
- 0
suser/src/main/resources/mapper/gradeclass/ClassTeacherMapper.xml View File

8
         ,(select s.subjectname from t_teacher_powersb ts left join t_subject_book sb on ts.lsbid=sb.lsbid
8
         ,(select s.subjectname from t_teacher_powersb ts left join t_subject_book sb on ts.lsbid=sb.lsbid
9
         left join t_subject s on sb.subjectid=s.subjectid
9
         left join t_subject s on sb.subjectid=s.subjectid
10
         where ts.teacherid=u.userid limit 1)subjectname
10
         where ts.teacherid=u.userid limit 1)subjectname
11
+        ,u.userstate
11
         from t_user u
12
         from t_user u
12
         <if test="teacher.gradeid!=null and teacher.gradeid!=0">
13
         <if test="teacher.gradeid!=null and teacher.gradeid!=0">
13
             left join t_class_teacher ct on ct.teacherid=u.userid
14
             left join t_class_teacher ct on ct.teacherid=u.userid

Loading…
Cancel
Save