From edbbe803b5c270a1acffbc7946bdda0d5e420dc5 Mon Sep 17 00:00:00 2001
From: huanghongfa <huanghongfa123456>
Date: 星期三, 07 七月 2021 10:27:29 +0800
Subject: [PATCH] 修改bug

---
 springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/CommunityApi.java |   30 ++++++++++++++++++++++++++++++
 1 files changed, 30 insertions(+), 0 deletions(-)

diff --git a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/CommunityApi.java b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/CommunityApi.java
index b668a7b..6f54c63 100644
--- a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/CommunityApi.java
+++ b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/CommunityApi.java
@@ -86,6 +86,8 @@
     public ComEldersAuthUserService comEldersAuthUserService;
     @Resource
     private ComEldersAuthHistoryRecordMapper comEldersAuthHistoryRecordMapper;
+    @Resource
+    private ComActEasyPhotoActivityService comActEasyPhotoActivityService;
 
     /**
      * 新增社区活动
@@ -553,6 +555,15 @@
     @PostMapping("addeasyphoto")
     public R addEasyPhoto(@RequestBody ComActEasyPhotoVO comActEasyPhotoVO) {
         return comActEasyPhotoService.addEasyPhoto(comActEasyPhotoVO);
+    }
+
+    /**
+     * 查询随手拍是否有活动
+     * @return  活动详情
+     */
+    @PostMapping("getEasyPhotoActivity")
+    public R getEasyPhotoActivity(@RequestParam("communityId") Long communityId) {
+        return comActEasyPhotoActivityService.getEasyPhotoActivity(communityId);
     }
 
     /**
@@ -1701,4 +1712,23 @@
     R setCommunityAuthType(@RequestParam("communityId")Long communityId,@RequestParam("type") Integer type){
         return eldersAuthService.setCommunityAuthType(communityId, type);
     }
+
+    /**
+     * 随手拍活动定时任务
+     * @return  执行结果
+     */
+    @PostMapping("timeTaskEasyPhotoActivity")
+    public R timeTaskEasyPhotoActivity(){
+        return comActEasyPhotoActivityService.timeTaskEasyPhotoActivity();
+    }
+
+    /**
+     * 社区随手拍列表统计
+     * @param communityId   社区id
+     * @return  统计结果
+     */
+    @GetMapping("easyphoto/statistics")
+    public R easyPhotoStatistics(@RequestParam("communityId")Long communityId) {
+        return comActEasyPhotoService.easyPhotoStatistics(communityId);
+    }
 }

--
Gitblit v1.7.1