| | |
| | | /** |
| | | * 获取设备资产详细信息 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:monitor:query')") |
| | | @PreAuthorize("@ss.hasPermi('system:monitor:query')") |
| | | @GetMapping(value = "/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) |
| | | { |
| | |
| | | /** |
| | | * 新增设备资产 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:monitor:add')") |
| | | @PreAuthorize("@ss.hasPermi('system:monitor:add')") |
| | | @Log(title = "设备资产", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | public AjaxResult add(@RequestBody TMonitor tMonitor) |
| | |
| | | { |
| | | return success(tMonitorService.recoveryException(monitor)); |
| | | } |
| | | |
| | | /** |
| | | * 导出 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:monitor:export')") |
| | | @Log(title = "导出", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response,TMonitorVO tMonitor) throws IOException, NoSuchFieldException, IllegalAccessException { |
| | | tMonitorService.export(response,tMonitor); |
| | | } |
| | | |
| | | } |