| | |
| | | @ApiImplicitParam(paramType = "query", name = "pageNum", dataType = "int", required = false, value = "当前页,默认1"), |
| | | @ApiImplicitParam(paramType = "query", name = "pageSize", dataType = "int", required = false, value = "每页数目,默认10"), |
| | | @ApiImplicitParam(paramType = "query", name = "warehouseId", dataType = "long", required = true, value = "仓库id"), |
| | | @ApiImplicitParam(paramType = "query", name = "basicId", dataType = "long", required = true, value = "危化品基础数据id") |
| | | @ApiImplicitParam(paramType = "query", name = "basicId", dataType = "long", required = true, value = "危化品基础数据id"), |
| | | @ApiImplicitParam(paramType = "query", name = "companyId", dataType = "long", required = false, value = "公司ID") |
| | | }) |
| | | @GetMapping("/list") |
| | | public CommonResult list(HzHazmat hazmat){ |
| | |
| | | @ApiImplicitParam(paramType = "query", name = "pageNum", dataType = "int", required = false, value = "当前页,默认1"), |
| | | @ApiImplicitParam(paramType = "query", name = "pageSize", dataType = "int", required = false, value = "每页数目,默认10"), |
| | | @ApiImplicitParam(paramType = "query", name = "warehouseId", dataType = "long", required = true, value = "仓库id"), |
| | | @ApiImplicitParam(paramType = "query", name = "basicId", dataType = "long", required = true, value = "危化品基础数据id") |
| | | @ApiImplicitParam(paramType = "query", name = "basicId", dataType = "long", required = true, value = "危化品基础数据id"), |
| | | @ApiImplicitParam(paramType = "query", name = "companyId", dataType = "long", required = false, value = "公司id"), |
| | | }) |
| | | @GetMapping("/hazmatCollect") |
| | | public CommonResult hazmatCollect(HzHazmat hazmat){ |
| | |
| | | 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(); |
| | | } |
| | | |
| | | |
| | | } |