@@ -158,6 +158,15 @@ public class QualificationManageController {
return Result.ok(qualificationManageService.getMyInfo());
}
+ /**
+ * 获取医生的信息
+ */
+ @ApiOperation("获取医生的信息")
+ @GetMapping("getDoctorInfo")
+ public Result getDoctorInfo(@RequestParam(value = "userId") Long userId) {
+ return Result.ok(qualificationManageService.getDoctorInfo(userId));
+ }
+
/**
* 保存当前登录人的附件
*/
@@ -31,6 +31,8 @@ public interface QualificationManageService extends IService<QualificationApply>
Object getMyInfo();
+ Object getDoctorInfo(Long userId);
Object listAllDepartment(String queryCondition);
Object listMyAvailableQualification(String qualificationName, String operationLevelCode, Integer techFlag, Integer operationFlag, Integer current, Integer pageSize);
@@ -410,6 +410,13 @@ public class QualificationManageServiceImpl extends ServiceImpl<QualificationApp
return myInfo;
+ @Override
+ public Object getDoctorInfo(Long userId) {
+ UserInfo myInfo = userInfoRepository.getUserInfoById(userId);
+ myInfo.setAttachments(doctorAttachmentRepository.listByUserId(userId));
+ return myInfo;
@Override
public Object listAllDepartment(String queryCondition) {
//返回的集合