|
|
|
|
@ -362,7 +362,7 @@ public class DeviceController {
|
|
|
|
|
return success(deviceService.getDeviceAttribute(id));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@GetMapping({"/get-import-template", "/device-attribute/get-import-template"})
|
|
|
|
|
@GetMapping( "/device-attribute/get-import-template")
|
|
|
|
|
@Operation(summary = "获得导入设备属性模板")
|
|
|
|
|
@PreAuthorize("@ss.hasPermission('iot:device:import')")
|
|
|
|
|
public void importTemplate(HttpServletResponse response) throws IOException {
|
|
|
|
|
@ -375,7 +375,7 @@ public class DeviceController {
|
|
|
|
|
ExcelUtils.write(response, "设备点位导入模板.xls", "设备点位列表", DeviceAttributeImportExcelVO.class, list);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@PostMapping({"/import", "/device-attribute/import"})
|
|
|
|
|
@PostMapping("/device-attribute/import")
|
|
|
|
|
@Operation(summary = "导入设备属性")
|
|
|
|
|
@Parameters({
|
|
|
|
|
@Parameter(name = "file", description = "Excel 文件", required = true),
|
|
|
|
|
|