Commit 81a521d258d3351144dc7142ef32d701a910c915

Authored by shiyang
1 parent 13db49951e
Exists in master

PC-二次添加患者,输入身份证号显示相关信息

Showing 1 changed file with 3 additions and 3 deletions

talkonlineweb/src/main/java/com/lyms/talkonlineweb/controller/PatientController.java View file @ 81a521d
... ... @@ -678,16 +678,16 @@
678 678 }
679 679  
680 680 /**
681   - * PC-查询患者身份证号是否重复
  681 + * PC-二次添加患者,输入身份证号显示相关信息
682 682 * @param idno 患者身份证号码
683   - * @return true 可以使用,false已经存在
  683 + * @return
684 684 */
685 685 @GetMapping("getPatientByIdno")
686 686 public BaseResponse getPatientByIdno(String idno){
687 687 BaseResponse baseResponse=new BaseResponse();
688 688 try {
689 689 LymsPatient patient=lymsPatientService.getOne(new QueryWrapper<LymsPatient>().eq("idno", idno));
690   - baseResponse.setObject(null==patient?true:false);
  690 + baseResponse.setObject(null==patient?null:patient);
691 691 baseResponse.setErrormsg("成功");
692 692 } catch (Exception e) {
693 693 baseResponse.setErrormsg("失败");