From ce4a770744d7a0b4e4ea3b5101556b94e72bdf1c Mon Sep 17 00:00:00 2001
From: lidongdong <1459917685@qq.com>
Date: 星期二, 14 十一月 2023 17:49:20 +0800
Subject: [PATCH] 修改打卡

---
 springcloud_k8s_panzhihuazhihuishequ/service_partybuilding/src/main/java/com/panzhihua/service_dangjian/service/impl/ComPbMemberServiceImpl.java |   45 ++++++++++++++++++++++++++++++++++++++++++---
 1 files changed, 42 insertions(+), 3 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 ab074f7..356f0e6 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
@@ -19,6 +19,7 @@
 import com.panzhihua.common.model.vos.user.SysUserVO;
 import com.panzhihua.common.service.user.UserService;
 import com.panzhihua.common.utlis.DateUtils;
+import com.panzhihua.common.utlis.RichTextUtil;
 import com.panzhihua.common.utlis.SensitiveUtil;
 import com.panzhihua.common.utlis.StringUtils;
 import com.panzhihua.service_dangjian.dao.*;
@@ -300,7 +301,22 @@
 
     @Override
     public R pagePartyCommittee(PartyCommitteeVO partyCommitteeVO) {
-        return null;
+        Page page = new Page<>();
+        Long pageNum = partyCommitteeVO.getPageNum();
+        Long pageSize = partyCommitteeVO.getPageSize();
+        if (null == pageNum || 0 == pageNum) {
+            pageNum = 1l;
+        }
+        if (null == pageSize || 0 == pageSize) {
+            pageSize = 10l;
+        }
+        page.setSize(pageSize);
+        page.setCurrent(pageNum);
+        IPage<PartyCommitteeVO> iPage = comPbMemberRoleDAO.pagePartyOrganizations(page, partyCommitteeVO);
+        iPage.getRecords().forEach(record -> {
+            record.setPhone(SensitiveUtil.desensitizedPhoneNumber(record.getPhone()));
+        });
+        return R.ok(iPage);
     }
 
 //    /**
@@ -508,8 +524,31 @@
     }
 
     @Override
-    public R pageYnamic(PartyBuildingComPbDynVO partyBuildingComPbDynVO) {
-        return null;
+    public R pageYnamic(PartyBuildingComPbDynVO partyBuildingComPbDynVO)
+    {
+        Page page = new Page<>();
+        Long pageNum = partyBuildingComPbDynVO.getPageNum();
+        Long pageSize = partyBuildingComPbDynVO.getPageSize();
+        if (null == pageNum) {
+            pageNum = 1l;
+        }
+        if (null == pageSize) {
+            pageSize = 10l;
+        }
+        page.setSize(pageSize);
+        page.setCurrent(pageNum);
+        IPage<PartyBuildingComPbDynVO> iPage = comPbDynDAO.pageYnamics(page, partyBuildingComPbDynVO);
+        List<PartyBuildingComPbDynVO> records = iPage.getRecords();
+        if (!(ObjectUtils.isEmpty(records))) {
+            records.forEach(partyBuildingComPbDynVO1 -> {
+                String content = partyBuildingComPbDynVO1.getContent();
+                if (!ObjectUtils.isEmpty(content)) {
+                    String text = RichTextUtil.getText(content);
+                    partyBuildingComPbDynVO1.setContentText(text);
+                }
+            });
+        }
+        return R.ok(iPage);
     }
 
     @Override

--
Gitblit v1.7.1