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 0e99c3d..13f019f 100644 --- a/talkonlineweb/src/main/java/com/lyms/talkonlineweb/controller/PatientController.java +++ b/talkonlineweb/src/main/java/com/lyms/talkonlineweb/controller/PatientController.java @@ -670,4 +670,23 @@ public class PatientController { } return baseResponse; } + + /** + * PC-查询患者身份证号是否重复 + * @param idno 患者身份证号码 + * @return true 可以使用,false已经存在 + */ + @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.setErrormsg("成功"); + } catch (Exception e) { + baseResponse.setErrormsg("失败"); + e.printStackTrace(); + } + return baseResponse; + } }