|  |  |  | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @GetMapping("/getSensors") | 
|---|
|  |  |  | @ApiOperation(value = "查询无人机因子", notes = "查询无人机因子") | 
|---|
|  |  |  | @ApiImplicitParams(value = { | 
|---|
|  |  |  | @ApiImplicitParam(name = "mac", value = "设备mac(格式:p5dnd7a0392068)", required = true, paramType = "query", dataType = "String"), | 
|---|
|  |  |  | @ApiImplicitParam(name = "startTime", value = "开始时间(格式:2019-07-17 17:07:00)", required = false, paramType = "query", dataType = "String"), | 
|---|
|  |  |  | @ApiImplicitParam(name = "endTime", value = "结束时间(格式:2019-07-17 17:07:00)", required = false, paramType = "query", dataType = "String") | 
|---|
|  |  |  | }) | 
|---|
|  |  |  | public ResultBean getSensors(HttpServletRequest request) throws Exception{ | 
|---|
|  |  |  | Map<String, Object> parameters = WebUtils.getParametersStartingWith(request, null); | 
|---|
|  |  |  | String mac = parameters.get("mac").toString(); | 
|---|
|  |  |  | if (mac != null && mac.length() != 0) { | 
|---|
|  |  |  | List<Map<String, Object>> sensorList = historyMinutelyService.getSensorData(parameters); | 
|---|
|  |  |  | if(sensorList.size()==0){ | 
|---|
|  |  |  | return new ResultBean("查询不到数据",1); | 
|---|
|  |  |  | }else{ | 
|---|
|  |  |  | return new ResultBean("查询到数据",0); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  | return null; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | } | 
|---|