修改好评人数倒序的医生信息,用List<SysDoctor>,而不是List<SysUser>

master
MKing 2023-11-05 20:43:38 +08:00
parent 61d1de2631
commit caa57d7e52
4 changed files with 5 additions and 5 deletions

View File

@ -420,8 +420,8 @@ public class SysUserController extends BaseController
@PostMapping("findDoctorNumber/{medicalDepartmentId}") @PostMapping("findDoctorNumber/{medicalDepartmentId}")
public AjaxResult findDoctorNumber(@PathVariable("medicalDepartmentId") Long medicalDepartmentId){ public AjaxResult findDoctorNumber(@PathVariable("medicalDepartmentId") Long medicalDepartmentId){
AjaxResult ajax = AjaxResult.success(); AjaxResult ajax = AjaxResult.success();
List<SysUser> sysUsers = userService.findDoctorNumber(medicalDepartmentId); List<SysDoctor> sysDoctorList = userService.findDoctorNumber(medicalDepartmentId);
ajax.put("sysUsers",sysUsers); ajax.put("sysUser",sysDoctorList);
return ajax; return ajax;
} }

View File

@ -167,7 +167,7 @@ public interface SysUserMapper
List<SysDoctor> findDoctorInformation(Long medicalDepartmentId); List<SysDoctor> findDoctorInformation(Long medicalDepartmentId);
List<SysUser> findDoctorNumber(Long medicalDepartmentId); List<SysDoctor> findDoctorNumber(Long medicalDepartmentId);
List<SysDoctor> findDoctorPraise(Long medicalDepartmentId); List<SysDoctor> findDoctorPraise(Long medicalDepartmentId);

View File

@ -233,7 +233,7 @@ public interface ISysUserService
List<SysDoctor> findDoctorInformation(Long medicalDepartmentId); List<SysDoctor> findDoctorInformation(Long medicalDepartmentId);
List<SysUser> findDoctorNumber(Long medicalDepartmentId); List<SysDoctor> findDoctorNumber(Long medicalDepartmentId);
List<SysDoctor> findDoctorPraise(Long medicalDepartmentId); List<SysDoctor> findDoctorPraise(Long medicalDepartmentId);

View File

@ -613,7 +613,7 @@ public class SysUserServiceImpl implements ISysUserService
} }
@Override @Override
public List<SysUser> findDoctorNumber(Long medicalDepartmentId) { public List<SysDoctor> findDoctorNumber(Long medicalDepartmentId) {
return userMapper.findDoctorNumber(medicalDepartmentId); return userMapper.findDoctorNumber(medicalDepartmentId);
} }