| | |
| | | import java.util.Arrays; |
| | | import java.util.HashMap; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | import java.util.stream.Collectors; |
| | | |
| | | /** |
| | |
| | | public void exportEquipmentDetails(HttpServletResponse response){ |
| | | deviceService.exportEquipmentDetails(response); |
| | | } |
| | | |
| | | @ApiOperation(value = "下载设备导入模板") |
| | | @GetMapping("/importTemplate") |
| | | public void importTemplate(HttpServletResponse response) { |
| | | deviceService.downloadImportTemplate(response); |
| | | } |
| | | |
| | | @ApiOperation(value = "导入设备") |
| | | @PostMapping("/importDevice") |
| | | public Result importDevice(MultipartFile file) { |
| | | return Result.success(deviceService.importDevice(file)); |
| | | } |
| | | } |