危化品全生命周期管理后端
“djh”
2025-05-07 da2c594ade5d69621dd11a13bb758477e2dc079e
hazmat-admin/src/main/java/com/gkhy/hazmat/admin/controller/app/AppHazmatController.java
@@ -35,7 +35,6 @@
    })
    @GetMapping("/getHazmatByCode")
    public CommonResult getHazmatByCode(@RequestParam(required = true) String code){
        System.out.println("code===="+code);
        return CommonResult.success(hazmatService.selectHazmatByCode(code));
    }
@@ -43,8 +42,8 @@
    @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();
    }