/*
 * Copyright (c) 2018-2999 广州亚米信息科技有限公司 All rights reserved.
 *
 * https://www.gz-yami.com/
 *
 * 未经允许，不可做商业用途！
 *
 * 版权所有，侵权必究！
 */

package com.yami.shop.dao;

import java.util.List;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.yami.shop.common.util.PageParam;
import org.apache.ibatis.annotations.Param;

import com.yami.shop.bean.model.CategoryProd;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;

public interface CategoryProdMapper extends BaseMapper<CategoryProd> {


	void deleteByCategoryId(Long categoryId);

	void deleteByCodeAndProdId (@Param("code")String code, @Param("prodId")Long prodId);

	void deleteByProdId(Long prodId);

	/**
     * 通过code查询分类绑定商品
     */
    IPage<CategoryProd> pageByCode(PageParam<CategoryProd> page, @Param("categoryProd") CategoryProd categoryProd);
}
