From 098b507166a2b23f0256d5c4f097e7f05f11e9be Mon Sep 17 00:00:00 2001 From: huanghongfa <huanghongfa123456> Date: 星期三, 28 七月 2021 09:02:46 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/test' into test --- springcloud_k8s_panzhihuazhihuishequ/service_api/src/main/java/com/panzhihua/serviceapi/api/LcEventApi.java | 40 +++++++++++++++++++++++++++++++--------- 1 files changed, 31 insertions(+), 9 deletions(-) diff --git a/springcloud_k8s_panzhihuazhihuishequ/service_api/src/main/java/com/panzhihua/serviceapi/api/LcEventApi.java b/springcloud_k8s_panzhihuazhihuishequ/service_api/src/main/java/com/panzhihua/serviceapi/api/LcEventApi.java index 015b6be..9ea9166 100644 --- a/springcloud_k8s_panzhihuazhihuishequ/service_api/src/main/java/com/panzhihua/serviceapi/api/LcEventApi.java +++ b/springcloud_k8s_panzhihuazhihuishequ/service_api/src/main/java/com/panzhihua/serviceapi/api/LcEventApi.java @@ -97,19 +97,43 @@ /** * description 获取所有或者根据姓名和工号查询,分页 * - * @param eventId 事件ID + * @param areaId 西区ID * @return String 事件信息 * @author manailin * @date 2021/6/10 17:00 */ @ApiOperation(value = "获取所有或者根据姓名和工号查询,分页") @GetMapping("lc/event/getGridMemberListByAreaIdOrName") - public String getGridMemberListByAreaIdOrName(String eventId) { - return lcApiService.getGridMemberListByAreaIdOrName(eventId); + public R getGridMemberListByAreaIdOrName(String areaId,String param) { + try { + return R.ok(lcApiService.getGridMemberListByAreaIdOrName(areaId,param)); + } catch (Exception e) { + log.error("获取指定区域网格列表出现错误:{}", e.getMessage()); + } + return R.ok(Collections.emptyList()); } /** - * description 获取指定区域网格列表 + * description 获取指定区域网格列表,树形结构。不包括具体的网格数据。 + * + * @param areaId 区域ID + * @return String 事件信息 + * @author manailin + * @date 2021/6/10 17:00 + */ + @ApiOperation(value = "获取指定区域网格树形列表,不包括具体的网格数据") + @GetMapping("lc/grid/tree") + public R getGridTreeByAreaId(String areaId) { + try { + return R.ok(lcApiService.getGridTreeByAreaId(areaId)); + } catch (Exception e) { + log.error("获取指定区域网格列表出现错误:{}", e.getMessage()); + } + return R.ok(Collections.emptyList()); + } + + /** + * description 获取指定区域网格数据列表 * * @param areaId 区域ID * @return String 事件信息 @@ -118,16 +142,14 @@ */ @ApiOperation(value = "获取指定区域网格列表") @GetMapping("lc/grid/list") - public List<LcGridData> getGridListByAreaId(String areaId) { + public R getGridDataListByAreaId(String areaId) { try { - return lcApiService.getGridListByAreaId(areaId); + return R.ok(lcApiService.getGridDataListByAreaId(areaId)); } catch (Exception e) { log.error("获取指定区域网格列表出现错误:{}", e.getMessage()); } - return Collections.emptyList(); + return R.ok(Collections.emptyList()); } - - /** * description 流动人口 走访详情 * -- Gitblit v1.7.1