package com.yeshi.fanli.dao.mybatis.goods;
|
|
import java.util.List;
|
|
import org.apache.ibatis.annotations.Param;
|
|
import com.yeshi.fanli.dao.BaseMapper;
|
import com.yeshi.fanli.entity.goods.CommonGoods;
|
|
public interface CommonGoodsMapper extends BaseMapper<CommonGoods> {
|
|
|
CommonGoods selectByGoodsIdAndGoodsType(@Param("goodsId") Long goodsId, @Param("goodsType") int goodsType);
|
|
|
/**
|
* 根据店铺id查询 最新5个
|
* @param goodsId
|
* @return
|
*/
|
List<CommonGoods> listBySellerId(@Param("sellerId") Long sellerId);
|
|
/**
|
* 统计店铺商品有券数量
|
* @param sellerId
|
* @return
|
*/
|
long countBySellerIdAndHasCoupon(@Param("sellerId") Long sellerId);
|
}
|