Commit 84672580 authored by tangwei's avatar tangwei

修改bug

parent 5ab70fb8
...@@ -167,14 +167,13 @@ public class AircraftController extends BaseController { ...@@ -167,14 +167,13 @@ public class AircraftController extends BaseController {
@GetMapping(value = "/getAircraftNum") @GetMapping(value = "/getAircraftNum")
@ApiOperation(httpMethod = "GET", value = "获取24小时内的航班号", notes = "获取24小时内的航班号") @ApiOperation(httpMethod = "GET", value = "获取24小时内的航班号", notes = "获取24小时内的航班号")
public ResponseModel<List<Map<String, Object>>> getAircraftNum() { public ResponseModel<List<Map<String, Object>>> getAircraftNum() {
List<Map<String, Object>> list= new ArrayList<>();
Map<String, Object> map=new HashedMap(); ResponseModel<List<Map<String, Object>>> dataModel= iotFeignClient.findImgByFileCategory();
Map<String, Object> map1=new HashedMap(); if(dataModel!=null) {
map.put("id", "1");map.put("name", "测试"); List<Map<String, Object>> listmap= dataModel.getResult();
map1.put("id", "12");map1.put("name", "测试2"); return ResponseHelper.buildResponse(listmap);
list.add(map1); }
list.add(map); return ResponseHelper.buildResponse(null);
return ResponseHelper.buildResponse(list);
} }
/** /**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment