package com.gxwebsoft.shop.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.gxwebsoft.common.core.web.PageResult;
import com.gxwebsoft.shop.entity.GoodsIncomeConfig;
import com.gxwebsoft.shop.param.GoodsIncomeConfigParam;

import java.util.List;

/**
 * 分润配置Service
 *
 * @author 科技小王子
 * @since 2024-10-06 17:55:50
 */
public interface GoodsIncomeConfigService extends IService<GoodsIncomeConfig> {

    /**
     * 分页关联查询
     *
     * @param param 查询参数
     * @return PageResult<GoodsIncomeConfig>
     */
    PageResult<GoodsIncomeConfig> pageRel(GoodsIncomeConfigParam param);

    /**
     * 关联查询全部
     *
     * @param param 查询参数
     * @return List<GoodsIncomeConfig>
     */
    List<GoodsIncomeConfig> listRel(GoodsIncomeConfigParam param);

    /**
     * 根据id查询
     *
     * @param id 
     * @return GoodsIncomeConfig
     */
    GoodsIncomeConfig getByIdRel(Integer id);

    GoodsIncomeConfig check(Integer goodsId, Integer skuId, String merchantShopType);
}
