| | |
| | | package com.yuanchu.limslaboratory.controller; |
| | | |
| | | |
| | | import com.yuanchu.limslaboratory.annotation.AuthHandler; |
| | | import com.yuanchu.limslaboratory.pojo.dto.AddSpecifications; |
| | | import com.yuanchu.limslaboratory.pojo.dto.AddStandardDto; |
| | | import com.yuanchu.limslaboratory.service.SpecificationsService; |
| | |
| | | * @author 江苏鵷雏网络科技有限公司 |
| | | * @since 2023-07-11 |
| | | */ |
| | | @Api(tags = "标准库-->3、产品规格") |
| | | @Api(tags = "标准库-->3、产品型号") |
| | | @RestController |
| | | @RequestMapping("/specifications") |
| | | public class SpecificationsController { |
| | |
| | | |
| | | @ApiOperation("添加物料") |
| | | @PostMapping("/add") |
| | | @AuthHandler |
| | | public Result<?> addSpecificationsInformation(@Validated @RequestBody AddSpecifications addSpecifications) { |
| | | Integer isMaterialSuccess = specificationsService.addSpecificationsInformation(addSpecifications); |
| | | if (isMaterialSuccess == 1) { |
| | |
| | | |
| | | @ApiOperation("删除产品型号") |
| | | @ApiImplicitParams(value = { |
| | | @ApiImplicitParam(name = "specificationsId", value = "规格Id", dataTypeClass = Integer.class, required = true) |
| | | @ApiImplicitParam(name = "specificationsId", value = "型号Id", dataTypeClass = Integer.class, required = true) |
| | | }) |
| | | @DeleteMapping("/delete") |
| | | @AuthHandler |
| | | public Result<?> deleteSpecificationsInformation(Integer specificationsId) { |
| | | Integer isStandardsSuccess = specificationsService.deleteSpecifications(specificationsId); |
| | | if (isStandardsSuccess == 1) { |