|
|
@ -75,7 +75,7 @@ public class DcDeviceController extends BaseController { |
|
|
|
* @return 分页查询结果 |
|
|
|
*/ |
|
|
|
@ApiOperation("分页查询设备列表") |
|
|
|
@PreAuthorize("@ss.hasPermi('iot:device:list')") |
|
|
|
// @PreAuthorize("@ss.hasPermi('iot:device:list')")
|
|
|
|
@GetMapping("list") |
|
|
|
public TableDataInfo listDevice(DcDevice dcDevice) { |
|
|
|
return getDataTable(dcDeviceService.pageDevice(dcDevice)); |
|
|
@ -87,7 +87,7 @@ public class DcDeviceController extends BaseController { |
|
|
|
* @return 查询结果 |
|
|
|
*/ |
|
|
|
@ApiOperation("统计异常设备") |
|
|
|
@PreAuthorize("@ss.hasPermi('iot:device:list')") |
|
|
|
// @PreAuthorize("@ss.hasPermi('iot:device:list')")
|
|
|
|
@GetMapping("abnormalDevice") |
|
|
|
public AjaxResult statisticalAnomalyDevice() { |
|
|
|
return AjaxResult.success(dcDeviceService.statisticalAnomalyDevice()); |
|
|
@ -100,7 +100,7 @@ public class DcDeviceController extends BaseController { |
|
|
|
* @return 查询结果 |
|
|
|
*/ |
|
|
|
@ApiOperation("无分页查询设备列表") |
|
|
|
@PreAuthorize("@ss.hasPermi('iot:device:query')") |
|
|
|
// @PreAuthorize("@ss.hasPermi('iot:device:query')")
|
|
|
|
@GetMapping("query") |
|
|
|
public AjaxResult queryDevice(DcDevice dcDevice) { |
|
|
|
return AjaxResult.success(dcDeviceService.listDevice(dcDevice)); |
|
|
@ -113,7 +113,7 @@ public class DcDeviceController extends BaseController { |
|
|
|
* @return 查询结果 |
|
|
|
*/ |
|
|
|
@ApiOperation("无分页根据设备桩号查询设备列表") |
|
|
|
@PreAuthorize("@ss.hasPermi('iot:device:query')") |
|
|
|
//@PreAuthorize("@ss.hasPermi('iot:device:query')")
|
|
|
|
@PostMapping("pileNumberQuery") |
|
|
|
public AjaxResult devicePileNumberQueryDevice(@RequestBody Map<String, Object> parameter) { |
|
|
|
return AjaxResult.success(dcDeviceService.devicePileNumberQueryDevice(parameter)); |
|
|
@ -126,7 +126,7 @@ public class DcDeviceController extends BaseController { |
|
|
|
* @return 查询结果 |
|
|
|
*/ |
|
|
|
@ApiOperation("根据id查询设备信息") |
|
|
|
@PreAuthorize("@ss.hasPermi('iot:device:query')") |
|
|
|
// @PreAuthorize("@ss.hasPermi('iot:device:query')")
|
|
|
|
@GetMapping("{id}") |
|
|
|
public AjaxResult getDevice(@PathVariable String id) { |
|
|
|
return AjaxResult.success(dcDeviceService.getDevice(id)); |
|
|
@ -158,7 +158,7 @@ public class DcDeviceController extends BaseController { |
|
|
|
* @return 新增操作结果 |
|
|
|
*/ |
|
|
|
@ApiOperation("新增") |
|
|
|
@PreAuthorize("@ss.hasPermi('iot:device:add')") |
|
|
|
// @PreAuthorize("@ss.hasPermi('iot:device:add')")
|
|
|
|
@Log(title = "新增设备", businessType = BusinessType.INSERT) |
|
|
|
@PostMapping |
|
|
|
public AjaxResult addDevice(@Valid @RequestBody DcDevice dcDevice) { |
|
|
@ -172,7 +172,7 @@ public class DcDeviceController extends BaseController { |
|
|
|
* @return 修改操作结果 |
|
|
|
*/ |
|
|
|
@ApiOperation("修改") |
|
|
|
@PreAuthorize("@ss.hasPermi('iot:device:edit')") |
|
|
|
// @PreAuthorize("@ss.hasPermi('iot:device:edit')")
|
|
|
|
@Log(title = "修改设备", businessType = BusinessType.UPDATE) |
|
|
|
@PutMapping |
|
|
|
public AjaxResult editDevice(@Valid @RequestBody DcDevice dcDevice) { |
|
|
@ -186,7 +186,7 @@ public class DcDeviceController extends BaseController { |
|
|
|
* @return 删除操作结果 |
|
|
|
*/ |
|
|
|
@ApiOperation("删除") |
|
|
|
@PreAuthorize("@ss.hasPermi('iot:device:remove')") |
|
|
|
// @PreAuthorize("@ss.hasPermi('iot:device:remove')")
|
|
|
|
@Log(title = "删除", businessType = BusinessType.DELETE) |
|
|
|
@DeleteMapping("{ids}") |
|
|
|
public AjaxResult removeDevice(@PathVariable List<String> ids) { |
|
|
|