| | |
| | | */ |
| | | @ApiOperation(value = "求助我的问题数量统计") |
| | | @GetMapping("/selectCount") |
| | | public R selectCount(@RequestParam("type")Integer type,@RequestParam(value = "phone",required = false)String phone){ |
| | | return this.communityService.selectCount(type,phone); |
| | | public R selectCount(@RequestParam("type")Integer type,@RequestParam(value = "phone",required = false)String phone,@RequestParam("communityId")Long communityId){ |
| | | return this.communityService.selectCount(type,phone,communityId); |
| | | } |
| | | } |
| | | |
| | |
| | | * @return |
| | | */ |
| | | @GetMapping("/neighbor/selectCount") |
| | | R selectCount(@RequestParam("type")Integer type,@RequestParam(value = "phone",required = false)String phone); |
| | | R selectCount(@RequestParam("type")Integer type,@RequestParam(value = "phone",required = false)String phone,@RequestParam("communityId")Long communityId); |
| | | |
| | | /** |
| | | * 获取系统配置value |
| | |
| | | * @return |
| | | */ |
| | | @GetMapping("/selectCount") |
| | | public R selectCount(@RequestParam("type")Integer type,@RequestParam(value = "phone",required = false)String phone){ |
| | | return this.comActNeighborCircleService.selectCount(type,phone); |
| | | 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); |
| | | } |
| | | } |
| | |
| | | * @param phone |
| | | * @return |
| | | */ |
| | | Integer selectCount(@Param("type") Integer type,@Param("phone") String phone); |
| | | Integer selectCount(@Param("type") Integer type,@Param("phone") String phone,@Param("communityId") Long communityId); |
| | | } |
| | |
| | | * @param phone |
| | | * @return |
| | | */ |
| | | R selectCount(@RequestParam("type")Integer type, @RequestParam("phone")String phone); |
| | | R selectCount(@RequestParam("type")Integer type, @RequestParam("phone")String phone,@RequestParam("communityId")Long communityId); |
| | | } |
| | |
| | | |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.util.CollectionUtils; |
| | | import org.springframework.web.bind.annotation.RequestParam; |
| | | |
| | | /** |
| | | * @auther lyq |
| | |
| | | } |
| | | |
| | | @Override |
| | | public R selectCount(Integer type, String phone) { |
| | | public R selectCount(Integer type, String phone,Long communityId) { |
| | | return R.ok(this.baseMapper.selectCount(type,phone)); |
| | | } |
| | | |
| | |
| | | <if test="phone!=null and phone !=''"> |
| | | and (help_member_content like concat('%',#{phone},'%') or help_org_content like concat('%',#{phone},'%') ) |
| | | </if> |
| | | <if test="communityId!=null"> |
| | | and community_id = #{communityId} |
| | | </if> |
| | | </where> |
| | | </select> |
| | | </mapper> |