yanghui
2022-11-29 3da01b2a6cf247f90aed86fc37d8cb0ab51a4b4c
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/NeighborApi.java
@@ -2,6 +2,8 @@
import javax.annotation.Resource;
import com.panzhihua.service_community.model.dos.ComActNeighborCircleDO;
import org.springframework.beans.BeanUtils;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.bind.annotation.*;
@@ -28,7 +30,7 @@
    /**
     * 分页查询邻里圈列表
     *
     *
     * @param neighborCircleAppDTO
     *            请求参数
     * @return 邻里圈列表
@@ -39,8 +41,30 @@
    }
    /**
     * 分页查询可关联清单列表
     * @param neighborCircleAppDTO
     * @return
     */
    @PostMapping("pageRelationList")
    public R pageRelationList(@RequestBody ComActNeighborCircleAppDTO neighborCircleAppDTO) {
        return comActNeighborCircleService.pageRelationList(neighborCircleAppDTO);
    }
    /**
     * 分页查询邻里圈列表
     *
     * @param neighborCircleAppDTO
     *            请求参数
     * @return 邻里圈列表
     */
    @PostMapping("selectSolve")
    public R selectSolve(@RequestBody ComActNeighborCircleAppDTO neighborCircleAppDTO) {
        return comActNeighborCircleService.selectSolve(neighborCircleAppDTO);
    }
    /**
     * 用户发布邻里圈审核
     *
     *
     * @param addNeighborCircleAppDTO
     *            邻里圈请求参数
     * @return 发布结果
@@ -52,7 +76,7 @@
    /**
     * 查询邻里圈详情
     *
     *
     * @param neighborCircleAppDTO
     *            请求参数
     * @return 邻里圈详情
@@ -64,7 +88,7 @@
    /**
     * 管理后台查询邻里圈列表
     *
     *
     * @param comActNeighborCircleAdminDTO
     *            请求参数
     * @return 邻里圈列表
@@ -76,7 +100,7 @@
    /**
     * 后台添加邻里圈
     *
     *
     * @param addNeighborCircleAdminVO
     *            请求参数
     * @return 邻里圈列表
@@ -88,7 +112,7 @@
    /**
     * 后台修改邻里圈
     *
     *
     * @param editNeighborCircleAdminVO
     *            请求参数
     */
@@ -99,7 +123,7 @@
    /**
     * 邻里圈_后台删除 待审核状态不可删除,显示、隐藏、已驳回的都可以删除)
     *
     *
     * @param id
     *            邻里圈id
     * @return 邻里圈列表
@@ -112,7 +136,7 @@
    /**
     * 用户查询邻里圈列表
     *
     *
     * @param neighborCircleAppDTO
     *            请求参数
     * @return 邻里圈列表
@@ -124,7 +148,7 @@
    /**
     * 邻里圈点赞
     *
     *
     * @param fabulousAppDTO
     *            请求参数
     * @return 点赞结果
@@ -136,7 +160,7 @@
    /**
     * 邻里圈转发
     *
     *
     * @param forwardAppDTO
     *            请求参数
     * @return 转发结果
@@ -148,7 +172,7 @@
    /**
     * 邻里圈评论
     *
     *
     * @param commentAppDTO
     *            请求参数
     * @return 评论结果
@@ -160,7 +184,7 @@
    /**
     * 邻里圈回复
     *
     *
     * @param replyAppDTO
     *            请求参数
     * @return 回复结果
@@ -172,7 +196,7 @@
    /**
     * 定时任务更新邻里圈近3天评论数/点赞数/浏览量
     *
     *
     * @return 执行结果
     */
    @PostMapping("timeTaskCircleFlow")
@@ -182,7 +206,7 @@
    /**
     * 查看邻里圈基础_详情
     *
     *
     * @param id
     *            邻里圈id
     * @return 邻里圈列表
@@ -194,7 +218,7 @@
    /**
     * 邻里圈的所有评论_分页
     *
     *
     * @param dto
     *            请求参数
     * @return 评论列表
@@ -206,7 +230,7 @@
    /**
     * 评论的状态_修改
     *
     *
     * @param vo
     *            请求参数
     */
@@ -218,7 +242,7 @@
    /**
     * 邻里圈评论_详情
     *
     *
     * @param id
     *            评论id
     */
@@ -229,7 +253,7 @@
    /**
     * 邻里圈评论回复_分页
     *
     *
     * @param dto
     *            参数
     */
@@ -240,7 +264,7 @@
    /**
     * 邻里圈评论回复_基本详情
     *
     *
     * @param id
     *            参数
     */
@@ -251,7 +275,7 @@
    /**
     * 评论的状态_修改
     *
     *
     * @param changeStatusReplyVO
     *            参数
     */
