admin
2021-04-28 a7454d8a6325566753358b37ffabfae2faa0ca7f
fanli/src/main/java/com/yeshi/fanli/service/inter/lable/TaoKeGoodsService.java
@@ -1,113 +1,116 @@
package com.yeshi.fanli.service.inter.lable;
import java.util.List;
import java.util.Map;
import net.sf.json.JSONObject;
import com.yeshi.fanli.entity.bus.lable.QualityFactory;
import com.yeshi.fanli.entity.taobao.SearchFilter;
import com.yeshi.fanli.entity.taobao.TaoBaoGoodsBrief;
public interface TaoKeGoodsService {
   /**
    * 根据MaterialID 获取推荐商品信息
    * @return
    * @throws Exception
    */
   public List<TaoBaoGoodsBrief> listByMaterial(Integer materialId, Integer page1, int pageSize) throws Exception;
   /**
    * 物料搜索— 分类id搜索、关键词
    * @param key
    * @param cateIds
    * @param page
    * @param filterParams
    * @param order
    * @param startprice
    * @param endprice
    * @return
    */
   public JSONObject listByWuLiao( int page, String key, String cateIds, String filterParams,
         String order, String startprice, String endprice, String searchParam);
   /**
    * 品牌购 (官方推荐【品牌券】接口)
    * @param materialId
    * @param pageIndex
    * @param pageSize
    * @return
    * @throws Exception
    */
   public JSONObject getBrandsGoods(Integer materialId, int pageIndex, int pageSize) throws Exception;
   /**
    * 获取商品店铺信息
    * @param materialId
    * @param pageIndex
    * @param pageSize
    * @return
    * @throws Exception
    */
   public JSONObject getBrandsShops(Integer materialId, int pageIndex, int pageSize) throws Exception;
   /**
    * 淘宝接口获取商品列表
    * @param sf
    * @return
    */
   public JSONObject searchWuLiao(SearchFilter sf);
   public List<TaoBaoGoodsBrief> searchWuLiaoList(SearchFilter sf);
   public void setSearchFilter(SearchFilter searchfilter, String filter, String order, String startprice, String endprice, String fastFilter,
         Integer totalSales);
   /**
    * 精选库数据转换
    * @param listQuality
    * @param searchWuLiaoList
    * @param map
    * @return
    */
   public JSONObject listQualityGoods(List<QualityFactory> listQuality, List<TaoBaoGoodsBrief> searchWuLiaoList, Map<String, String> map);
   /**
    * 统计精选库值
    * @param searchKey  搜索关键词
    * @param systemCid  系统主分类
    * @param listLabId  标签id集合
    * @return
    */
   public long countByQuality(String searchKey, Long systemCid, List<Long> listLabId);
   /**
    * 查询精选库
    * @param start
    * @param count
    * @param searchKey  搜索关键词
    * @param systemCid  系统主分类
    * @param listLabId  标签id集合
    * @return
    */
   public List<QualityFactory> queryByQuality(long start, int count, String searchKey, Long systemCid, List<Long> listLabId);
}
package com.yeshi.fanli.service.inter.lable;
import java.util.List;
import java.util.Map;
import com.yeshi.fanli.entity.SystemEnum;
import net.sf.json.JSONObject;
import com.yeshi.fanli.entity.bus.lable.QualityFactory;
import com.yeshi.fanli.entity.taobao.SearchFilter;
import com.yeshi.goods.facade.entity.taobao.TaoBaoGoodsBrief;
public interface TaoKeGoodsService {
   /**
    * 根据MaterialID 获取推荐商品信息
    * @return
    * @throws Exception
    */
   public List<TaoBaoGoodsBrief> listByMaterial(Integer materialId, Integer page1, int pageSize) throws Exception;
   /**
    * 物料搜索— 分类id搜索、关键词
    * @param key
    * @param cateIds
    * @param page
    * @param filterParams
    * @param order
    * @param startprice
    * @param endprice
    * @return
    */
   public JSONObject listByWuLiao( int page, String key, String cateIds, String filterParams,
         String order, String startprice, String endprice, String searchParam,SystemEnum system);
   /**
    * 品牌购 (官方推荐【品牌券】接口)
    * @param materialId
    * @param pageIndex
    * @param pageSize
    * @return
    * @throws Exception
    */
   public JSONObject getBrandsGoods(Integer materialId, int pageIndex, int pageSize, SystemEnum system) throws Exception;
   /**
    * 获取商品店铺信息
    * @param materialId
    * @param pageIndex
    * @param pageSize
    * @return
    * @throws Exception
    */
   public JSONObject getBrandsShops(Integer materialId, int pageIndex, int pageSize) throws Exception;
   /**
    * 淘宝接口获取商品列表
    * @param sf
    * @return
    */
   public JSONObject searchWuLiao(SearchFilter sf,SystemEnum system);
   public List<TaoBaoGoodsBrief> searchWuLiaoList(SearchFilter sf,SystemEnum system);
   public void setSearchFilter(SearchFilter searchfilter, String filter, String order, String startprice, String endprice, String fastFilter,
         Integer totalSales);
   /**
    * 精选库数据转换
    * @param listQuality
    * @param searchWuLiaoList
    * @param map
    * @return
    */
   public JSONObject listQualityGoods(List<QualityFactory> listQuality, List<TaoBaoGoodsBrief> searchWuLiaoList, Map<String, String> map,SystemEnum system);
   /**
    * 统计精选库值
    * @param searchKey  搜索关键词
    * @param systemCid  系统主分类
    * @param listLabId  标签id集合
    * @return
    */
   public long countByQuality(String searchKey, Long systemCid, List<Long> listLabId);
   /**
    * 查询精选库
    * @param start
    * @param count
    * @param searchKey  搜索关键词
    * @param systemCid  系统主分类
    * @param listLabId  标签id集合
    * @return
    */
   public List<QualityFactory> queryByQuality(long start, int count, String searchKey, Long systemCid, List<Long> listLabId);
   public JSONObject searchWuLiaoV2(SearchFilter sf,String platform,String version,SystemEnum system);
}