| | |
| | | @ApiOperation(value = "查询社区邻里圈话题列表", response = ComActNeighborCircleTopicAppVO.class) |
| | | @GetMapping("topic/list") |
| | | public R getNeighborTopicByApp( |
| | | @RequestParam(value = "name",defaultValue = "",required = false) String name, |
| | | @RequestParam(value = "belongType", defaultValue = "1", required = false) Integer belongType) { |
| | | return communityService.getNeighborTopicByApp(name, belongType); |
| | | @RequestParam(value = "name",defaultValue = "",required = false) String name) { |
| | | return communityService.getNeighborTopicByApp(name); |
| | | } |
| | | |
| | | @ApiOperation(value = "用户删除邻里圈") |
| | |
| | | * @return 邻里圈话题列表 |
| | | */ |
| | | @GetMapping("/neighbor/getNeighborTopicByApp") |
| | | R getNeighborTopicByApp(@RequestParam("name") String name, @RequestParam("belongType") Integer belongType); |
| | | R getNeighborTopicByApp(@RequestParam("name") String name); |
| | | |
| | | /** |
| | | * 删除话题 |
| | |
| | | * @return 邻里圈话题列表 |
| | | */ |
| | | @GetMapping("getNeighborTopicByApp") |
| | | public R getNeighborTopicByApp(@RequestParam("name") String name, @RequestParam("belongType") Integer belongType) { |
| | | return comActNeighborCircleTopicService.getNeighborTopicByApp(name, belongType); |
| | | public R getNeighborTopicByApp(@RequestParam("name") String name) { |
| | | return comActNeighborCircleTopicService.getNeighborTopicByApp(name); |
| | | } |
| | | |
| | | /** |
| | |
| | | * 社区id |
| | | * @return 邻里圈话题列表 |
| | | */ |
| | | List<ComActNeighborCircleTopicAppVO> getNeighborTopicByApp(@Param("name") String name, @Param("belongType") Integer belongType); |
| | | List<ComActNeighborCircleTopicAppVO> getNeighborTopicByApp(@Param("name") String name); |
| | | |
| | | /** |
| | | * 添加邻里圈话题热度 |
| | |
| | | * 社区id |
| | | * @return 邻里圈话题列表 |
| | | */ |
| | | R getNeighborTopicByApp(String name, Integer belongType); |
| | | R getNeighborTopicByApp(String name); |
| | | |
| | | /** |
| | | * 小程序-用户新增话题 |
| | |
| | | * @return 邻里圈话题列表 |
| | | */ |
| | | @Override |
| | | public R getNeighborTopicByApp(String name, Integer belongType){ |
| | | return R.ok(this.baseMapper.getNeighborTopicByApp(name, belongType)); |
| | | public R getNeighborTopicByApp(String name){ |
| | | return R.ok(this.baseMapper.getNeighborTopicByApp(name)); |
| | | } |
| | | |
| | | /** |
| | |
| | | |
| | | <select id="getNeighborTopicByApp" resultType="com.panzhihua.common.model.vos.neighbor.ComActNeighborCircleTopicAppVO"> |
| | | SELECT canct.id, canct.`name`,`logo`, canct.hot_num |
| | | from com_act_neighbor_circle_topic as canct where canct.`status` = 1 AND canct.belong_type = #{belongType} |
| | | from com_act_neighbor_circle_topic as canct where canct.`status` = 1 |
| | | <if test="name != null and name != """> |
| | | and canct.`name` like concat('%',#{name},'%') |
| | | </if> |