From 018af6bed3da8be2e7b846aa3e654f16f8f71654 Mon Sep 17 00:00:00 2001
From: 101captain <237651143@qq.com>
Date: 星期三, 29 十二月 2021 16:29:30 +0800
Subject: [PATCH] 12/29  河门口大屏特殊修改

---
 springcloud_k8s_panzhihuazhihuishequ/service_grid/src/main/java/com/panzhihua/service_grid/service/impl/EventServiceImpl.java |   21 ++++++++++++++++++---
 1 files changed, 18 insertions(+), 3 deletions(-)

diff --git a/springcloud_k8s_panzhihuazhihuishequ/service_grid/src/main/java/com/panzhihua/service_grid/service/impl/EventServiceImpl.java b/springcloud_k8s_panzhihuazhihuishequ/service_grid/src/main/java/com/panzhihua/service_grid/service/impl/EventServiceImpl.java
index c231cc9..87aa649 100644
--- a/springcloud_k8s_panzhihuazhihuishequ/service_grid/src/main/java/com/panzhihua/service_grid/service/impl/EventServiceImpl.java
+++ b/springcloud_k8s_panzhihuazhihuishequ/service_grid/src/main/java/com/panzhihua/service_grid/service/impl/EventServiceImpl.java
@@ -7,6 +7,7 @@
 
 import javax.annotation.Resource;
 
+import com.panzhihua.common.model.vos.community.screen.event.EventComprehensiveGovernanceStatisticsVO;
 import com.panzhihua.common.model.vos.community.StatisticsCommVO;
 import com.panzhihua.common.model.vos.community.bigscreen.GridsGovernanceStatisticsVO;
 import org.springframework.beans.BeanUtils;
@@ -1380,10 +1381,11 @@
         } else {
             return R.fail("事件所属错误");
         }
-        eventDO.setInvalid(false);
+//        eventDO.setInvalid(false);
         // 标为无效后, 交给网格员处理
         eventDO.setUpdateBy(eventRevokeDTO.getUserId());
         eventDO.setEventStatus(4);// 4、撤销
+        eventDO.setEventDealStatus(6);// 4、撤销
         eventDO.setProcessType(1);// 网格员处理
         eventDO.setCommunityProcess(0);// 非 社区处理
         eventDO.setRevokeId(eventRevokeDTO.getRevokeId());
@@ -1403,11 +1405,13 @@
         if (eventDO == null) {
             return R.fail("事件不存在");
         }
-        boolean canRepulish = eventDO.getEventDealStatus() == 7 | eventDO.getEventDealStatus() == 5; // 已失效状态
+        boolean canRepulish = eventDO.getEventDealStatus() == 7 || eventDO.getEventDealStatus() == 5 || eventDO.getEventDealStatus() == 6; // 已失效状态
         if (!canRepulish) {
-            return R.fail("当前事件不是已失效状态/草稿状态,不能重新发布");
+            return R.fail("当前事件不是已失效状态/草稿状态/撤销状态,不能重新发布");
         }
         eventDO.setInvalid(true);
+        eventDO.setEventStatus(2);
+        eventDO.setEventDealStatus(1);
         int updated = this.getBaseMapper().updateById(eventDO);
         if (updated == 1) {
             addTransferRecord(eventDO.getId(), commonEventRepublishDTO.getUserId(),
@@ -2832,4 +2836,15 @@
         statisticsVO.setDrawEventPopulationTotalVO(populationTotalVO);
         return R.ok(statisticsVO);
     }
+
+    /**
+     * 西区大数据分析平台-综合治理栏
+     * @return
+     */
+    @Override
+    public R getComprehensiveGovernanceStatics() {
+        EventComprehensiveGovernanceStatisticsVO governanceStatisticsVO = this.baseMapper.selectComprehensiveGovernanceStatics();
+        governanceStatisticsVO.generateGovernanceTotal();
+        return R.ok(governanceStatisticsVO);
+    }
 }

--
Gitblit v1.7.1