From dcfd801ea435c1c87ed47f2ee24cdabaaf230d6f Mon Sep 17 00:00:00 2001 From: admin <weikou2014> Date: 星期二, 31 三月 2020 12:15:56 +0800 Subject: [PATCH] 大淘客商品过滤修改 --- fanli/src/main/java/com/yeshi/fanli/service/inter/dynamic/GoodsEvaluateService.java | 81 ++++++++++++++++++++++++++++++++++++++-- 1 files changed, 76 insertions(+), 5 deletions(-) diff --git a/fanli/src/main/java/com/yeshi/fanli/service/inter/dynamic/GoodsEvaluateService.java b/fanli/src/main/java/com/yeshi/fanli/service/inter/dynamic/GoodsEvaluateService.java index b9d1097..4dfa30b 100644 --- a/fanli/src/main/java/com/yeshi/fanli/service/inter/dynamic/GoodsEvaluateService.java +++ b/fanli/src/main/java/com/yeshi/fanli/service/inter/dynamic/GoodsEvaluateService.java @@ -5,14 +5,18 @@ import org.springframework.web.multipart.MultipartFile; import org.springframework.web.multipart.MultipartHttpServletRequest; +import com.yeshi.fanli.dto.pdd.PDDGoodsDetail; import com.yeshi.fanli.entity.dynamic.CommentInfo; +import com.yeshi.fanli.entity.dynamic.DynamicInfo; import com.yeshi.fanli.entity.dynamic.GoodsEvaluate; import com.yeshi.fanli.entity.dynamic.ImgInfo; +import com.yeshi.fanli.entity.jd.JDGoods; +import com.yeshi.fanli.entity.taobao.TaoBaoGoodsBrief; import com.yeshi.fanli.exception.dynamic.GoodsEvaluateException; public interface GoodsEvaluateService { - public void saveHead(MultipartFile file, GoodsEvaluate record) throws GoodsEvaluateException; + public String saveHead(MultipartFile file, GoodsEvaluate record) throws GoodsEvaluateException; public GoodsEvaluate getById(String id); @@ -38,9 +42,9 @@ * @param state * @return */ - public List<GoodsEvaluate> query(int start, int count, String key, Integer state); + public List<GoodsEvaluate> query(int start, int count, String key, Integer state, int dynamicType); - public long count(String key, Integer state); + public long count(String key, Integer state,int dynamicType); /** @@ -74,7 +78,7 @@ * @throws GoodsEvaluateException * @throws Exception */ - public void saveSingleGoods(String pid, Long goodsId, Integer goodsType, String videoUrl, Integer picNum, String picUrls, + public String saveSingleGoods(String pid, Long goodsId, Integer goodsType, String videoUrl, Integer picNum, String picUrls, MultipartHttpServletRequest fileRequest) throws GoodsEvaluateException, Exception; /** @@ -84,11 +88,78 @@ * @throws GoodsEvaluateException * @throws Exception */ - public void saveSingleGoodsCoupon(String pid, CommentInfo commentInfo) throws GoodsEvaluateException, Exception; + public void saveCurrencyCoupon(String pid, int kind, CommentInfo commentInfo) throws GoodsEvaluateException, Exception; public void saveActivityPic(String pid, ImgInfo imgInfo, MultipartHttpServletRequest fileRequest) throws GoodsEvaluateException, Exception; + /** + * 澶氫釜鍟嗗搧淇濆瓨淇℃伅 + * @param pid + * @param videoUrl + * @param goodsList + * @param fileRequest + * @throws GoodsEvaluateException + * @throws Exception + */ + public void saveMultipleGoods(String pid, String videoUrl, String goodsList, MultipartHttpServletRequest fileRequest) + throws GoodsEvaluateException, Exception; + + + /** + * 绱犳潗 + * @param pid + * @param videoUrl + * @param picUrls + * @param fileRequest + * @throws GoodsEvaluateException + * @throws Exception + */ + public void saveSuCai(String pid, String videoUrl, String picUrls, MultipartHttpServletRequest fileRequest) + throws GoodsEvaluateException, Exception; + + + /** + * 鏌ヨ绱犳潗 + * @param start + * @param count + * @return + */ + public List<GoodsEvaluate> queryMaterialsCache(int start, int count,int type) throws Exception; + + public long countValidMaterials(int type); + + + public void saveGoodsCoupon(String pid, String content) throws GoodsEvaluateException, Exception; + + + public void release(String id) throws GoodsEvaluateException; + + + public void addGoodsEvaluateByDynamicInfo(DynamicInfo info); + + + public void saveGoodsComment(String id, int kind, List<CommentInfo> comments) throws GoodsEvaluateException, Exception; + + + /** + * 鑷姩鐢熸垚鏁版嵁 + */ + public void addGoodsEvaluateByDaTaoKe(); + + + public void updateTaoBaoGoods(TaoBaoGoodsBrief goods); + + + public void updateJDGoods(JDGoods jdGoods); + + + public void updatePDDGoods(PDDGoodsDetail pddGoods); + + + public void addRanDomShareCount(); + + } -- Gitblit v1.8.0