添加无人机名称的修改
This commit is contained in:
parent
595f431388
commit
2ea81a491c
|
|
@ -15,6 +15,7 @@ import org.springframework.beans.BeanUtils;
|
|||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
|
|
@ -83,4 +84,22 @@ public class DockController extends BaseController
|
|||
dockService.updateDock(dto);
|
||||
return R.ok();
|
||||
}
|
||||
|
||||
/**
|
||||
* 查看所有机场
|
||||
*
|
||||
* @return 机场列表
|
||||
*/
|
||||
//@InnerAuth
|
||||
@GetMapping("/list")
|
||||
public R<List<DockVO>> getAllDocks()
|
||||
{
|
||||
List<DockDTO> dockDTOs = dockService.selectDockList(new DockDTO());
|
||||
List<DockDetailDTO> dtoList = new ArrayList<>();
|
||||
for (DockDTO dockDTO : dockDTOs) {
|
||||
DockDetailDTO dockDetailDTO = bufferDeviceService.getDockDetailById(dockDTO.getDockId());
|
||||
dtoList.add(dockDetailDTO);
|
||||
}
|
||||
return R.ok(DockVOConvert.fromDockDetailDTOList(dtoList));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue