zss
2023-09-12 cbf4b74927fe51c19c307d89b326ae999cb6a165
standard-server/src/main/java/com/yuanchu/mom/controller/MbomController.java
@@ -39,12 +39,9 @@
    @ApiOperation("右上角新增-->物料清单")
    @ApiImplicitParams(value = {
            @ApiImplicitParam(name = "technologyId", value = "工艺路线id", dataTypeClass = Integer.class, required = true)
    })
    @PostMapping("/add")
    public Result<?> addMbom(Integer technologyId, @Validated @RequestBody MbomDto mbomDto) {
        mbomService.addMbom(technologyId, mbomDto);
    public Result<?> addMbom(@Validated @RequestBody MbomDto mbomDto) {
        mbomService.addMbom( mbomDto);
        return Result.success("添加物料清单【" + mbomDto.getName() + "】成功");
    }
@@ -61,17 +58,6 @@
            return Result.success("更新成功");
        }
        return Result.fail("更新失败");
    }
    @ApiOperation("添加同一个型号物料清单的版本")
    @ApiImplicitParams(value = {
            @ApiImplicitParam(name = "specificationsId", value = "型号id", dataTypeClass = Integer.class, required = true),
            @ApiImplicitParam(name = "version", value = "当前版本", dataTypeClass = Integer.class, required = true)
    })
    @PostMapping("/addVersion")
    public Result<?> addVersion(Integer specificationsId ,Integer version) {
        Integer version1 = mbomService.addVersion(specificationsId,version);
        return Result.success("添加型号"+specificationsId+"的物料清单版本"+version1+"成功");
    }
    @ApiOperation(value = "删除")