From 63c8bc319fd02d9f39b729f136fb3af01c773de1 Mon Sep 17 00:00:00 2001 From: yn147 <2270338776@qq.com> Date: 星期六, 25 十一月 2023 14:27:14 +0800 Subject: [PATCH] 学籍导入、班级 --- src/main/java/com/qxueyou/scc/controller/TeacherController.java | 57 +++++++++++++++++++++++++++++++++++++++++---------------- 1 files changed, 41 insertions(+), 16 deletions(-) diff --git a/src/main/java/com/qxueyou/scc/controller/TeacherController.java b/src/main/java/com/qxueyou/scc/controller/TeacherController.java index 78c17ab..54a1d54 100644 --- a/src/main/java/com/qxueyou/scc/controller/TeacherController.java +++ b/src/main/java/com/qxueyou/scc/controller/TeacherController.java @@ -18,7 +18,7 @@ import com.qxueyou.scc.user.model.UserTeacher; /** - * 教师管理控制器 + * 鏁欏笀绠$悊鎺у埗鍣� * * @author chenjunliang * @@ -30,14 +30,39 @@ private ITeacherService teacherService; /** - * 教师管理显示列表 + * 鏁欏笀绠$悊鏄剧ず鍒楄〃 * * @param pageSize - * 每页显示几条 + * 姣忛〉鏄剧ず鍑犳潯 * @param pageNum - * 页码 + * 椤电爜 * @param keyword - * 索搜关键字 + * 绱㈡悳鍏抽敭瀛� + */ +// @GetMapping(value = "lstTeacher") +// public Result lstTeacher(String keyword, Integer pageSize, Integer pageNum) { +// +// List<UserTeacher> teacherLst = teacherService.lstTeacher(keyword == null ? "" : keyword.trim(), pageSize, pageNum); +// +// int count = teacherService.findTeacherCount(keyword == null ? "" : keyword.trim()); +// +// return new Result(true, "success", +// CollectionUtils.newObjectMap("teacherLst", +// QBeanUtils.listBean2ListMap(teacherLst, +// CollectionUtils.newStringMap("mobilePhone", "mobilePhone,account", "name", +// "teacherName", "teacherId", "teacherId", "teacherNo", "teacherNo")), +// "teacherCount", count)); +// } + + /** + * 鍚庡彴鐢ㄦ埛绠$悊鏄剧ず鍒楄〃 + * + * @param pageSize + * 姣忛〉鏄剧ず鍑犳潯 + * @param pageNum + * 椤电爜 + * @param keyword + * 绱㈡悳鍏抽敭瀛� */ @GetMapping(value = "lstTeacher") public Result lstTeacher(String keyword, Integer pageSize, Integer pageNum) { @@ -55,18 +80,18 @@ } /** - * 教师管理新增/更新 + * 鏁欏笀绠$悊鏂板/鏇存柊 * * @param teacherId * * @param teacherName - * 老师名称 + * 鑰佸笀鍚嶇О * @param account - * 账号 + * 璐﹀彿 * @param password - * 密码 + * 瀵嗙爜 * @param mobilePhone - * 手机 + * 鎵嬫満 */ @PostMapping(value = "addOrUpdate") public Result addOrUpdate(String teacherId, String teacherName, String account, String password, String mobilePhone, @@ -80,10 +105,10 @@ } /** - * 教师管理 删除教师 + * 鏁欏笀绠$悊 鍒犻櫎鏁欏笀 * * @param teacherIds - * 老师ids + * 鑰佸笀ids */ @PostMapping(value = "delete") public Result deleteTeacher(String teacherIds) { @@ -91,7 +116,7 @@ } /** - * 教师管理导出 + * 鏁欏笀绠$悊瀵煎嚭 */ @GetMapping(value = "exportTeacher") public Result export(HttpServletResponse response) { @@ -99,7 +124,7 @@ } /** - * 教室管理导入 + * 鏁欏绠$悊瀵煎叆 */ @GetMapping(value = "importTeacher") public Result importTeacher() { @@ -107,7 +132,7 @@ } /** - * 新增班级获取教师列表 + * 鏂板鐝骇鑾峰彇鏁欏笀鍒楄〃 */ @GetMapping(value = "getLstTeacher4Cls") public Result getLstTeacher4Cls() { @@ -117,7 +142,7 @@ } /** - * 新增班级获取教师列表 + * 鏂板鐝骇鑾峰彇鏁欏笀鍒楄〃 */ @GetMapping(value = "getTeacherbyUserId") public Result getTeacherbyUserId(String userId) { -- Gitblit v1.8.0