| | |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import com.yeshi.fanli.entity.bus.lable.QualityFactory; |
| | | import com.yeshi.fanli.vo.quality.QualityFactoryVO; |
| | | |
| | | public interface QualityFactoryMapper { |
| | | |
| | |
| | | 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); |
| | | |
| | | /** |
| | | * 统计商品数量 |
| | |
| | | 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); |
| | | |
| | | } |