From b4621491d6edd4e9d09170533bd24a25fd5dec66 Mon Sep 17 00:00:00 2001 From: zhangyongzhangyong <2012005003@qq.com> Date: Fri, 5 Nov 2021 09:47:25 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BA=AB=E4=BB=BD=E8=AF=81=E5=90=88=E6=B3=95?= =?UTF-8?q?=E6=80=A7=E6=A0=A1=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../service/impl/PersonTestingServiceImpl.java | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/epdc-cloud-custom/src/main/java/com/elink/esua/epdc/modules/epidemic/service/impl/PersonTestingServiceImpl.java b/epdc-cloud-custom/src/main/java/com/elink/esua/epdc/modules/epidemic/service/impl/PersonTestingServiceImpl.java index 100781d..3847dc3 100644 --- a/epdc-cloud-custom/src/main/java/com/elink/esua/epdc/modules/epidemic/service/impl/PersonTestingServiceImpl.java +++ b/epdc-cloud-custom/src/main/java/com/elink/esua/epdc/modules/epidemic/service/impl/PersonTestingServiceImpl.java @@ -505,10 +505,15 @@ public class PersonTestingServiceImpl extends BaseServiceImpl details = baseDao.getDetailByIdCardOrName(data.getIdcard(), null); - if (NumConstant.ZERO < details.size()) { - errorLineinfoList.add(packageErrorInfo(i, "身份证号已存在")); + String verification = IdentityNoUtils.IdentityNoVerification(data.getIdcard()); + if (null != verification) { + errorLineinfoList.add(packageErrorInfo(i, verification)); + } else { + // 是否存在 + List details = baseDao.getDetailByIdCardOrName(data.getIdcard(), null); + if (NumConstant.ZERO < details.size()) { + errorLineinfoList.add(packageErrorInfo(i, "身份证号已存在")); + } } } if (StringUtils.isBlank(data.getTestingTimeStr())) {