| | |
| | | return CommonResult.success(); |
| | | } |
| | | |
| | | @PreAuthorize("hasAnyAuthority('hazmat:manage:company','hazmat:manage:common')") |
| | | @RepeatSubmit |
| | | @ApiOperation(value = "零头修改") |
| | | @PostMapping(value = { "/changeRemaining" }) |
| | | public CommonResult changeRemaining(@RequestBody HzHazmat hazmat){ |
| | | hazmatService.changeRemaining(hazmat); |
| | | return CommonResult.success(); |
| | | } |
| | | |
| | | |
| | | @PreAuthorize("hasAnyAuthority('hazmat:manage:company','hazmat:manage:common')") |
| | | @RepeatSubmit |
| | | @ApiOperation(value = "修改状态") |
| | | @PostMapping(value = { "/changeState" }) |
| | | public CommonResult changeState(HzHazmat hazmat){ |
| | | public CommonResult changeState(@RequestBody HzHazmat hazmat){ |
| | | hazmatService.changeState(hazmat); |
| | | return CommonResult.success(); |
| | | } |
| | | |
| | | |
| | | } |