package com.cyksj.mapper;

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

import java.util.List;

/**
 * 项目名: yhlxj
 * 文件名: GoodsDonCategoryRelateMapper
 * 创建者: JavaZou
 * 创建时间:2023/10/7 18:14
 */
public interface GoodsDonCategoryRelateMapper extends BaseMapper<GoodsDonCategoryRelate> {

	List<GoodsDonCategory> getCateGoryViewByGoodsId(Long goodsId);

	void saveBatchGoodsRelate(@Param("goodsId") Long goodsId, @Param("list") List<Long> categoryList);

	List<Long> selectCategoryIdsByGid(Long goodsId);
}
