admin
2019-11-23 51a4ff5d777028d52a19c314a99f796334cb7b51
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/taobao/TaoBaoGoodsBriefMapper.java
@@ -5,23 +5,20 @@
import org.apache.ibatis.annotations.Param;
import com.yeshi.fanli.dao.BaseMapper;
import com.yeshi.fanli.entity.taobao.TaoBaoGoodsBrief;
public interface TaoBaoGoodsBriefMapper {
public interface TaoBaoGoodsBriefMapper extends BaseMapper<TaoBaoGoodsBrief>{
   int deleteByPrimaryKey(Long id);
   int deleteByAuctionId(Long auctionId);
   int insert(TaoBaoGoodsBrief record);
   int insertSelective(TaoBaoGoodsBrief record);
   TaoBaoGoodsBrief selectByPrimaryKey(Long id);
   int updateByPrimaryKeySelective(TaoBaoGoodsBrief record);
   int updateByPrimaryKey(TaoBaoGoodsBrief record);
   /*
    * 根据商品id 批量删除
    * @param list
    */
   void deleteBatchByGoodsId(List<Long> list);
   /**
    * 根据auctionId 查询商品信息
@@ -46,6 +43,15 @@
    * @return
    */
   List<TaoBaoGoodsBrief> queryGoodsByAuctionId(List<Long> list);
   /**
    * 根据多个auctionId是否已存在
    *
    * @param list
    * @return
    */
   List<Long> listExistById(List<Long> list);
   /**
    * 批量更新
@@ -71,5 +77,24 @@
   List<Long> queryCanDeleteGoods(@Param("maxTime") Date maxTime,@Param("start")int start,@Param("count")int count);
   
   Long queryCanDeleteGoodsCount(@Param("maxTime") Date maxTime);
   /**
    * 根据店铺信息获取商品
    * @param start
    * @param count
    * @param shopId
    * @return
    */
   List<TaoBaoGoodsBrief> listByShopId(@Param("start") long start, @Param("count") int count,
         @Param("shopId") Long shopId);
   long countByShopId(@Param("shopId") Long shopId);
   /**
    * 长时间未更新的商品
    */
   List<Long> listNeedUpdateGoodsId(@Param("start") long start, @Param("count") int count, @Param("hour") int hour);
}