From 271ae63c20fcbe28d29c47f1881138ff6551a2a1 Mon Sep 17 00:00:00 2001 From: admin <weikou2014> Date: 星期三, 10 六月 2020 19:26:26 +0800 Subject: [PATCH] 唯品会订单bug修复,APP端佣金比例展示错误bug修复 --- fanli/src/main/java/com/yeshi/fanli/service/inter/dynamic/GoodsEvaluateService.java | 52 +++++++++++++++++++++++++++++++++++++++++++--------- 1 files changed, 43 insertions(+), 9 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 96f1861..097e9a2 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 @@ -1,13 +1,16 @@ package com.yeshi.fanli.service.inter.dynamic; +import java.util.Date; import java.util.List; import org.springframework.web.multipart.MultipartFile; import org.springframework.web.multipart.MultipartHttpServletRequest; import com.yeshi.fanli.dto.pdd.PDDGoodsDetail; +import com.yeshi.fanli.dto.suning.SuningGoodsInfo; +import com.yeshi.fanli.dto.vip.goods.VIPGoodsInfo; +import com.yeshi.fanli.entity.bus.activity.ActivityUser; 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; @@ -42,9 +45,9 @@ * @param state * @return */ - public List<GoodsEvaluate> query(int start, int count, String key, Integer state, int dynamicType); + public List<GoodsEvaluate> query(int start, int count, String key, Integer state, int dynamicType, String typeEnum); - public long count(String key, Integer state,int dynamicType); + public long count(String key, Integer state,int dynamicType, String typeEnum); /** @@ -78,7 +81,7 @@ * @throws GoodsEvaluateException * @throws Exception */ - public String saveSingleGoods(String pid, Long goodsId, Integer goodsType, String videoUrl, Integer picNum, String picUrls, + public String saveSingleGoods(String pid, String goodsId, Integer goodsType, String videoUrl, Integer picNum, String picUrls, MultipartHttpServletRequest fileRequest) throws GoodsEvaluateException, Exception; /** @@ -91,7 +94,7 @@ public void saveCurrencyCoupon(String pid, int kind, CommentInfo commentInfo) throws GoodsEvaluateException, Exception; - public void saveActivityPic(String pid, ImgInfo imgInfo, MultipartHttpServletRequest fileRequest) + public void saveActivityPic(String pid, ImgInfo imgInfo, String picUrls, MultipartHttpServletRequest fileRequest) throws GoodsEvaluateException, Exception; @@ -132,11 +135,8 @@ public long countValidMaterials(int type); - public void saveGoodsCoupon(String pid, String content) throws GoodsEvaluateException, Exception; - public void release(String id) throws GoodsEvaluateException; - public void saveGoodsComment(String id, int kind, List<CommentInfo> comments) throws GoodsEvaluateException, Exception; @@ -155,6 +155,11 @@ public void updatePDDGoods(PDDGoodsDetail pddGoods); + + + public void updateVIPGoods(VIPGoodsInfo goods); + + public void updateSuningGoods(SuningGoodsInfo goods); public void addRanDomShareCount(); @@ -166,7 +171,36 @@ * @param title 鏍囬 蹇呬紶 * @param comment */ - public void addGoodsEvaluate(Long goodsId, Integer cid, String title, String comment) throws GoodsEvaluateException; + public void addGoodsEvaluate(String goodsId,List<ImgInfo> imgList, ActivityUser user, String title,String comment,Date startTime) throws GoodsEvaluateException; + + /** + * 涓嬫灦鍟嗗搧 + * @param goodsId + */ + public void offlineTaoBaoGoods(String goodsId); + + /** + * 鐘舵�佸垏鎹� + * @param id + * @throws GoodsEvaluateException + */ + public void switchState(String id) throws GoodsEvaluateException; + + /** + * 鏌ヨ + * @param date + * @return + */ + public List<GoodsEvaluate> listByStartTime(Date date); + + + /** + * 鏍规嵁鍟嗗搧id銆佺被鍨嬫煡璇� + * @param goodsId + * @param goodsType + * @return + */ + public GoodsEvaluate queryExistSingle(String goodsId, int goodsType); } -- Gitblit v1.8.0