| | |
| | | package com.yeshi.fanli.dao.mybatis.lable; |
| | | |
| | | import java.math.BigDecimal; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import com.yeshi.fanli.dao.BaseMapper; |
| | | import com.yeshi.fanli.entity.bus.lable.QualityFactory; |
| | | import com.yeshi.fanli.vo.quality.QualityFactoryVO; |
| | | |
| | | public interface QualityFactoryMapper { |
| | | public interface QualityFactoryMapper extends BaseMapper<QualityFactory>{ |
| | | |
| | | int deleteByPrimaryKey(Long id); |
| | | |
| | | int insert(QualityFactory record); |
| | | |
| | | int insertSelective(QualityFactory record); |
| | | |
| | | QualityFactory selectByPrimaryKey(Long id); |
| | | |
| | | int updateByPrimaryKeySelective(QualityFactory record); |
| | | |
| | | int updateByPrimaryKey(QualityFactory record); |
| | | |
| | | /** |
| | | * 批量插入 |
| | |
| | | * @return |
| | | */ |
| | | int deleteBatchByPrimaryKey(List<Long> list); |
| | | |
| | | |
| | | /** |
| | | * 根据商品id 批量删除 |
| | | * @param list |
| | | */ |
| | | void deleteBatchByGoodsId(List<Long> list); |
| | | |
| | | /** |
| | | * 统计总行数 |
| | |
| | | Long countTotalRows(@Param("days") Integer days); |
| | | |
| | | List<QualityFactory> queryByGoodsId(@Param("goodsId") Long goodsId); |
| | | |
| | | |
| | | /** |
| | | * 根据商品id查询 |
| | | * @param auctionId |
| | | * @return |
| | | */ |
| | | QualityFactory getByAuctionId(@Param("auctionId") Long auctionId); |
| | | |
| | | |
| | | /** |
| | | * 根据多个商品id 查询对应的商品信息 |
| | |
| | | |
| | | // 精选库查询 -- 查询所有 |
| | | List<QualityFactory> queryAll(@Param("start") long start, @Param("count") int count, @Param("days") Integer days); |
| | | |
| | | // 待更新精选商品id |
| | | List<Long> queryNeedUpdate(@Param("start") long start, @Param("count") int count, @Param("hour") int hour); |
| | | |
| | | // 统计需更新商品数量 |
| | | long countQueryNeedUpdate(); |
| | | |
| | | // 精选库查询 |
| | | List<QualityFactory> query(QualityFactoryVO qualityFactoryVO); |
| | |
| | | */ |
| | | int removeStorageGoods(String doTime, Long gcids); |
| | | |
| | | /** |
| | | * 今日必抢 - 9k9 |
| | | * |
| | | * @param start |
| | | * @param count |
| | | * @param systemCid |
| | | * @param labId |
| | | * @param sortField |
| | | * @return |
| | | */ |
| | | List<QualityFactory> listQueryEverydayRob(@Param("start") long start, @Param("count") int count, |
| | | @Param("systemCid") Long systemCid, @Param("labId") Long labId, @Param("sortField") Integer sortField, |
| | | @Param("startCouponAmount") Double startCouponAmount, @Param("endCouponAmount") Double endCouponAmount); |
| | | |
| | | long countQueryEverydayRob(@Param("systemCid") Long systemCid, @Param("labId") Long labId, |
| | | @Param("startCouponAmount") Double startCouponAmount, @Param("endCouponAmount") Double endCouponAmount); |
| | | |
| | | |
| | | /** |
| | | * 子类查询 |
| | | * |
| | |
| | | |
| | | long countQueryByFlashSale(); |
| | | |
| | | /** |
| | | * 限时秒杀 随机3个商品 |
| | | * @return |
| | | */ |
| | | List<QualityFactory> listFlashSaleRandGoods(); |
| | | |
| | | /** |
| | | * 返利金额数据查询 |
| | | * |
| | |
| | | * @param count |
| | | * @return |
| | | */ |
| | | List<QualityFactory> listFreeGoods(@Param("start") long start, @Param("count") int count, |
| | | @Param("tkRate") Double tkRate, @Param("lableName") String lableName); |
| | | List<QualityFactory> listFreeGoods(@Param("start") long start, @Param("count") int count); |
| | | |
| | | long countFreeGoods(@Param("tkRate") Double tkRate, @Param("lableName") String lableName); |
| | | long countFreeGoods(); |
| | | |
| | | |
| | | /** |
| | | * 根据店铺信息获取商品 |
| | | * @param start |
| | | * @param count |
| | | * @param shopId |
| | | * @return |
| | | */ |
| | | List<QualityFactory> listByShopId(@Param("start") long start, @Param("count") int count, |
| | | @Param("shopId") Long shopId); |
| | | |
| | | long countByShopId(@Param("shopId") Long shopId); |
| | | |
| | | |
| | | |
| | | /** |
| | | * 9k9类 |
| | | * |
| | | */ |
| | | List<QualityFactory> get9k9ClassGoods(@Param("start") long start, @Param("count") int count, |
| | | @Param("biz30day") Integer biz30day, @Param("zkPrice") BigDecimal zkPrice, |
| | | @Param("minQuanPrice") BigDecimal minQuanPrice, @Param("maxQuanPrice") BigDecimal maxQuanPrice, |
| | | @Param("cids") String cids); |
| | | |
| | | long count9k9ClassGoods(@Param("biz30day") Integer biz30day, @Param("zkPrice") BigDecimal zkPrice, |
| | | @Param("minQuanPrice") BigDecimal minQuanPrice, @Param("maxQuanPrice") BigDecimal maxQuanPrice |
| | | ,@Param("cids") String cids); |
| | | |
| | | |
| | | |
| | | /** |
| | | * 今日必抢 - 9k9 |
| | | * |
| | | */ |
| | | List<QualityFactory> listQueryEverydayRob(@Param("start") long start, @Param("count") int count, |
| | | @Param("zkPrice") BigDecimal zkPrice, |
| | | @Param("minQuanPrice") BigDecimal minQuanPrice, @Param("maxQuanPrice") BigDecimal maxQuanPrice); |
| | | |
| | | long countQueryEverydayRob(@Param("zkPrice") BigDecimal zkPrice, |
| | | @Param("minQuanPrice") BigDecimal minQuanPrice, @Param("maxQuanPrice") BigDecimal maxQuanPrice); |
| | | |
| | | |
| | | } |