From 7dd8057f19f9e4984d5150f34f14f0fdda64faed Mon Sep 17 00:00:00 2001 From: 张天森 <1292933220@qq.com> Date: 星期四, 13 十月 2022 19:59:22 +0800 Subject: [PATCH] 三说会堂事件操作权限处理 --- springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComClusterOrganizationMemberServiceImpl.java | 8 +++++++- 1 files changed, 7 insertions(+), 1 deletions(-) diff --git a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComClusterOrganizationMemberServiceImpl.java b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComClusterOrganizationMemberServiceImpl.java index 95b9854..c070136 100644 --- a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComClusterOrganizationMemberServiceImpl.java +++ b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComClusterOrganizationMemberServiceImpl.java @@ -205,7 +205,13 @@ if(!isOnly(memberExcel.getIdCard(),memberMap)){ ComClusterMemberExcelErrorVO memberExcelErrorVO = new ComClusterMemberExcelErrorVO(); BeanUtils.copyProperties(memberExcel,memberExcelErrorVO); - memberExcelErrorVO.setError("该成员已存在"); + //判断该成员是否是已存在还是身份证号码重复 + ComClusterOrganizationMemberDO memberDO = (ComClusterOrganizationMemberDO)memberMap.get(memberExcel.getIdCard()); + if(memberDO.getName().equals(memberExcel.getName())){ + memberExcelErrorVO.setError("该成员已存在"); + }else{ + memberExcelErrorVO.setError("身份证号重复"); + } mistakes.add(memberExcelErrorVO); continue; } -- Gitblit v1.7.1