From b9df0d007009cc7a8d9c2d2f466e8dd96a0fbf32 Mon Sep 17 00:00:00 2001
From: CeDo <cedoo@qq.com>
Date: 星期四, 06 五月 2021 22:49:59 +0800
Subject: [PATCH] 党员认证申请, 删除已驳回记录

---
 springcloud_k8s_panzhihuazhihuishequ/service_partybuilding/src/main/java/com/panzhihua/service_dangjian/service/impl/ComPbMemberServiceImpl.java |    7 +++++++
 1 files changed, 7 insertions(+), 0 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 fe6c39f..893cf95 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
@@ -78,6 +78,13 @@
         comPbMemberDO1.setUpdateAt(date);
         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)
+            );
             return R.ok();
         }
         return R.fail();

--
Gitblit v1.7.1