4 天以前 7188f28998d47c286e34cbd525986603cfc19ba9
yudao-module-mes/src/main/java/cn/iocoder/yudao/module/mes/service/pro/route/MesProRouteProductBomServiceImpl.java
@@ -13,6 +13,7 @@
import org.springframework.stereotype.Service;
import org.springframework.validation.annotation.Validated;
import java.util.Collection;
import java.util.List;
import static cn.iocoder.yudao.framework.common.exception.util.ServiceExceptionUtil.exception;
@@ -132,4 +133,17 @@
        routeProductBomMapper.deleteByRouteIdAndProductId(routeId, productId);
    }
    @Override
    public List<MesProRouteProductBomDO> getRouteProductBomListByRouteIdAndProductId(Long routeId, Long productId) {
        return routeProductBomMapper.selectListByRouteIdAndProductId(routeId, productId);
    }
    @Override
    public List<MesProRouteProductBomDO> getRouteProductBomListByProductIds(Long routeId, Collection<Long> productIds) {
        if (CollUtil.isEmpty(productIds)) {
            return java.util.Collections.emptyList();
        }
        return routeProductBomMapper.selectListByProductIds(routeId, productIds);
    }
}