zxl
6 小时以前 3b0516a2959e25576e4f3fda697a3b025d06c8c9
ycl-server/src/main/java/com/ycl/platform/controller/TMonitorController.java
@@ -83,7 +83,7 @@
    /**
     * 获取设备资产详细信息
     */
   @PreAuthorize("@ss.hasPermi('system:monitor:query')")
    @PreAuthorize("@ss.hasPermi('system:monitor:query')")
    @GetMapping(value = "/{id}")
    public AjaxResult getInfo(@PathVariable("id") Long id)
    {
@@ -93,7 +93,7 @@
    /**
     * 新增设备资产
     */
   @PreAuthorize("@ss.hasPermi('system:monitor:add')")
    @PreAuthorize("@ss.hasPermi('system:monitor:add')")
    @Log(title = "设备资产", businessType = BusinessType.INSERT)
    @PostMapping
    public AjaxResult add(@RequestBody TMonitor tMonitor)
@@ -142,6 +142,14 @@
    {
        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);
    }
}