From 2b6c540c6b20e04f8b2a05e6f0c22ba5d5016364 Mon Sep 17 00:00:00 2001 From: manailin <261030956@qq.com> Date: 星期六, 24 九月 2022 14:09:50 +0800 Subject: [PATCH] Merge branch 'huacheng_test' of http://gitlab.nhys.cdnhxx.com/root/zhihuishequ into huacheng_test --- springcloud_k8s_panzhihuazhihuishequ/applets/src/main/java/com/panzhihua/applets/api/NeighborApi.java | 26 +++++++++++++++++++++++++- 1 files changed, 25 insertions(+), 1 deletions(-) diff --git a/springcloud_k8s_panzhihuazhihuishequ/applets/src/main/java/com/panzhihua/applets/api/NeighborApi.java b/springcloud_k8s_panzhihuazhihuishequ/applets/src/main/java/com/panzhihua/applets/api/NeighborApi.java index 4006c91..9d79434 100644 --- a/springcloud_k8s_panzhihuazhihuishequ/applets/src/main/java/com/panzhihua/applets/api/NeighborApi.java +++ b/springcloud_k8s_panzhihuazhihuishequ/applets/src/main/java/com/panzhihua/applets/api/NeighborApi.java @@ -19,6 +19,8 @@ import io.swagger.annotations.ApiOperation; import lombok.extern.slf4j.Slf4j; +import static java.util.Objects.isNull; + /** * @auther lyq * @create 2021-04-14 15:02:49 @@ -44,6 +46,18 @@ neighborCircleAppDTO.setUserId(loginUserInfo.getUserId()); } return communityService.pageNeighborByApp(neighborCircleAppDTO); + } + + @ApiOperation(value = "分页查询可关联清单列表", response = ComActNeighborCircleAppVO.class) + @PostMapping("pageRelationList") + public R pageRelationList(@RequestBody ComActNeighborCircleAppDTO neighborCircleAppDTO) { + LoginUserInfoVO loginUserInfo = this.getLoginUserInfoSureNoLogin(); + if (loginUserInfo != null) { + neighborCircleAppDTO.setPhone(loginUserInfo.getPhone()); + neighborCircleAppDTO.setUserId(loginUserInfo.getUserId()); + neighborCircleAppDTO.setCheckUnitId(loginUserInfo.getCheckUnitId()); + } + return communityService.pageRelationList(neighborCircleAppDTO); } @ApiOperation(value = "用户发布邻里圈审核") @@ -253,6 +267,16 @@ return this.communityService.serviceStatic(serviceStaticDTO); } - + /** + * 求助我的问题数量统计 + * @param type + * @param phone + * @return + */ + @ApiOperation(value = "求助我的问题数量统计") + @GetMapping("/selectCount") + 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); + } } -- Gitblit v1.7.1