From 75bf76981e589cf435b41f13496a27dacd6cf80b Mon Sep 17 00:00:00 2001 From: wans <747101512@qq.com> Date: Mon, 3 May 2021 12:02:09 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=AE=B2=E5=B8=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../tenlion/teacher/controller/apis/TeacherController.java | 3 +-- .../java/cn/com/tenlion/teacher/dao/teacher/ITeacherDao.java | 3 +-- .../java/cn/com/tenlion/teacher/service/ITeacherService.java | 3 +-- .../com/tenlion/teacher/service/impl/TeacherServiceImpl.java | 5 ++--- 4 files changed, 5 insertions(+), 9 deletions(-) diff --git a/src/main/java/cn/com/tenlion/teacher/controller/apis/TeacherController.java b/src/main/java/cn/com/tenlion/teacher/controller/apis/TeacherController.java index 46f1efe..5ee7876 100644 --- a/src/main/java/cn/com/tenlion/teacher/controller/apis/TeacherController.java +++ b/src/main/java/cn/com/tenlion/teacher/controller/apis/TeacherController.java @@ -1,6 +1,5 @@ package cn.com.tenlion.teacher.controller.apis; -import cn.com.tenlion.staff.pojo.dtos.basicstaffinfo.BasicStaffInfoDTO; import cn.com.tenlion.teacher.pojo.dtos.TeacherDTO; import cn.com.tenlion.teacher.pojo.vos.TeacherVO; import cn.com.tenlion.teacher.service.ITeacherService; @@ -64,7 +63,7 @@ public class TeacherController extends DefaultBaseController { }) @ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)}) @GetMapping("getbyid/{teacherId}") - public BasicStaffInfoDTO getbyid(@PathVariable("teacherId") String teacherId) throws SearchException { + public TeacherDTO getbyid(@PathVariable("teacherId") String teacherId) throws SearchException { return teacherService.getById(teacherId); } diff --git a/src/main/java/cn/com/tenlion/teacher/dao/teacher/ITeacherDao.java b/src/main/java/cn/com/tenlion/teacher/dao/teacher/ITeacherDao.java index 0eb79a8..ab277c0 100644 --- a/src/main/java/cn/com/tenlion/teacher/dao/teacher/ITeacherDao.java +++ b/src/main/java/cn/com/tenlion/teacher/dao/teacher/ITeacherDao.java @@ -1,6 +1,5 @@ package cn.com.tenlion.teacher.dao.teacher; -import cn.com.tenlion.staff.pojo.dtos.basicstaffinfo.BasicStaffInfoDTO; import cn.com.tenlion.teacher.pojo.dtos.TeacherDTO; import org.springframework.stereotype.Repository; @@ -33,7 +32,7 @@ public interface ITeacherDao { * @param params * @return */ - BasicStaffInfoDTO getById(Map params); + TeacherDTO getById(Map params); /** * 讲师列表 diff --git a/src/main/java/cn/com/tenlion/teacher/service/ITeacherService.java b/src/main/java/cn/com/tenlion/teacher/service/ITeacherService.java index beb576c..a3b6090 100644 --- a/src/main/java/cn/com/tenlion/teacher/service/ITeacherService.java +++ b/src/main/java/cn/com/tenlion/teacher/service/ITeacherService.java @@ -1,6 +1,5 @@ package cn.com.tenlion.teacher.service; -import cn.com.tenlion.staff.pojo.dtos.basicstaffinfo.BasicStaffInfoDTO; import cn.com.tenlion.teacher.pojo.dtos.TeacherDTO; import cn.com.tenlion.teacher.pojo.vos.TeacherVO; import ink.wgink.exceptions.RemoveException; @@ -43,7 +42,7 @@ public interface ITeacherService { * @return * @throws SearchException */ - BasicStaffInfoDTO getById(String teacherId) throws SearchException; + TeacherDTO getById(String teacherId) throws SearchException; /** * 讲师修改 diff --git a/src/main/java/cn/com/tenlion/teacher/service/impl/TeacherServiceImpl.java b/src/main/java/cn/com/tenlion/teacher/service/impl/TeacherServiceImpl.java index dac60d2..97020e0 100644 --- a/src/main/java/cn/com/tenlion/teacher/service/impl/TeacherServiceImpl.java +++ b/src/main/java/cn/com/tenlion/teacher/service/impl/TeacherServiceImpl.java @@ -1,6 +1,5 @@ package cn.com.tenlion.teacher.service.impl; -import cn.com.tenlion.staff.pojo.dtos.basicstaffinfo.BasicStaffInfoDTO; import cn.com.tenlion.teacher.dao.teacher.ITeacherDao; import cn.com.tenlion.teacher.pojo.dtos.TeacherDTO; import cn.com.tenlion.teacher.pojo.vos.TeacherVO; @@ -59,10 +58,10 @@ public class TeacherServiceImpl extends DefaultBaseService implements ITeacherSe } @Override - public BasicStaffInfoDTO getById(String teacherId) throws SearchException { + public TeacherDTO getById(String teacherId) throws SearchException { Map params = super.getHashMap(4); params.put("teacherId", teacherId); - BasicStaffInfoDTO dto = teacherDao.getById(params); + TeacherDTO dto = teacherDao.getById(params); return dto; }