package com.sqx.modules.goods.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.sqx.modules.goods.entity.GoodsRule;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface GoodsRuleMapper extends BaseMapper<GoodsRule> {

    int insertGoodsRule(GoodsRule goodsRule);

    IPage<GoodsRule> selectRuleByShopId(Page<GoodsRule> page, Long shopId, String shopName);

}