diff --git a/src/main/java/com/hisense/monitormanage/controller/KeyAreaController.java b/src/main/java/com/hisense/monitormanage/controller/KeyAreaController.java index 28e6e70..3b030e0 100644 --- a/src/main/java/com/hisense/monitormanage/controller/KeyAreaController.java +++ b/src/main/java/com/hisense/monitormanage/controller/KeyAreaController.java @@ -1,6 +1,5 @@ package com.hisense.monitormanage.controller; -import com.hisense.monitormanage.dto.BuildingRecordsDtos; import com.hisense.monitormanage.dto.EventDto; import com.hisense.monitormanage.dto.KeyAreaDto; import com.hisense.monitormanage.dto.KeyAreaDtos; @@ -67,7 +66,7 @@ public class KeyAreaController { */ @GetMapping("selectKeyArea") @ApiOperation("根据区域类型查询区域的最新时间的人数") - public Result selectKeyArea(String type) { + public Result selectKeyArea(String type, String area_name) { PassengerFlow maxId = passengerFlowMapper.getByMaxId(); String timeId = maxId.getTimeId(); List keyAreaDtos = keyAreaMapper.selectKeyArea(type, timeId); diff --git a/src/main/java/com/hisense/monitormanage/dto/KeyAreaDto.java b/src/main/java/com/hisense/monitormanage/dto/KeyAreaDto.java index 9bd03b7..8a3d253 100644 --- a/src/main/java/com/hisense/monitormanage/dto/KeyAreaDto.java +++ b/src/main/java/com/hisense/monitormanage/dto/KeyAreaDto.java @@ -39,4 +39,8 @@ public class KeyAreaDto { private String picUrl; + private String phone; // 联系电话 + + private String manager; // 负责人 + } diff --git a/src/main/java/com/hisense/monitormanage/entity/KeyArea.java b/src/main/java/com/hisense/monitormanage/entity/KeyArea.java index 5b0bd93..cc224e2 100644 --- a/src/main/java/com/hisense/monitormanage/entity/KeyArea.java +++ b/src/main/java/com/hisense/monitormanage/entity/KeyArea.java @@ -29,4 +29,8 @@ public class KeyArea { private String channelName; + private String phone; // 联系电话 + + private String manager; // 负责人 + } diff --git a/src/main/resources/mapper/KeyAreaMapper.xml b/src/main/resources/mapper/KeyAreaMapper.xml index 0ed82df..4b2bd67 100644 --- a/src/main/resources/mapper/KeyAreaMapper.xml +++ b/src/main/resources/mapper/KeyAreaMapper.xml @@ -39,16 +39,43 @@ LEFT JOIN t_key_area_location kal ON kal.area_id = a.area_id