Commit 002b5b77c5f36a03ef6db24aa37cb53065127414
1 parent
d3ba2bcaba
Exists in
master
PC-查询患者身份证号是否重复
Showing 1 changed file with 19 additions and 0 deletions
talkonlineweb/src/main/java/com/lyms/talkonlineweb/controller/PatientController.java
View file @
002b5b7
... | ... | @@ -670,5 +670,24 @@ |
670 | 670 | } |
671 | 671 | return baseResponse; |
672 | 672 | } |
673 | + | |
674 | + /** | |
675 | + * PC-查询患者身份证号是否重复 | |
676 | + * @param idno 患者身份证号码 | |
677 | + * @return true 可以使用,false已经存在 | |
678 | + */ | |
679 | + @GetMapping("getPatientByIdno") | |
680 | + public BaseResponse getPatientByIdno(String idno){ | |
681 | + BaseResponse baseResponse=new BaseResponse(); | |
682 | + try { | |
683 | + LymsPatient patient=lymsPatientService.getOne(new QueryWrapper<LymsPatient>().eq("idno", idno)); | |
684 | + baseResponse.setObject(null==patient?true:false); | |
685 | + baseResponse.setErrormsg("成功"); | |
686 | + } catch (Exception e) { | |
687 | + baseResponse.setErrormsg("失败"); | |
688 | + e.printStackTrace(); | |
689 | + } | |
690 | + return baseResponse; | |
691 | + } | |
673 | 692 | } |