From df0c2ac88711ab867fc7ed81bf4306c8d954b2fd Mon Sep 17 00:00:00 2001 From: wanggongfeng <1305282856@qq.com> Date: Fri, 28 Oct 2022 18:21:42 +0800 Subject: [PATCH] =?UTF-8?q?excel=E6=A0=B9=E6=8D=AE=E8=BA=AB=E4=BB=BD?= =?UTF-8?q?=E8=AF=81=E5=8E=BB=E9=87=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../epmet/service/impl/IcVaccinePrarmeterServiceImpl.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/epmet-user/epmet-user-server/src/main/java/com/epmet/service/impl/IcVaccinePrarmeterServiceImpl.java b/epmet-user/epmet-user-server/src/main/java/com/epmet/service/impl/IcVaccinePrarmeterServiceImpl.java index e56c8d5a0a..5f2590c1eb 100644 --- a/epmet-user/epmet-user-server/src/main/java/com/epmet/service/impl/IcVaccinePrarmeterServiceImpl.java +++ b/epmet-user/epmet-user-server/src/main/java/com/epmet/service/impl/IcVaccinePrarmeterServiceImpl.java @@ -225,11 +225,11 @@ public class IcVaccinePrarmeterServiceImpl extends BaseServiceImpl errorInfo.size()){ - Map groupByName = list.stream().collect(Collectors.groupingBy(IcVaccinePrarmeterImportExcel::getName, Collectors.counting())); - groupByName.forEach((name,count) -> { + Map groupByIdCard = list.stream().collect(Collectors.groupingBy(IcVaccinePrarmeterImportExcel::getIdCard, Collectors.counting())); + groupByIdCard.forEach((idCard,count) -> { if (Integer.valueOf(count.toString()).compareTo(1) != 0){ for (IcVaccinePrarmeterImportExcel i : list) { - if (name.equals(i.getName()) && !i.getAddStatus()){ + if (idCard.equals(i.getIdCard()) && !i.getAddStatus()){ errorInfo.add(getErrorInfo(i,"数据重复",i.getNum())); i.setAddStatus(true); }