@@ -262,7 +286,7 @@
    /**
     * 邻里圈取消点赞
     *
     *
     * @param fabulousAppDTO
     *            请求参数
     * @return 取消点赞结果
@@ -274,7 +298,7 @@
    /**
     * 添加邻里圈浏览记录
     *
     *
     * @param addBrowseAppDTO
     *            请求参数
     * @return 返回参数
@@ -286,7 +310,7 @@
    /**
     * 分页查询评论下所有回复
     *
     *
     * @param commentReplyAppDTO
     *            请求参数
     * @return 回复列表
@@ -298,7 +322,7 @@
    /**
     * 分页查询邻里圈话题列表
     *
     *
     * @param circleTopicAdminDTO
     *            请求参数
     * @return 邻里圈话题列表
@@ -310,7 +334,7 @@
    /**
     * 添加邻里圈话题
     *
     *
     * @param addCircleTopicAdminDTO
     *            请求参数
     * @return 添加结果
@@ -322,7 +346,7 @@
    /**
     * 编辑邻里圈话题
     *
     *
     * @param addCircleTopicAdminDTO
     *            请求参数
     * @return 编辑结果
@@ -334,24 +358,23 @@
    /**
     * 小程序查询邻里圈话题列表
     *
     * @param communityId
     *
     *            社区id
     * @return 邻里圈话题列表
     */
    @GetMapping("getNeighborTopicByApp")
    public R getNeighborTopicByApp(@RequestParam("communityId") Long communityId,@RequestParam("isZero") Integer isZero,@RequestParam("name") String name) {
        return comActNeighborCircleTopicService.getNeighborTopicByApp(communityId,isZero,name);
    public R getNeighborTopicByApp(@RequestParam("name") String name) {
        return comActNeighborCircleTopicService.getNeighborTopicByApp(name);
    }
    /**
     * 小程序-用户新增话题
     * @param circleTopicAppDTO 请求参数
     * @return  新增结果
     * 删除话题
     * @param id
     * @return
     */
    @PostMapping("addNeighborTopicByApp")
    public R addNeighborTopicByApp(@RequestBody AddNeighborCircleTopicAppDTO circleTopicAppDTO){
        return comActNeighborCircleTopicService.addNeighborTopicByApp(circleTopicAppDTO);
    @GetMapping("deleteNeighborTopic")
    public R deleteNeighborTopic(@RequestParam("id") Long id){
        return comActNeighborCircleTopicService.delete(id);
    }
    /**
@@ -364,4 +387,60 @@
        return comActNeighborCircleService.deleteNeighborByApp(circleTopicAppDTO);
    }
    /**
     * 修改数据
     * @param editNeighborCircleAdminVO
     * @return
     */
    @PostMapping("update")
    public R order(@RequestBody EditNeighborCircleAdminVO editNeighborCircleAdminVO){
        return this.comActNeighborCircleService.orderAndSolve(editNeighborCircleAdminVO);
    }
    /**
     * 机关单位服务统计排行
     * @return
     * */
    @GetMapping("/activityAnalysis")
    public R institutionalUnitServiceAnalysis(@RequestParam(value = "year",required = false) Integer year,@RequestParam(value = "type",required = false) Integer type,
                                              @RequestParam(value = "range",required = false)Integer range,@RequestParam(value = "communityId",required = false) Long communityId,
                                              @RequestParam(value = "page",required = false) Integer page,
                                              @RequestParam(value = "belongTo",required = false) String  belongTo,
                                              @RequestParam(value = "size",required = false) Integer size,
                                              @RequestParam(value = "unitId",required = false) Long unitId,
                                              @RequestParam(value = "loginAccount",required = false) String loginAccount){
        return this.comActNeighborCircleService.institutionalUnitServiceAnalysis(year,type,range,communityId,page,size,belongTo,unitId);
    }
    /**
     * 小程序服务统计
     * @param serviceStaticDTO
     * @return
     */
    @PostMapping("/serviceStatic")
    public R serviceStatic(@RequestBody ServiceStaticDTO serviceStaticDTO){
        return this.comActNeighborCircleService.serviceStatic(serviceStaticDTO);
    }
    /**
     * 后台统计
     * @param serviceStaticDTO
     * @return
     */
    @PostMapping("/serviceStaticBackstage")
    public R serviceStaticBackstage(@RequestBody ServiceStaticBackstageDTO serviceStaticDTO){
        return this.comActNeighborCircleService.serviceStaticBackstage(serviceStaticDTO);
    }
    /**
     * 求助我的问题数量统计
     * @param type
     * @param phone
     * @return
     */
    @GetMapping("/selectCount")
    public R selectCount(@RequestParam("type")Integer type,@RequestParam(value = "phone",required = false)String phone,@RequestParam("communityId")Long communityId){
        return this.comActNeighborCircleService.selectCount(type,phone,communityId);
    }
}