|
|
@ -23,7 +23,7 @@ import com.ruoyi.common.core.page.TableDataInfo; |
|
|
|
import com.zc.business.service.IDeviceService; |
|
|
|
|
|
|
|
/** |
|
|
|
* 【请填写功能名称】Controller |
|
|
|
* 设备状态 Controller |
|
|
|
* |
|
|
|
* @author ruoyi |
|
|
|
* @date 2024-01-20 |
|
|
@ -36,7 +36,7 @@ public class DeviceController extends BaseController |
|
|
|
private IDeviceService deviceService; |
|
|
|
|
|
|
|
/** |
|
|
|
* 查询【请填写功能名称】列表 |
|
|
|
* 查询设备状态列表 |
|
|
|
*/ |
|
|
|
@PreAuthorize("@ss.hasPermi('system:device:list')") |
|
|
|
@GetMapping("/list") |
|
|
@ -48,10 +48,10 @@ public class DeviceController extends BaseController |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* 导出【请填写功能名称】列表 |
|
|
|
* 导出设备状态列表 |
|
|
|
*/ |
|
|
|
@PreAuthorize("@ss.hasPermi('system:device:export')") |
|
|
|
@Log(title = "【请填写功能名称】", businessType = BusinessType.EXPORT) |
|
|
|
@Log(title = "设备状态", businessType = BusinessType.EXPORT) |
|
|
|
@PostMapping("/export") |
|
|
|
public void export(HttpServletResponse response, Device device) |
|
|
|
{ |
|
|
@ -61,7 +61,7 @@ public class DeviceController extends BaseController |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* 获取【请填写功能名称】详细信息 |
|
|
|
* 获取设备状态详细信息 |
|
|
|
*/ |
|
|
|
@PreAuthorize("@ss.hasPermi('system:device:query')") |
|
|
|
@GetMapping(value = "/{id}") |
|
|
@ -71,10 +71,10 @@ public class DeviceController extends BaseController |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* 新增【请填写功能名称】 |
|
|
|
* 新增设备状态 |
|
|
|
*/ |
|
|
|
@PreAuthorize("@ss.hasPermi('system:device:add')") |
|
|
|
@Log(title = "【请填写功能名称】", businessType = BusinessType.INSERT) |
|
|
|
@Log(title = "设备状态", businessType = BusinessType.INSERT) |
|
|
|
@PostMapping |
|
|
|
public AjaxResult add(@RequestBody Device device) |
|
|
|
{ |
|
|
@ -82,10 +82,10 @@ public class DeviceController extends BaseController |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* 修改【请填写功能名称】 |
|
|
|
* 修改设备状态 |
|
|
|
*/ |
|
|
|
@PreAuthorize("@ss.hasPermi('system:device:edit')") |
|
|
|
@Log(title = "【请填写功能名称】", businessType = BusinessType.UPDATE) |
|
|
|
@Log(title = "设备状态", businessType = BusinessType.UPDATE) |
|
|
|
@PutMapping |
|
|
|
public AjaxResult edit(@RequestBody Device device) |
|
|
|
{ |
|
|
@ -93,10 +93,10 @@ public class DeviceController extends BaseController |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* 删除【请填写功能名称】 |
|
|
|
* 删除设备状态 |
|
|
|
*/ |
|
|
|
@PreAuthorize("@ss.hasPermi('system:device:remove')") |
|
|
|
@Log(title = "【请填写功能名称】", businessType = BusinessType.DELETE) |
|
|
|
@Log(title = "设备状态", businessType = BusinessType.DELETE) |
|
|
|
@DeleteMapping("/{ids}") |
|
|
|
public AjaxResult remove(@PathVariable Long[] ids) |
|
|
|
{ |
|
|
|