From f7d354a6bfa2b184858de1b2edef8f52e3d92d27 Mon Sep 17 00:00:00 2001
From: CeDo <cedoogle@gmail.com>
Date: 星期三, 09 六月 2021 13:33:29 +0800
Subject: [PATCH] none

---
 springcloud_k8s_panzhihuazhihuishequ/grid_app/src/main/java/com/panzhihua/grid_app/api/EventApi.java |   10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/springcloud_k8s_panzhihuazhihuishequ/grid_app/src/main/java/com/panzhihua/grid_app/api/EventApi.java b/springcloud_k8s_panzhihuazhihuishequ/grid_app/src/main/java/com/panzhihua/grid_app/api/EventApi.java
index 2f1ed6b..d9a2326 100644
--- a/springcloud_k8s_panzhihuazhihuishequ/grid_app/src/main/java/com/panzhihua/grid_app/api/EventApi.java
+++ b/springcloud_k8s_panzhihuazhihuishequ/grid_app/src/main/java/com/panzhihua/grid_app/api/EventApi.java
@@ -47,6 +47,8 @@
         LoginUserInfoVO loginUserInfoVO = getLoginUserInfo();
         eventRevokeDTO.setUserId(loginUserInfoVO.getUserId());
         eventRevokeDTO.setUserName(loginUserInfoVO.getNickName());
+        eventRevokeDTO.setRevokeType(1);
+        eventRevokeDTO.setRevokeId(loginUserInfoVO.getUserId());
         return gridService.emergenciesRevoke(eventRevokeDTO);
     }
 
@@ -63,14 +65,14 @@
 
     /**
      * 删除
-     * @param eventDeleteDTO 删除事件传递对象
+     * @param commonEventDeleteDTO 删除事件传递对象
      * @return 删除结果
      */
     @DeleteMapping()
     @ApiOperation(value = "删除事件", response = R.class)
-    R delete(@Validated @RequestBody EventDeleteDTO  eventDeleteDTO){
-        ClazzUtils.setIfStringIsEmpty(eventDeleteDTO);
-        return gridService.delete(eventDeleteDTO);
+    R delete(@Validated @RequestBody CommonEventDeleteDTO  commonEventDeleteDTO){
+        ClazzUtils.setIfStringIsEmpty(commonEventDeleteDTO);
+        return gridService.delete(commonEventDeleteDTO);
     }
     /**
      * 重新发布事件

--
Gitblit v1.7.1