修改讲师

This commit is contained in:
wans 2021-05-03 12:02:09 +08:00
parent 1f4c618e71
commit 75bf76981e
4 changed files with 5 additions and 9 deletions

View File

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

View File

@ -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<String, Object> params);
TeacherDTO getById(Map<String, Object> params);
/**
* 讲师列表

View File

@ -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;
/**
* 讲师修改

View File

@ -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<String, Object> params = super.getHashMap(4);
params.put("teacherId", teacherId);
BasicStaffInfoDTO dto = teacherDao.getById(params);
TeacherDTO dto = teacherDao.getById(params);
return dto;
}