|
|
@ -40,7 +40,7 @@ public class DcNoStakeWarningTableController extends BaseController { |
|
|
|
* @return 分页查询结果 |
|
|
|
*/ |
|
|
|
@ApiOperation("分页查询路网设施列表") |
|
|
|
@PreAuthorize("@ss.hasPermi('iot:facility:list')") |
|
|
|
@PreAuthorize("@ss.hasPermi('iot:dcNoStakeWarningTable:list')") |
|
|
|
@GetMapping("list") |
|
|
|
public TableDataInfo listFacility(DcNoStakeWarningTable dcNoStakeWarningTable) { |
|
|
|
return getDataTable(dcNoStakeWarningTableService.pageDcNoStakeWarningTable(dcNoStakeWarningTable)); |
|
|
@ -53,7 +53,7 @@ public class DcNoStakeWarningTableController extends BaseController { |
|
|
|
* @return 查询结果 |
|
|
|
*/ |
|
|
|
@ApiOperation("无分页查询路网设施列表") |
|
|
|
@PreAuthorize("@ss.hasPermi('iot:facility:query')") |
|
|
|
@PreAuthorize("@ss.hasPermi('iot:dcNoStakeWarningTable:query')") |
|
|
|
@GetMapping("query") |
|
|
|
public AjaxResult queryFacility(DcNoStakeWarningTable dcNoStakeWarningTable) { |
|
|
|
return AjaxResult.success(dcNoStakeWarningTableService.listDcNoStakeWarningTable(dcNoStakeWarningTable)); |
|
|
@ -66,7 +66,7 @@ public class DcNoStakeWarningTableController extends BaseController { |
|
|
|
* @return 查询结果 |
|
|
|
*/ |
|
|
|
@ApiOperation("根据id查询路网设施信息") |
|
|
|
@PreAuthorize("@ss.hasPermi('iot:facility:query')") |
|
|
|
@PreAuthorize("@ss.hasPermi('iot:dcNoStakeWarningTable:query')") |
|
|
|
@GetMapping("{id}") |
|
|
|
public AjaxResult getFacility(@PathVariable String id) { |
|
|
|
return AjaxResult.success(dcNoStakeWarningTableService.getDcNoStakeWarningTable(id)); |
|
|
@ -80,7 +80,7 @@ public class DcNoStakeWarningTableController extends BaseController { |
|
|
|
* @return 新增操作结果 |
|
|
|
*/ |
|
|
|
@ApiOperation("新增") |
|
|
|
@PreAuthorize("@ss.hasPermi('iot:facility:add')") |
|
|
|
@PreAuthorize("@ss.hasPermi('iot:dcNoStakeWarningTable:add')") |
|
|
|
@Log(title = "新增路网设施", businessType = BusinessType.INSERT) |
|
|
|
@PostMapping |
|
|
|
public AjaxResult addFacility(@Valid @RequestBody DcNoStakeWarningTable dcNoStakeWarningTable) { |
|
|
@ -94,7 +94,7 @@ public class DcNoStakeWarningTableController extends BaseController { |
|
|
|
* @return 修改操作结果 |
|
|
|
*/ |
|
|
|
@ApiOperation("修改") |
|
|
|
@PreAuthorize("@ss.hasPermi('iot:facility:edit')") |
|
|
|
@PreAuthorize("@ss.hasPermi('iot:dcNoStakeWarningTable:edit')") |
|
|
|
@Log(title = "修改路网设施", businessType = BusinessType.UPDATE) |
|
|
|
@PutMapping |
|
|
|
public AjaxResult editFacility(@Valid @RequestBody DcNoStakeWarningTable dcNoStakeWarningTable) { |
|
|
@ -108,7 +108,7 @@ public class DcNoStakeWarningTableController extends BaseController { |
|
|
|
* @return 删除操作结果 |
|
|
|
*/ |
|
|
|
@ApiOperation("删除") |
|
|
|
@PreAuthorize("@ss.hasPermi('iot:facility:remove')") |
|
|
|
@PreAuthorize("@ss.hasPermi('iot:dcNoStakeWarningTable:remove')") |
|
|
|
@Log(title = "删除", businessType = BusinessType.DELETE) |
|
|
|
@DeleteMapping("{ids}") |
|
|
|
public AjaxResult removeFacility(@PathVariable List<String> ids) { |
|
|
|