package com.yeshi.fanli.service.inter.lable;
|
|
|
import java.math.BigDecimal;
|
import java.util.List;
|
|
import net.sf.json.JSONArray;
|
|
import com.yeshi.fanli.entity.bus.lable.QualityFactory;
|
|
public interface QualityGoodsService {
|
|
/**
|
* 根据券面额查询商品信息
|
* @param start
|
* @param count
|
* @param key
|
* @param endAmount
|
* @return
|
*/
|
public List<QualityFactory> listQueryByCouponAmount(long start, int count, Integer key, Integer endAmount, Integer startPropor);
|
public long countQueryByCouponAmount(Integer key, Integer endAmount, Integer startPropor);
|
|
|
/**
|
* 限时抢购商品
|
* @param start
|
* @param count
|
* @param periodtime
|
* @return
|
*/
|
|
public List<QualityFactory> listQueryByFlashSale(long start, int count);
|
public long countQueryByFlashSale();
|
|
|
/**
|
* 根据关键词搜索
|
* @param start
|
* @param count
|
* @param key
|
* @return
|
*/
|
public List<QualityFactory> listQueryByKey(long start, int count, String key, Integer sort, Long systemCid,Integer hasQuan, Integer userType,
|
Integer biz30day,Integer startprice, Integer endprice);
|
public long countQueryByKey(String key, Long systemCid,Integer hasQuan, Integer userType,
|
Integer biz30day,Integer startprice, Integer endprice);
|
|
|
/**
|
* 一级分类查询精选库数据
|
* @param start
|
* @param count
|
* @param cid
|
* @return
|
*/
|
public List<QualityFactory> listQueryByClassId(long start, int count, Long cid);
|
|
public long countQueryClassId(Long cid);
|
|
|
/**
|
* 关键词+标签id搜索商品
|
* @param start
|
* @param count
|
* @param systemCid
|
* @param key
|
* @param listId
|
* @param sort
|
* @return
|
*/
|
|
public List<QualityFactory> listQueryByKeyAndlabIDs(long start, int count, String key, List<Long> listId,
|
Integer sort,Long systemCid, Integer hasQuan, Integer userType, Integer biz30day, Integer startprice, Integer endprice);
|
public long countQueryKeyAndlabIDs(String key, List<Long> listId, Long systemCid,Integer hasQuan, Integer userType,
|
Integer biz30day,Integer startprice, Integer endprice);
|
|
|
|
/**
|
* 返利金额数据查询
|
* @param start
|
* @param count
|
* @param proportion
|
* @param startAmount
|
* @param endAmount
|
* @return
|
*/
|
public List<QualityFactory> listQueryByRebateAmount(long start, int count, String proportion, Integer startAmount, Integer endAmount, double tkRate);
|
|
public long countQueryByRebateAmount(String proportion, Integer startAmount, Integer endAmount, double tkRate);
|
|
|
/**
|
* 优惠券栏目 精选库每日最新入库的商品 且前200条数据,
|
* @param start
|
* @param count
|
* @return
|
*/
|
public List<QualityFactory> queryToCouponColumn(long start, int count);
|
|
public long countQueryToCouponColumn();
|
|
|
/**
|
* 返利金额数据查询 - 首页最底部@商品信息流:券面额高(高于5元以上)返利金额高的(2元以上),返利佣金比例高的(5%以上)
|
* @param start
|
* @param count
|
* @param proportion 分成比例
|
* @param startAmount 返利
|
* @param couponAmount 券面额
|
* @param tkRate 佣金比例
|
* @return
|
*/
|
public List<QualityFactory> listRecommend(long start, int count, Double proportion, Integer startAmount,
|
Integer couponAmount, double tkRate, Double couponRatio);
|
|
public long countRecommend(Double proportion, Integer startAmount, Integer couponAmount,
|
double tkRate, Double couponRatio);
|
|
/**
|
* 根据关键词进行搜索商品-搜索-推荐
|
* @param start
|
* @param count
|
* @param key 关键词
|
* @return
|
*/
|
public List<QualityFactory> listRecommendBykey(long start, int count, String key, Integer hasQuan,
|
Integer userType, Double startprice, Double endprice, Double startTkRate, Double endTkRate, Integer sort);
|
|
public long countRecommendBykey(String key, Integer hasQuan, Integer userType,
|
Double startprice, Double endprice, Double startTkRate, Double endTkRate);
|
|
|
/**
|
* 首页推荐
|
* @param start 起始位置
|
* @param count 返回总行数
|
* @param proportion 计算比例
|
* @return
|
*/
|
public JSONArray getRecommendToIndex(long start, int count, String proportion);
|
|
public long countRecommendToIndex(String proportion);
|
|
/**
|
* 单个商品根据标签推荐商品
|
* @param paramLong
|
* @param paramString1
|
* @param paramString2
|
* @return
|
*/
|
public List<QualityFactory> recommendByAuctionId(Long paramLong);
|
|
|
|
/**
|
* 免单商品
|
* @param start
|
* @param count
|
* @param tkRate 佣金比例
|
* @param lableName 标签名
|
* @return
|
*/
|
public List<QualityFactory> listFreeGoods(long start, int count, Double tkRate, String lableName);
|
|
public long countFreeGoods(Double tkRate, String lableName);
|
|
/**
|
* 限时秒杀随机3个商品
|
* @return
|
*/
|
public List<QualityFactory> listFlashSaleRandGoods();
|
|
|
/**
|
* 根据店铺id查询
|
* @param start
|
* @param count
|
* @param shopId
|
* @return
|
*/
|
public List<QualityFactory> listByShopId(long start, int count, Long shopId);
|
|
public long countByShopId(Long shopId);
|
|
|
/**
|
* 9k9类商品筛选
|
* @param start
|
* @param count
|
* @param biz30day
|
* @param zkPrice
|
* @param minQuanPrice
|
* @param maxQuanPrice
|
* @param cids
|
* @return
|
*/
|
public List<QualityFactory> get9k9ClassGoods(long start, int count, Integer biz30day, BigDecimal zkPrice,
|
BigDecimal minQuanPrice, BigDecimal maxQuanPrice, String cids);
|
|
public long count9k9ClassGoods(Integer biz30day, BigDecimal zkPrice, BigDecimal minQuanPrice, BigDecimal maxQuanPrice,
|
String cids);
|
|
|
/**
|
* 9k9中的每日必抢
|
* @param start
|
* @param count
|
* @param zkPrice
|
* @param minQuanPrice
|
* @param maxQuanPrice
|
* @return
|
*/
|
public List<QualityFactory> listQueryEverydayRob(long start, int count, BigDecimal zkPrice, BigDecimal minQuanPrice,
|
BigDecimal maxQuanPrice);
|
|
public long countQueryEverydayRob(BigDecimal zkPrice, BigDecimal minQuanPrice, BigDecimal maxQuanPrice);
|
}
|