| | |
| | | return Result.success(materialService.selectTreeByMaterial()); |
| | | } |
| | | |
| | | @ApiOperation(value = "新增-->选择产品大类") |
| | | @GetMapping("/chooseFather") |
| | | public Result chooseFather() { |
| | | return Result.success(materialService.chooseFather()); |
| | | } |
| | | |
| | | @ApiOperation("(1,2级)新增-->物料,标准,型号") |
| | | @ApiImplicitParams(value = { |
| | | @ApiImplicitParam(name = "spId", value = "复制选择的型号id", dataTypeClass = Integer.class, required = true), |
| | | @ApiImplicitParam(name = "ver", value = "复制选择的版本", dataTypeClass = Integer.class) |
| | | }) |
| | | @PostMapping("/add") |
| | | public Result<?> addMaterial(@Validated @RequestBody MaterialDto materialDto) { |
| | | return Result.success(materialService.addMaterial(materialDto)); |
| | | public Result<?> addMaterial(@Validated @RequestBody MaterialDto materialDto,Integer spId,Integer ver) { |
| | | return Result.success(materialService.addMaterial(materialDto,spId,ver)); |
| | | } |
| | | |
| | | @ApiOperation(value = "右侧数据展示-->选择版本") |