kongzy
2024-10-30 6f2e09fa870858d5371ece3a80674bae95288b9b
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();
    }