|
@@ -198,7 +198,12 @@ public class AppointmentService {
|
|
|
if (sexSocial.getCode().equals("1") && mzClass.equals("03")) {
|
|
|
return ResultVoUtil.fail(ExceptionEnum.LOGICAL_ERROR, "男性无法在妇产科挂号,请选择其他科室。");
|
|
|
}
|
|
|
- if (deptCode.equals("1040000") && IdCardUtil.calAgeBySocialNo(sexSocial.getName()) >= 18) {
|
|
|
+ int age = IdCardUtil.calAgeBySocialNo(sexSocial.getName());
|
|
|
+ if (age == -1) {
|
|
|
+ return ResultVoUtil.fail(ExceptionEnum.LOGICAL_ERROR, "您在我院绑定的身份证号不是有效的身份证号," +
|
|
|
+ "请前往【个人中心 - 我的就诊人 - 就诊人信息】进行修改。");
|
|
|
+ }
|
|
|
+ if (deptCode.equals("1040000") && age >= 18) {
|
|
|
return ResultVoUtil.fail(ExceptionEnum.LOGICAL_ERROR, "成年人无法在儿科挂号,请选择其他科室。");
|
|
|
}
|
|
|
CovidPojo covid = dao.validCovidAssessment(patientId);
|