From bbb091d7adeb30906727ddf02c85f06720911523 Mon Sep 17 00:00:00 2001
From: puhanshu <a9236326>
Date: 星期五, 10 六月 2022 16:19:45 +0800
Subject: [PATCH] 大屏人大相关

---
 springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/BigScreenStatisticsServiceImpl.java |   33 +++++++++++++++++++++++++++++++++
 1 files changed, 33 insertions(+), 0 deletions(-)

diff --git a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/BigScreenStatisticsServiceImpl.java b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/BigScreenStatisticsServiceImpl.java
index 84e54ce..c5c13d4 100644
--- a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/BigScreenStatisticsServiceImpl.java
+++ b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/BigScreenStatisticsServiceImpl.java
@@ -14,6 +14,7 @@
 
 import javax.annotation.Resource;
 
+import com.panzhihua.common.model.vos.community.bigscreen.BigScreenDpcStatisticsInfo;
 import org.apache.commons.lang3.StringUtils;
 import org.springframework.beans.BeanUtils;
 import org.springframework.stereotype.Service;
@@ -1345,6 +1346,38 @@
         return R.ok(comActSocialOrgDao.pageSocialOrgList(page, pageBaseDTO, comActDO.getStreetId()));
     }
 
+    /**
+     * 人大代表
+     * @param communityId
+     * @return
+     */
+    @Override
+    public R dpcBase(Long communityId) {
+        BigScreenDpcStatisticsInfo statisticsInfo = comActEasyPhotoDAO.selectDpcBaseData(communityId);
+        //随手拍新增折线数据
+        List<StatisticsCommVO> easyPhotoAddPolylineData = comActEasyPhotoDAO.getEasyPhotoAddPolylineDataForDpc(communityId);
+        statisticsInfo.setEasyPhotoAddPolylineData(easyPhotoAddPolylineData);
+        //随手拍累计折线数据
+        List<StatisticsCommVO> easyPhotoTotalPolylineData = new ArrayList<>();
+        easyPhotoAddPolylineData.forEach(e -> {
+            StatisticsCommVO temp = comActEasyPhotoDAO.getEasyPhotoTotalPolylineDateForDpc(communityId, e.getFiled());
+            temp.setFiled(e.getFiled());
+            easyPhotoTotalPolylineData.add(temp);
+        });
+        statisticsInfo.setEasyPhotoTotalPolylineData(easyPhotoTotalPolylineData);
+        return R.ok(statisticsInfo);
+    }
+
+    /**
+     * 人大代表-随手拍展示列表
+     * @return
+     */
+    @Override
+    public R dpcEasyPhotoList(PageBaseDTO pageBaseDTO) {
+        Page page = retrievePage(pageBaseDTO);
+        return R.ok(comActEasyPhotoDAO.dpcEasyPhotoList(page, pageBaseDTO));
+    }
+
     private Page retrievePage(PageBaseDTO pageBaseDTO) {
         Long pageNum = pageBaseDTO.getPageNum();
         Long size = pageBaseDTO.getPageSize();

--
Gitblit v1.7.1