From 1473f6b2f724e69ea30976615672af7245dc72a6 Mon Sep 17 00:00:00 2001
From: 101captain <237651143@qq.com>
Date: 星期二, 31 五月 2022 15:55:49 +0800
Subject: [PATCH] bug修改

---
 springcloud_k8s_panzhihuazhihuishequ/service_partybuilding/src/main/java/com/panzhihua/service_dangjian/service/impl/ComPbMemberServiceImpl.java |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/springcloud_k8s_panzhihuazhihuishequ/service_partybuilding/src/main/java/com/panzhihua/service_dangjian/service/impl/ComPbMemberServiceImpl.java b/springcloud_k8s_panzhihuazhihuishequ/service_partybuilding/src/main/java/com/panzhihua/service_dangjian/service/impl/ComPbMemberServiceImpl.java
index 9b4b869..6a6425e 100644
--- a/springcloud_k8s_panzhihuazhihuishequ/service_partybuilding/src/main/java/com/panzhihua/service_dangjian/service/impl/ComPbMemberServiceImpl.java
+++ b/springcloud_k8s_panzhihuazhihuishequ/service_partybuilding/src/main/java/com/panzhihua/service_dangjian/service/impl/ComPbMemberServiceImpl.java
@@ -91,7 +91,7 @@
     @Override
     public R addPartyBuildingMember(PartyBuildingMemberVO partyBuildingMemberVO) {
         List<ComPbMemberDO> comPbMemberDOs = comPbMemberDAO.selectList(new QueryWrapper<ComPbMemberDO>().lambda()
-            .eq(ComPbMemberDO::getPhone, partyBuildingMemberVO.getPhone()).eq(ComPbMemberDO::getAuditResult, 1));
+            .eq(ComPbMemberDO::getPhone, partyBuildingMemberVO.getPhone()).eq(ComPbMemberDO::getAuditResult, 1).eq(ComPbMemberDO::getType,partyBuildingMemberVO.getType()));
         if (!ObjectUtils.isEmpty(comPbMemberDOs) && comPbMemberDOs.size() > 0) {
             comPbMemberDOs.forEach(comPbMemberDO -> {
                 comPbMemberDAO.deleteById(comPbMemberDO.getId());
@@ -112,11 +112,11 @@
         int insert = comPbMemberDAO.insert(comPbMemberDO1);
         if (insert > 0) {
             // 删除已驳回的记录
-            int delete = comPbMemberDAO.delete(new QueryWrapper<ComPbMemberDO>().lambda()
-                .eq(ComPbMemberDO::getIdCard, partyBuildingMemberVO.getIdCard())
-                .eq(ComPbMemberDO::getUserId, partyBuildingMemberVO.getUserId())
-                .eq(ComPbMemberDO::getCommunityId, partyBuildingMemberVO.getCommunityId())
-                .eq(ComPbMemberDO::getAuditResult, 3));
+//            int delete = comPbMemberDAO.delete(new QueryWrapper<ComPbMemberDO>().lambda()
+//                .eq(ComPbMemberDO::getIdCard, partyBuildingMemberVO.getIdCard())
+//                .eq(ComPbMemberDO::getUserId, partyBuildingMemberVO.getUserId())
+//                .eq(ComPbMemberDO::getCommunityId, partyBuildingMemberVO.getCommunityId())
+//                .eq(ComPbMemberDO::getAuditResult, 3));
             return R.ok();
         }
         return R.fail();

--
Gitblit v1.7.1