admin
2019-07-11 3824cbcaec6e6c67418d5280a53e9c2fedeef6f9
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/goods/CommonGoodsMapper.java
@@ -1,22 +1,39 @@
package com.yeshi.fanli.dao.mybatis.goods;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import com.yeshi.fanli.goods.CommonGoods;
import com.yeshi.fanli.dao.BaseMapper;
import com.yeshi.fanli.entity.goods.CommonGoods;
public interface CommonGoodsMapper {
public interface CommonGoodsMapper extends BaseMapper<CommonGoods> {
   int deleteByPrimaryKey(Long id);
   int insert(CommonGoods record);
   int insertSelective(CommonGoods record);
   CommonGoods selectByPrimaryKey(Long id);
   CommonGoods selectByGoodsIdAndGoodsType(@Param("goodsId") Long goodsId, @Param("goodsType") int goodsType);
   int updateByPrimaryKeySelective(CommonGoods record);
   int updateByPrimaryKey(CommonGoods record);
   /**
    * 根据店铺id查询 最新5个
    * @param goodsId
    * @return
    */
   List<CommonGoods> listBySellerId(@Param("sellerId") Long sellerId);
   /**
    * 统计店铺商品有券数量
    * @param sellerId
    * @return
    */
   long countBySellerIdAndHasCoupon(@Param("sellerId") Long sellerId);
   /**
    * 批量商品id查询商品信息
    * @param list
    * @return
    */
   List<CommonGoods> getByListGoodsId(@Param("list") List<Long> list);
}