From 21f52994e0671dd7d9a33c34bc77858d48e6dd67 Mon Sep 17 00:00:00 2001
From: huanghongfa <huanghongfa123456>
Date: 星期六, 05 六月 2021 14:09:31 +0800
Subject: [PATCH] 综治管理接口

---
 springcloud_k8s_panzhihuazhihuishequ/service_grid/src/main/java/com/panzhihua/service_grid/service/impl/EventServiceImpl.java |   19 +++++++++++++------
 1 files changed, 13 insertions(+), 6 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 cf73689..9a60096 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
@@ -1402,19 +1402,26 @@
         //1 待处理、2 待验证、3 已上报、4 已解决、5 草稿箱、6已撤销、7已失效
         if(eventDO.getInvalid()!=null && eventDO.getInvalid()==false){
             eventDealStatus = 7;//7已失效
-        }else if(event_status ==2 && event_process_status == 1 && process_type == 1) {
+        }else if(event_status!=null && event_status ==2 && event_process_status!=null && event_process_status == 1
+                && process_type!=null  && process_type == 1) {
             eventDealStatus = 1;//"待处理"
-        }else if(  event_process_status == 3) {
+        }else if( event_process_status!=null &&  event_process_status == 3) {
             eventDealStatus = 2;//"待验证"
-        }else if(event_status == 2 && community_process == 1 && process_type == 2) {
+        }else if(event_status!=null && event_status == 2 && community_process!=null
+                && community_process == 1 && process_type!=null && process_type == 2) {
             eventDealStatus=3;//"已上报"
-        }else if(  event_process_status == 2 ) {
+        }else if( event_process_status!=null && event_process_status == 2 ) {
             eventDealStatus=4;//"已解决"
-        }else if(  event_status == 1 ) {
+        }else if(  event_status!=null && event_status == 1 ) {
             eventDealStatus = 5;//"草稿箱"
-        }else if( event_status == 4 ) {
+        }else if( event_status!=null && event_status == 4 ) {
             eventDealStatus=6;//"已撤销"
         }
         return eventDealStatus;
     }
+
+    @Override
+    public R eventStatistics(Long communityId){
+        return R.ok(this.baseMapper.eventStatistics(communityId));
+    }
 }

--
Gitblit v1.7.1