| | |
| | | |
| | | import com.baomidou.mybatisplus.core.toolkit.ObjectUtils; |
| | | import com.yuanchu.limslaboratory.annotation.AuthHandler; |
| | | import com.yuanchu.limslaboratory.enums.InterfaceType; |
| | | import com.yuanchu.limslaboratory.enums.MenuEnums; |
| | | import com.yuanchu.limslaboratory.mapper.InstrumentMapper; |
| | | import com.yuanchu.limslaboratory.mapper.UserMapper; |
| | | import com.yuanchu.limslaboratory.pojo.Inspection; |
| | |
| | | return Result.success(inspectionService.delInspect(id)); |
| | | } |
| | | |
| | | @ApiOperation(value = "获取成品信息") |
| | | @PostMapping("/getMaterielTypeIsOne") |
| | | @AuthHandler(type = InterfaceType.SELECT,menuId = MenuEnums.inspectionApplication,isAdd = true) |
| | | public Result getMaterielTypeIsOne(){ |
| | | return Result.success(inspectionService.getMaterielTypeIsOne()); |
| | | } |
| | | |
| | | |
| | | |
| | | @ApiOperation(value = "根据成品获取规格型号") |
| | | @PostMapping("/getSpecificationByMaterielId") |
| | | @AuthHandler(type = InterfaceType.SELECT,menuId = MenuEnums.inspectionApplication,isAdd = true) |
| | | public Result getSpecification(Integer id){ |
| | | return Result.success(inspectionService.getSpecification(id)); |
| | | } |
| | | } |
| | | |