package com.cyksj.mapper.manage.distribute;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cyksj.model.entity.UserDistributeBusinessRate;
import com.cyksj.model.entity.UserPlatDistributeRate;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/*
 *项目名: netflix
 *文件名: UserDistributeBusinessRateMapper
 *创建者: JavaZou
 *创建时间:2023/3/22 18:13
 */
public interface UserDistributeBusinessRateMapper extends BaseMapper<UserDistributeBusinessRate> {
	List<Long> selectNoThisGoodsDistribute(Long goodsId);

	void batchInsertDistributePlatRate(@Param("list") List<UserPlatDistributeRate> part);

	void insertOrUpdateBusinessGoodsSkuRate(@Param("list") List<Long> businessIds, @Param("goodsId") Long goodsId, @Param("skuId") Long skuId, @Param("firstOrderRate") Integer firstOrderRate, @Param("renewOrderRate") Integer renewOrderRate);
}
