|
|
@ -21,22 +21,22 @@ import java.util.List; |
|
|
|
* |
|
|
|
* @author zhaoxianglong |
|
|
|
*/ |
|
|
|
@Api("桩号") |
|
|
|
@Api(tags={"桩号"}) |
|
|
|
@RestController |
|
|
|
@RequestMapping("/business/stakeMark") |
|
|
|
public class DcStakeMarkController extends BaseController { |
|
|
|
@Resource |
|
|
|
private IDcStakeMarkService dcStakeMarkService; |
|
|
|
|
|
|
|
//*********************************设备增删改查******************************************
|
|
|
|
//*********************************桩号增删改查******************************************
|
|
|
|
|
|
|
|
/** |
|
|
|
* 分页查询设备列表 |
|
|
|
* 分页查询桩号列表 |
|
|
|
* |
|
|
|
* @param dcStakeMark 请求参数 |
|
|
|
* @return 分页查询结果 |
|
|
|
*/ |
|
|
|
@ApiOperation("分页查询设备列表") |
|
|
|
@ApiOperation("分页查询桩号列表") |
|
|
|
@PreAuthorize("@ss.hasPermi('iot:stakeMark:list')") |
|
|
|
@GetMapping("list") |
|
|
|
public TableDataInfo listStakeMark(DcStakeMark dcStakeMark) { |
|
|
@ -44,12 +44,12 @@ public class DcStakeMarkController extends BaseController { |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* 无分页查询设备列表 |
|
|
|
* 无分页查询桩号列表 |
|
|
|
* |
|
|
|
* @param dcStakeMark 请求参数 |
|
|
|
* @return 查询结果 |
|
|
|
*/ |
|
|
|
@ApiOperation("无分页查询设备列表") |
|
|
|
@ApiOperation("无分页查询桩号列表") |
|
|
|
@PreAuthorize("@ss.hasPermi('iot:stakeMark:query')") |
|
|
|
@GetMapping("query") |
|
|
|
public AjaxResult queryStakeMark(DcStakeMark dcStakeMark) { |
|
|
@ -57,12 +57,12 @@ public class DcStakeMarkController extends BaseController { |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* 根据id查询设备信息 |
|
|
|
* 根据id查询桩号信息 |
|
|
|
* |
|
|
|
* @param id id |
|
|
|
* @return 查询结果 |
|
|
|
*/ |
|
|
|
@ApiOperation("根据id查询设备信息") |
|
|
|
@ApiOperation("根据id查询桩号信息") |
|
|
|
@PreAuthorize("@ss.hasPermi('iot:stakeMark:query')") |
|
|
|
@GetMapping("{id}") |
|
|
|
public AjaxResult getStakeMark(@PathVariable String id) { |
|
|
@ -78,7 +78,7 @@ public class DcStakeMarkController extends BaseController { |
|
|
|
*/ |
|
|
|
@ApiOperation("新增") |
|
|
|
@PreAuthorize("@ss.hasPermi('iot:stakeMark:add')") |
|
|
|
@Log(title = "新增设备", businessType = BusinessType.INSERT) |
|
|
|
@Log(title = "新增桩号", businessType = BusinessType.INSERT) |
|
|
|
@PostMapping |
|
|
|
public AjaxResult addStakeMark(@Valid @RequestBody DcStakeMark dcStakeMark) { |
|
|
|
return toAjax(dcStakeMarkService.addStakeMark(dcStakeMark)); |
|
|
@ -92,7 +92,7 @@ public class DcStakeMarkController extends BaseController { |
|
|
|
*/ |
|
|
|
@ApiOperation("修改") |
|
|
|
@PreAuthorize("@ss.hasPermi('iot:stakeMark:edit')") |
|
|
|
@Log(title = "修改设备", businessType = BusinessType.UPDATE) |
|
|
|
@Log(title = "修改桩号", businessType = BusinessType.UPDATE) |
|
|
|
@PutMapping |
|
|
|
public AjaxResult editStakeMark(@Valid @RequestBody DcStakeMark dcStakeMark) { |
|
|
|
return toAjax(dcStakeMarkService.editStakeMark(dcStakeMark)); |
|
|
|