From eceec825ff1c8983654d9ad7c3f1b34d1d654391 Mon Sep 17 00:00:00 2001 From: huanghongfa <huanghongfa123456> Date: 星期三, 14 七月 2021 10:10:07 +0800 Subject: [PATCH] 修改bug --- springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/CommunityApi.java | 39 +++++++++++++++++++++++++++++++++++++++ 1 files changed, 39 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..2721a40 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,32 @@ 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); + } + + /** + * 综治后台-查询社区列表 + * @return 社区列表 + */ + @GetMapping("/eventgrid/community/list") + public R getCommunityLists(){ + return comActService.getCommunityLists(); + } } -- Gitblit v1.7.1