| | |
| | | }) |
| | | @GetMapping("/getHazmatByCode") |
| | | public CommonResult getHazmatByCode(@RequestParam(required = true) String code){ |
| | | System.out.println("code===="+code); |
| | | return CommonResult.success(hazmatService.selectHazmatByCode(code)); |
| | | } |
| | | |
| | |
| | | @RepeatSubmit |
| | | @ApiOperation(value = "领用") |
| | | @PostMapping(value = { "/hazmatUse/{hazmatId}" }) |
| | | public CommonResult hazmatUse(@PathVariable(value = "hazmatId", required = true) Long hazmatId){ |
| | | hazmatService.hazmatUse(hazmatId); |
| | | public CommonResult hazmatUse(@PathVariable(value = "hazmatId", required = true) Long hazmatId,@RequestParam(defaultValue = "0",required = true) Integer used){ |
| | | hazmatService.hazmatUse(hazmatId,used); |
| | | return CommonResult.success(); |
| | | } |
| | | |