From 82896616ab61b7fc3aabe4da878832c8cf583ccd Mon Sep 17 00:00:00 2001
From: zhangtiansen <1292933220@qq.com>
Date: 星期日, 18 九月 2022 23:02:03 +0800
Subject: [PATCH] 大屏接口

---
 springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/ComSanShuoEventApi.java |   15 ++++++++++++---
 1 files changed, 12 insertions(+), 3 deletions(-)

diff --git a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/ComSanShuoEventApi.java b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/ComSanShuoEventApi.java
index 95c5daa..7a4c003 100644
--- a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/ComSanShuoEventApi.java
+++ b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/ComSanShuoEventApi.java
@@ -6,6 +6,7 @@
 import com.panzhihua.common.controller.BaseController;
 import com.panzhihua.common.model.dtos.community.sanshuo.ComMediateTypeDTO;
 import com.panzhihua.common.model.dtos.community.sanshuo.ComSanshuoEventDTO;
+import com.panzhihua.common.model.dtos.community.sanshuo.IndexDateDTO;
 import com.panzhihua.common.model.vos.R;
 import com.panzhihua.service_community.entity.ComMediateType;
 import com.panzhihua.service_community.entity.ComSanshuoEvent;
@@ -54,7 +55,7 @@
      * */
     @PostMapping
     public R add(@RequestBody ComMediateTypeDTO comMediateTypeDTO){
-        //comMediateTypeDTO.setCreateUser(this.getLoginUserInfo().getUserId());
+        comMediateTypeDTO.setCreateUser(this.getLoginUserInfo().getUserId());
         return commediateTypeService.addOrUpdate(comMediateTypeDTO);
     }
 
@@ -63,7 +64,7 @@
      * */
     @PutMapping
     public R update(@RequestBody ComMediateTypeDTO comMediateTypeDTO){
-        //comMediateTypeDTO.setModifyUser(this.getLoginUserInfo().getUserId());
+        comMediateTypeDTO.setModifyUser(this.getLoginUserInfo().getUserId());
         return commediateTypeService.addOrUpdate(comMediateTypeDTO);
     }
 
@@ -75,7 +76,15 @@
         ComMediateType comMediateType = commediateTypeService.getById(id);
         comMediateType.setDeleteFlag(true);
         comMediateType.setEnabled(false);
-        //comMediateType.setModifyUser(this.getLoginUserInfo().getUserId());
+        comMediateType.setModifyUser(this.getLoginUserInfo().getUserId());
         return R.ok(commediateTypeService.updateById(comMediateType));
     }
+
+    /**
+     * 大屏接口-事件统计
+     * */
+    @PostMapping("/indexDate")
+    public R indexDate(@RequestBody IndexDateDTO indexDateDTO){
+        return commediateTypeService.indexDate(indexDateDTO);
+    }
 }

--
Gitblit v1.7.1