| | |
| | | @ApiImplicitParams(value = { |
| | | @ApiImplicitParam(value = "物料ID", name = "materialId", dataTypeClass = String.class) |
| | | }) |
| | | public Result<?> getListProductInformation(Integer materialId) { |
| | | public Result<?> getListProductInformation(String materialId) { |
| | | List<Map<String, Object>> listMaterialInformation = productService.getListProductInformation(materialId); |
| | | return Result.success(listMaterialInformation); |
| | | } |
| | | |
| | | @ApiOperation("物料库-->根据测试标准ID查询基本信息") |
| | | @GetMapping("/delete") |
| | | @GetMapping("/productId") |
| | | @ApiImplicitParams(value = { |
| | | @ApiImplicitParam(value = "测试标准ID", name = "productId", dataTypeClass = String.class) |
| | | }) |
| | |
| | | return Result.fail("删除失败!"); |
| | | } |
| | | |
| | | // @ApiOperation("物料库-->修改物料") |
| | | // @PutMapping("/update") |
| | | // public Result<?> updateMaterialInformation(@RequestBody Material material) { |
| | | // Integer isUpdateMaterialSuccess = materialService.updateMaterialInformation(material); |
| | | // if (isUpdateMaterialSuccess == 1) { |
| | | // return Result.success("修改物料【"+ material.getName() +"】成功!"); |
| | | // } |
| | | // return Result.fail("修改物料【"+ material.getName() +"】失败!"); |
| | | // } |
| | | @ApiOperation("物料库-->根据测试标准Id修改数据") |
| | | @PutMapping("/update") |
| | | public Result<?> updateMaterialInformation(@RequestBody Product product) { |
| | | Integer isUpdateMaterialSuccess = productService.updateMaterialInformation(product); |
| | | if (isUpdateMaterialSuccess == 1) { |
| | | return Result.success("修改【"+ product.getName() +"】成功!"); |
| | | } |
| | | return Result.fail("修改【"+ product.getName() +"】失败!"); |
| | | } |
| | | } |