src/main/java/com/ruoyi/production/mapper/ProductStructureMapper.java
@@ -12,5 +12,14 @@ @Mapper public interface ProductStructureMapper extends BaseMapper<ProductStructure> { List<ProductStructureDto> listByproductModelId(@Param("productModelId") Long productModelId); /** * 查询BOM子集 * @param bomId * @param isParent 是否需要父级 true 返回子级 false 返回子父级 * @return */ List<ProductStructureDto> listBybomId(@Param("bomId") Integer bomId,@Param("isParent") boolean isParent); List<ProductStructureDto> listBybomAndProcess(@Param("processId") Long processId); }