| | |
| | | |
| | | 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.*; |
| | | |
| | |
| | | |
| | | /** |
| | | * 分页查询邻里圈列表 |
| | | * |
| | | * |
| | | * @param neighborCircleAppDTO |
| | | * 请求参数 |
| | | * @return 邻里圈列表 |
| | |
| | | } |
| | | |
| | | /** |
| | | * 分页查询可关联清单列表 |
| | | * @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 发布结果 |
| | |
| | | |
| | | /** |
| | | * 查询邻里圈详情 |
| | | * |
| | | * |
| | | * @param neighborCircleAppDTO |
| | | * 请求参数 |
| | | * @return 邻里圈详情 |
| | |
| | | |
| | | /** |
| | | * 管理后台查询邻里圈列表 |
| | | * |
| | | * |
| | | * @param comActNeighborCircleAdminDTO |
| | | * 请求参数 |
| | | * @return 邻里圈列表 |
| | |
| | | |
| | | /** |
| | | * 后台添加邻里圈 |
| | | * |
| | | * |
| | | * @param addNeighborCircleAdminVO |
| | | * 请求参数 |
| | | * @return 邻里圈列表 |
| | |
| | | |
| | | /** |
| | | * 后台修改邻里圈 |
| | | * |
| | | * |
| | | * @param editNeighborCircleAdminVO |
| | | * 请求参数 |
| | | */ |
| | |
| | | |
| | | /** |
| | | * 邻里圈_后台删除 待审核状态不可删除,显示、隐藏、已驳回的都可以删除) |
| | | * |
| | | * |
| | | * @param id |
| | | * 邻里圈id |
| | | * @return 邻里圈列表 |
| | |
| | | |
| | | /** |
| | | * 用户查询邻里圈列表 |
| | | * |
| | | * |
| | | * @param neighborCircleAppDTO |
| | | * 请求参数 |
| | | * @return 邻里圈列表 |
| | |
| | | |
| | | /** |
| | | * 邻里圈点赞 |
| | | * |
| | | * |
| | | * @param fabulousAppDTO |
| | | * 请求参数 |
| | | * @return 点赞结果 |
| | |
| | | |
| | | /** |
| | | * 邻里圈转发 |
| | | * |
| | | * |
| | | * @param forwardAppDTO |
| | | * 请求参数 |
| | | * @return 转发结果 |
| | |
| | | |
| | | /** |
| | | * 邻里圈评论 |
| | | * |
| | | * |
| | | * @param commentAppDTO |
| | | * 请求参数 |
| | | * @return 评论结果 |
| | |
| | | |
| | | /** |
| | | * 邻里圈回复 |
| | | * |
| | | * |
| | | * @param replyAppDTO |
| | | * 请求参数 |
| | | * @return 回复结果 |
| | |
| | | |
| | | /** |
| | | * 定时任务更新邻里圈近3天评论数/点赞数/浏览量 |
| | | * |
| | | * |
| | | * @return 执行结果 |
| | | */ |
| | | @PostMapping("timeTaskCircleFlow") |
| | |
| | | |
| | | /** |
| | | * 查看邻里圈基础_详情 |
| | | * |
| | | * |
| | | * @param id |
| | | * 邻里圈id |
| | | * @return 邻里圈列表 |
| | |
| | | |
| | | /** |
| | | * 邻里圈的所有评论_分页 |
| | | * |
| | | * |
| | | * @param dto |
| | | * 请求参数 |
| | | * @return 评论列表 |
| | |
| | | |
| | | /** |
| | | * 评论的状态_修改 |
| | | * |
| | | * |
| | | * @param vo |
| | | * 请求参数 |
| | | */ |
| | |
| | | |
| | | /** |
| | | * 邻里圈评论_详情 |
| | | * |
| | | * |
| | | * @param id |
| | | * 评论id |
| | | */ |
| | |
| | | |
| | | /** |
| | | * 邻里圈评论回复_分页 |
| | | * |
| | | * |
| | | * @param dto |
| | | * 参数 |
| | | */ |
| | |
| | | |
| | | /** |
| | | * 邻里圈评论回复_基本详情 |
| | | * |
| | | * |
| | | * @param id |
| | | * 参数 |
| | | */ |
| | |
| | | |
| | | /** |
| | | * 评论的状态_修改 |
| | | * |
| | | * |
| | | * @param changeStatusReplyVO |
| | | * 参数 |
| | | */ |
| | |
| | | |
| | | /** |
| | | * 邻里圈取消点赞 |
| | | * |
| | | * |
| | | * @param fabulousAppDTO |
| | | * 请求参数 |
| | | * @return 取消点赞结果 |
| | |
| | | |
| | | /** |
| | | * 添加邻里圈浏览记录 |
| | | * |
| | | * |
| | | * @param addBrowseAppDTO |
| | | * 请求参数 |
| | | * @return 返回参数 |
| | |
| | | |
| | | /** |
| | | * 分页查询评论下所有回复 |
| | | * |
| | | * |
| | | * @param commentReplyAppDTO |
| | | * 请求参数 |
| | | * @return 回复列表 |
| | |
| | | |
| | | /** |
| | | * 分页查询邻里圈话题列表 |
| | | * |
| | | * |
| | | * @param circleTopicAdminDTO |
| | | * 请求参数 |
| | | * @return 邻里圈话题列表 |
| | |
| | | |
| | | /** |
| | | * 添加邻里圈话题 |
| | | * |
| | | * |
| | | * @param addCircleTopicAdminDTO |
| | | * 请求参数 |
| | | * @return 添加结果 |
| | |
| | | |
| | | /** |
| | | * 编辑邻里圈话题 |
| | | * |
| | | * |
| | | * @param addCircleTopicAdminDTO |
| | | * 请求参数 |
| | | * @return 编辑结果 |
| | |
| | | |
| | | /** |
| | | * 小程序查询邻里圈话题列表 |
| | | * |
| | | * @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); |
| | | } |
| | | |
| | | /** |
| | |
| | | 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); |
| | | } |
| | | |
| | | |
| | | } |