From e63b5ff9c4b734d1c6f988d341c99a2216f0564d Mon Sep 17 00:00:00 2001
From: 张天森 <1292933220@qq.com>
Date: 星期一, 17 十月 2022 18:06:19 +0800
Subject: [PATCH] 三说会堂事件操作权限处理

---
 springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComEventServiceImpl.java |   51 +++++++++++++++++++++++++++++++++++++++++++++++----
 1 files changed, 47 insertions(+), 4 deletions(-)

diff --git a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComEventServiceImpl.java b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComEventServiceImpl.java
index b520b20..e05caed 100644
--- a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComEventServiceImpl.java
+++ b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComEventServiceImpl.java
@@ -224,6 +224,11 @@
                 //调解中,可以查看,调解
                 comEvent.setArchive(0);
                 comEvent.setSolve(0);
+            }else if (comEvent.getEventProcessStatus().equals(3)){
+                //重新分配给该专家的事件,可以进行受理
+               // comEvent.setSolve(0);
+                comEvent.setConciliation(0);
+                comEvent.setArchive(0);
             } else if (comEvent.getEventProcessStatus().equals(6)){
                 //调解完成,可以归档,查看
                 comEvent.setSolve(0);
@@ -239,6 +244,7 @@
                     //关闭调解和归档
                     comEvent.setArchive(0);
                     comEvent.setConciliation(0);
+                    comEvent.setChangeExpert(0);
                 } else if (comEvent.getEventProcessStatus().equals(5)){
                     //调解中,可以查看,调解,更换专家,删除
                     comEvent.setDistribution(0);
@@ -249,6 +255,7 @@
                     comEvent.setSolve(0);
                     comEvent.setDistribution(0);
                     comEvent.setChangeExpert(0);
+                    comEvent.setConciliation(0);
                 }
             }else if (comEvent.getCurrentProcessType().equals(2)){
                 //上报到社区后,增加分配专家权限
@@ -262,9 +269,12 @@
                     //调解中,可以查看,调解,更换专家,删除
                     comEvent.setSolve(0);
                     comEvent.setArchive(0);
+                    comEvent.setDistribution(0);
                 } else if (comEvent.getEventProcessStatus().equals(6) && comEvent.getEventResult().equals(1)){
                     //上报并且调解失败,此时事件的状态为6,事件结果为调解失败
                     //comEvent.setDistribution(0);
+                    comEvent.setEventResult(null);
+                    comEvent.setEventProcessStatus(2);
                     comEvent.setChangeExpert(0);
                     comEvent.setSolve(0);
                     //comEvent.setConciliation(0);
@@ -290,7 +300,9 @@
                 //已上报到街道或三说会堂,社区没有分配和受理权限权限
                 comEvent.setDistribution(0);
                 comEvent.setChangeExpert(0);
-                comEvent.setDelete(0);
+                //comEvent.setDelete(0);
+                comEvent.setSolve(0);
+                comEvent.setConciliation(0);
             }
         }else if (userType.equals(3)){
             //分配行业分中心操作权限
@@ -306,7 +318,15 @@
                     //调解中,可以查看,调解,更换专家,删除
                     comEvent.setDistribution(0);
                     comEvent.setArchive(0);
-                } else if (comEvent.getEventProcessStatus().equals(6) && comEvent.getEventSucceed().equals(2)){
+                }  else if (comEvent.getEventProcessStatus().equals(6) && comEvent.getEventResult().equals(1)){
+                    //调解完成,可以归档,查看
+                    comEvent.setEventResult(null);
+                    comEvent.setEventProcessStatus(2);
+                    comEvent.setSolve(0);
+                    comEvent.setDistribution(0);
+                    comEvent.setChangeExpert(0);
+                }
+                else if (comEvent.getEventProcessStatus().equals(6) && comEvent.getEventSucceed().equals(2)){
                     //调解完成,可以归档,查看
                     comEvent.setSolve(0);
                     comEvent.setDistribution(0);
@@ -329,11 +349,34 @@
                     //关闭调解和归档
                     comEvent.setArchive(0);
                     comEvent.setConciliation(0);
+                    comEvent.setChangeExpert(0);
+                    //comEvent.setDistribution(0);
+                    comEvent.setSolve(0);
                 } else if (comEvent.getEventProcessStatus().equals(5)){
                     //调解中,可以查看,调解,更换专家,删除
                     comEvent.setDistribution(0);
                     comEvent.setArchive(0);
-                } else if (comEvent.getEventProcessStatus().equals(6) && comEvent.getEventSucceed().equals(2)){
+                }else if (comEvent.getEventProcessStatus().equals(3)){
+                    //分配新专家后
+                    comEvent.setDistribution(0);
+                    comEvent.setArchive(0);
+                    comEvent.setChangeExpert(0);
+                    comEvent.setEventResult(null);
+                    comEvent.setEventProcessStatus(1);
+                }
+                else if (comEvent.getEventProcessStatus().equals(6) && comEvent.getEventResult().equals(1)){
+                    //设置为待受理
+                    comEvent.setEventResult(null);
+                    comEvent.setEventProcessStatus(2);
+                    //上报到单位,并且调解失败,
+                    //调解完成,可以归档,查看
+                    comEvent.setSolve(0);
+                    //comEvent.setDistribution(0);
+                    comEvent.setChangeExpert(0);
+                    //comEvent.setConciliation(0);
+                    comEvent.setArchive(0);
+                }
+                else if (comEvent.getEventProcessStatus().equals(6) && comEvent.getEventSucceed().equals(2)){
                     //调解完成,可以归档,查看
                     comEvent.setSolve(0);
                     comEvent.setDistribution(0);
@@ -711,7 +754,7 @@
         ComSanshuoExpert specter = comSanShuoExpertService.getById(specialistId);
         comEvent.setSpecialistAcceptTime(new Date());
         comEvent.setSpecialistName(specter.getName());
-        comEvent.setEventProcessStatus(SanShuoEventStatusEnum.UNDO.getCode());
+        comEvent.setEventProcessStatus(SanShuoEventStatusEnum.VALID.getCode());
         int flag = baseMapper.updateById(comEvent);
         //添加一条对应记录
         comEventMapper.insertEventAndExpertRecord(id, specialistId,1);

--
Gitblit v1.7.1