package com.czg.service.product.mapper;

import com.czg.product.dto.ProdConsRelationDTO;
import com.czg.product.dto.ProductBriefDTO;
import com.czg.product.entity.ProdConsRelation;
import com.mybatisflex.core.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 商品耗材绑定关系
 *
 * @author Tankaikai tankaikai@aliyun.com
 * @since 1.0 2025-02-20
 */
@Mapper
public interface ProdConsRelationMapper extends BaseMapper<ProdConsRelation> {

    List<ProductBriefDTO> getProductListByConId(@Param("conId") Long conId);

    List<ProdConsRelationDTO> selectListByProdId(@Param("prodId") Long prodId);

    List<ProdConsRelationDTO> selectStockByProdId(@Param("prodId") Long prodId);
}