|
@@ -0,0 +1,55 @@
|
|
|
+package com.jd.dh.controller;
|
|
|
+
|
|
|
+import com.jd.dh.service.DhService;
|
|
|
+import io.swagger.annotations.ApiImplicitParam;
|
|
|
+import io.swagger.annotations.ApiOperation;
|
|
|
+import org.springframework.web.bind.annotation.GetMapping;
|
|
|
+import org.springframework.web.bind.annotation.PathVariable;
|
|
|
+import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
+import org.springframework.web.bind.annotation.RestController;
|
|
|
+
|
|
|
+import javax.annotation.Resource;
|
|
|
+import java.util.List;
|
|
|
+import java.util.Map;
|
|
|
+
|
|
|
+@RestController
|
|
|
+@RequestMapping("/api/dh")
|
|
|
+public class DhController {
|
|
|
+ @Resource
|
|
|
+ private DhService dhService;
|
|
|
+
|
|
|
+ @ApiOperation("根据楼层关键字查询机房平均温湿度")
|
|
|
+ @ApiImplicitParam(name = "keyword", value = "楼层关键字")
|
|
|
+ @GetMapping("/getTemperatureHumidity/{keyword}")
|
|
|
+ public List<Map<String, Object>> getTemperatureHumidity(@PathVariable("keyword") String keyword) {
|
|
|
+ return dhService.getTemperatureHumidity(keyword);
|
|
|
+ }
|
|
|
+
|
|
|
+ @ApiOperation("根据楼层关键字查询机房平均温湿度")
|
|
|
+ @ApiImplicitParam(name = "keyword", value = "楼层关键字")
|
|
|
+ @GetMapping("/getTemperatureHumidityDetails/{keyword}")
|
|
|
+ public List<Map<String, Object>> getTemperatureHumidityDetails(@PathVariable("keyword") String keyword) {
|
|
|
+ return dhService.getTemperatureHumidityDetails(keyword);
|
|
|
+ }
|
|
|
+
|
|
|
+ @ApiOperation("根据楼层关键字查询水浸情况")
|
|
|
+ @ApiImplicitParam(name = "keyword", value = "楼层关键字")
|
|
|
+ @GetMapping("/getWaterImmersion/{keyword}")
|
|
|
+ public List<Map<String, Object>> getWaterImmersion(@PathVariable("keyword") String keyword) {
|
|
|
+ return dhService.getWaterImmersion(keyword);
|
|
|
+ }
|
|
|
+
|
|
|
+ @ApiOperation("根据楼层关键字查询监控类型统计")
|
|
|
+ @ApiImplicitParam(name = "keyword", value = "楼层关键字")
|
|
|
+ @GetMapping("/getMonitorClassificationStatistics/{keyword}")
|
|
|
+ public List<Map<String, Object>> getMonitorClassificationStatistics(@PathVariable("keyword") String keyword) {
|
|
|
+ return dhService.getMonitorClassificationStatistics(keyword);
|
|
|
+ }
|
|
|
+
|
|
|
+ @ApiOperation("根据楼层关键字查询消防模块")
|
|
|
+ @ApiImplicitParam(name = "keyword", value = "楼层关键字")
|
|
|
+ @GetMapping("/getFireControl/{keyword}")
|
|
|
+ public List<Map<String, Object>> getFireControl(@PathVariable("keyword") String keyword) {
|
|
|
+ return dhService.getFireControl(keyword);
|
|
|
+ }
|
|
|
+}
|