派生自 projectDept/qhighschool

yn147
2023-11-25 63c8bc319fd02d9f39b729f136fb3af01c773de1
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) {