|
|
@@ -87,6 +87,15 @@ public class BaseSafetyToolController extends BaseController {
|
|
|
return getDataTable(list);
|
|
|
}
|
|
|
|
|
|
+ @ApiOperation(value = "报废安全工具列表")
|
|
|
+ @GetMapping(value = "listScrapTool")
|
|
|
+ public TableDataInfo listScrapTool(BaseSafetyTool baseSafetyTool) {
|
|
|
+ startPage();
|
|
|
+ baseSafetyTool.setState(ToolStateEnum.SCRAP.getCode());
|
|
|
+ List<BaseSafetyTool> list = baseSafetyToolService.getList(baseSafetyTool);
|
|
|
+ return getDataTable(list);
|
|
|
+ }
|
|
|
+
|
|
|
@ApiOperation(value = "替换安全工具")
|
|
|
@PostMapping("/replaceTool")
|
|
|
public AjaxResult replaceTool(@Validated @RequestBody BaseSafetyTool baseSafetyTool) {
|