| | |
| | | import org.springframework.validation.annotation.Validated; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import java.time.LocalDateTime; |
| | | import java.util.List; |
| | | |
| | | /** |
| | |
| | | /** |
| | | * 获取故障描述管理列表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:faultDescribe:list')") |
| | | @PreAuthorize("@ss.hasPermi('system:tag:list')") |
| | | @ApiOperation(value = "获取故障描述分页列表") |
| | | @PostMapping(value = "/pageList") |
| | | public R<PageInfo<TFaultDescribeDicVO>> pageList(@RequestBody TFaultDescribeDicQuery query) { |
| | |
| | | /** |
| | | * 添加故障描述管理 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:faultDescribe:add')") |
| | | @PreAuthorize("@ss.hasPermi('system:tag:add')") |
| | | @Log(title = "故障描述信息-新增故障描述", businessType = BusinessType.INSERT) |
| | | @ApiOperation(value = "添加故障描述") |
| | | @PostMapping(value = "/add") |
| | |
| | | /** |
| | | * 修改故障描述 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:faultDescribe:update')") |
| | | @PreAuthorize("@ss.hasPermi('system:tag:edit')") |
| | | @Log(title = "故障描述信息-修改故障描述", businessType = BusinessType.UPDATE) |
| | | @ApiOperation(value = "修改故障描述") |
| | | @PostMapping(value = "/update") |
| | | public R<Boolean> update(@Validated @RequestBody TFaultDescribeDic dto) { |
| | | dto.setUpdateTime(LocalDateTime.now()); |
| | | return R.ok(faultDescribeDicService.updateById(dto)); |
| | | } |
| | | |
| | | /** |
| | | * 查看故障描述详情 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:faultDescribe:detail')") |
| | | @PreAuthorize("@ss.hasPermi('system:tag:edit')") |
| | | @ApiOperation(value = "查看故障描述详情") |
| | | @GetMapping(value = "/getDetailById") |
| | | public R<TFaultDescribeDic> getDetailById(@RequestParam String id) { |
| | |
| | | /** |
| | | * 删除故障描述 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:faultDescribe:delete')") |
| | | @PreAuthorize("@ss.hasPermi('system:tag:delete')") |
| | | @Log(title = "故障描述信息-删除故障描述", businessType = BusinessType.DELETE) |
| | | @ApiOperation(value = "删除故障描述") |
| | | @DeleteMapping(value = "/deleteById") |
| | |
| | | /** |
| | | * 批量删除故障描述 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:faultDescribe:delete')") |
| | | @PreAuthorize("@ss.hasPermi('system:tag:delete')") |
| | | @Log(title = "故障描述信息-删除故障描述", businessType = BusinessType.DELETE) |
| | | @ApiOperation(value = "批量删除故障描述") |
| | | @DeleteMapping(value = "/deleteByIds") |
| | | public R<Boolean> deleteByIds(@RequestBody List<String> ids) { |
| | | return R.ok(faultDescribeDicService.removeByIds(ids)); |
| | | } |
| | | |
| | | |
| | | } |
| | | |