From 49cfb374045d9d2bf8bfb29e521454e97fea26bf Mon Sep 17 00:00:00 2001 From: "hhb@hotmail.com" Date: Mon, 2 Dec 2024 14:39:00 +0800 Subject: [PATCH] =?UTF-8?q?update=20=E6=95=99=E5=B8=88=E8=BA=AB=E5=88=86?= =?UTF-8?q?=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../admin/service/impl/TeacherServiceImpl.java | 2 ++ .../java/cn/teammodel/model/vo/admin/GpTeacherVo.java | 10 ++++++++++ 2 files changed, 12 insertions(+) diff --git a/src/main/java/cn/teammodel/controller/admin/service/impl/TeacherServiceImpl.java b/src/main/java/cn/teammodel/controller/admin/service/impl/TeacherServiceImpl.java index bea99cc..48b9502 100644 --- a/src/main/java/cn/teammodel/controller/admin/service/impl/TeacherServiceImpl.java +++ b/src/main/java/cn/teammodel/controller/admin/service/impl/TeacherServiceImpl.java @@ -225,6 +225,8 @@ public class TeacherServiceImpl implements TeacherService { teacher.setPicture((String) map.get("picture")); teacher.setIname((String) map.get("iname")); teacher.setJob((String) map.get("job")); + teacher.setRoles((List) map.get("roles")); + teacher.setGroups((List) map.get("groups")); //teacher.setDegree((String) map.get("degree")); //teacher.setPracticeTime((String) map.get("practiceTime")); //teacher.setGender((String) map.get("gender")); diff --git a/src/main/java/cn/teammodel/model/vo/admin/GpTeacherVo.java b/src/main/java/cn/teammodel/model/vo/admin/GpTeacherVo.java index e6e1342..af59296 100644 --- a/src/main/java/cn/teammodel/model/vo/admin/GpTeacherVo.java +++ b/src/main/java/cn/teammodel/model/vo/admin/GpTeacherVo.java @@ -15,9 +15,19 @@ public class GpTeacherVo { public String job ; public List subjectIds ; public List subjectNames ; + public List roles; + public List groups; public String note ; public String degree; public Long practiceTime ; public String gender ; + @Data + public static class IdNameCode{ + public String id ; + public String name ; + public String code ; + public String picture ; + public String nickname ; + } }