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; }