| | |
| | | return AjaxResult.success(productBoms); |
| | | } |
| | | |
| | | @PostMapping("/getByModelList") |
| | | @Log(title = "BOM-根据选择的规格型号ids查询存在的bom", businessType = BusinessType.OTHER) |
| | | @ApiOperation("BOM-根据选择的规格型号id查询存在的bom") |
| | | public AjaxResult getByModelList(@RequestBody List<Long> productModelId) { |
| | | if (CollectionUtils.isEmpty(productModelId)) return AjaxResult.error("请选择要查询的规格型号"); |
| | | List<ProductBom> productBoms = productBomService.list(Wrappers.<ProductBom>lambdaQuery().in(ProductBom::getProductModelId, productModelId)); |
| | | return AjaxResult.success(productBoms); |
| | | } |
| | | |
| | | |
| | | @PostMapping("uploadBom") |
| | | @PreAuthorize("@ss.hasPermi('product:bom:import')") |