diff --git a/talkonlineweb/src/main/java/com/lyms/talkonlineweb/controller/PatientController.java b/talkonlineweb/src/main/java/com/lyms/talkonlineweb/controller/PatientController.java index e2efa16..c4784f0 100644 --- a/talkonlineweb/src/main/java/com/lyms/talkonlineweb/controller/PatientController.java +++ b/talkonlineweb/src/main/java/com/lyms/talkonlineweb/controller/PatientController.java @@ -678,16 +678,16 @@ public class PatientController { } /** - * PC-查询患者身份证号是否重复 + * PC-二次添加患者,输入身份证号显示相关信息 * @param idno 患者身份证号码 - * @return true 可以使用,false已经存在 + * @return */ @GetMapping("getPatientByIdno") public BaseResponse getPatientByIdno(String idno){ BaseResponse baseResponse=new BaseResponse(); try { LymsPatient patient=lymsPatientService.getOne(new QueryWrapper().eq("idno", idno)); - baseResponse.setObject(null==patient?true:false); + baseResponse.setObject(null==patient?null:patient); baseResponse.setErrormsg("成功"); } catch (Exception e) { baseResponse.setErrormsg("失败");