yujian
2019-05-14 ad9fbd2c18f280ef9bba47f28353d367cf2d94e8
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/lable/QualityFactoryMapper.java
@@ -6,6 +6,7 @@
import org.apache.ibatis.annotations.Param;
import com.yeshi.fanli.entity.bus.lable.QualityFactory;
import com.yeshi.fanli.vo.quality.QualityFactoryVO;
public interface QualityFactoryMapper {
@@ -76,53 +77,9 @@
   long countQueryNeedUpdate();
   // 精选库查询
   List<QualityFactory> query(@Param("start") long start, @Param("count") int count, @Param("key") String key,
         // 排序字段 :销量、价格、佣金
         @Param("totalSales") Integer totalSales, @Param("price") Integer price, @Param("tkRate") Integer tkRate,
         // 商品来源、入库时间
         @Param("propor") Integer propor, @Param("goodsSource") Integer goodsSource, @Param("days") Integer days,
         // 在售价范围
         @Param("startZkPrice") Integer startZkPrice, @Param("endZkPrice") Integer endZkPrice,
         // 月销量范围
         @Param("startBiz30day") Integer startBiz30day, @Param("endBiz30day") Integer endBiz30day,
         // 权重范围
         @Param("startWeight") Integer startWeight, @Param("endWeight") Integer endWeight,
         // 佣金比例范围
         @Param("startTkRate") Integer startTkRate, @Param("endTkRate") Integer endTkRate,
         // 券面额:减多少
         @Param("startAmount") Integer startAmount, @Param("endAmount") Integer endAmount,
         // 是否: 优惠券 、包邮
         @Param("hasCoupon") Integer hasCoupon, @Param("freeShipment") Integer freeShipment,
         // 是否:消费者保障 、成交转化
         @Param("isPrepay") Integer isPrepay, @Param("payRate30") Integer payRate30,
         // 是否:好评率、 退款率
         @Param("goodRate") Integer goodRate, @Param("rfdRate") Integer rfdRate,
         // 券比例: 券面值/在售价
         @Param("startPropor") Integer startPropor, @Param("endPropor") Integer endPropor,
         // 类目id 搜索此类型
         @Param("gcid") Long gcid, @Param("keyType") Integer keyType);
   List<QualityFactory> query(QualityFactoryVO qualityFactoryVO);
   long queryCount(@Param("key") String key, @Param("goodsSource") Integer goodsSource, @Param("days") Integer days,
         // 在售价范围
         @Param("startZkPrice") Integer startZkPrice, @Param("endZkPrice") Integer endZkPrice,
         // 月销量范围
         @Param("startBiz30day") Integer startBiz30day, @Param("endBiz30day") Integer endBiz30day,
         // 权重范围
         @Param("startWeight") Integer startWeight, @Param("endWeight") Integer endWeight,
         // 佣金比例范围
         @Param("startTkRate") Integer startTkRate, @Param("endTkRate") Integer endTkRate,
         // 券面额:减多少
         @Param("startAmount") Integer startAmount, @Param("endAmount") Integer endAmount,
         // 是否: 优惠券 、包邮
         @Param("hasCoupon") Integer hasCoupon, @Param("freeShipment") Integer freeShipment,
         // 是否:消费者保障 、成交转化
         @Param("isPrepay") Integer isPrepay, @Param("payRate30") Integer payRate30,
         // 是否:好评率、 退款率
         @Param("goodRate") Integer goodRate, @Param("rfdRate") Integer rfdRate,
         // 券比例: 券面值/在售价
         @Param("startPropor") Integer startPropor, @Param("endPropor") Integer endPropor,
         // 类目id
         @Param("gcid") Long gcid, @Param("keyType") Integer keyType);
   long queryCount(QualityFactoryVO qualityFactoryVO);
   /**
    * 统计商品数量
@@ -261,6 +218,12 @@
   long countQueryByFlashSale();
   /**
    * 限时秒杀 随机3个商品
    * @return
    */
   List<QualityFactory> listFlashSaleRandGoods();
   /**
    * 返利金额数据查询
    * 
    * @param start
@@ -356,4 +319,30 @@
   List<QualityFactory> listByMinSalesCountOrderByCreateTimeDesc(@Param("salesCount") int salesCount,
         @Param("start") long start, @Param("count") int count);
   /**
    * 按最低销量倒叙排列
    *
    * @param salesCount
    * @param start
    * @param count
    * @return
    */
   List<QualityFactory> listFreeGoods(@Param("start") long start, @Param("count") int count,
         @Param("tkRate") Double tkRate, @Param("lableName") String lableName);
   long countFreeGoods(@Param("tkRate") Double tkRate, @Param("lableName") String lableName);
   /**
    * 根据店铺信息获取商品
    * @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);
}