fix():重构电子围栏以及围栏组
parent
ffc698bc11
commit
adafb3248c
|
@ -78,13 +78,27 @@ public class ElectronicFenceController {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@PostMapping("/delElectronById/{id}")
|
// @PostMapping("/delElectronById/{id}")
|
||||||
@Operation(description = "通过id删除围栏")
|
// @Operation(description = "通过id删除围栏")
|
||||||
public Result delElectronById(@PathVariable("id") Long id) {
|
// public Result delElectronById(@PathVariable("id") Long id) {
|
||||||
|
//
|
||||||
|
// electronicFenceService.delElectronById(id);
|
||||||
|
//
|
||||||
|
// return Result.success();
|
||||||
|
// }
|
||||||
|
|
||||||
electronicFenceService.delElectronById(id);
|
/**
|
||||||
|
* 电子围栏表信息表删除
|
||||||
return Result.success();
|
* @param electronicFenceId 请求对象
|
||||||
|
* @return 返回结果
|
||||||
|
*/
|
||||||
|
@DeleteMapping("/{electronicFenceId}")
|
||||||
|
@Operation(summary = "电子围栏表信息表删除",
|
||||||
|
description = "通过ID删除电子围栏表信息")
|
||||||
|
public Result<String> remove(@PathVariable("electronicFenceId") Long electronicFenceId)
|
||||||
|
{
|
||||||
|
boolean b = electronicFenceService.removeById(electronicFenceId);
|
||||||
|
return Result.success(null, "操作成功");
|
||||||
}
|
}
|
||||||
|
|
||||||
@PostMapping("/open/{id}")
|
@PostMapping("/open/{id}")
|
||||||
|
|
Loading…
Reference in New Issue