From eda623f37c3260f4b4657e34a8a39798c72432b1 Mon Sep 17 00:00:00 2001
From: admin <weikou2014>
Date: 星期日, 28 六月 2020 15:49:14 +0800
Subject: [PATCH] 搜索接口增加小黄条返回
---
fanli/src/main/java/com/yeshi/fanli/service/inter/dynamic/GoodsEvaluateService.java | 60 ++++++++++++++++++++++++++++++++++++++++++++++++++++++------
1 files changed, 54 insertions(+), 6 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 3a974d3..01d6476 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
@@ -7,12 +7,16 @@
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.GoodsEvaluate;
import com.yeshi.fanli.entity.dynamic.ImgInfo;
+import com.yeshi.fanli.entity.dynamic.GoodsEvaluate.EvaluateEnum;
import com.yeshi.fanli.entity.jd.JDGoods;
import com.yeshi.fanli.entity.taobao.TaoBaoGoodsBrief;
+import com.yeshi.fanli.entity.taobao.dataoke.DaTaoKeDetailV2;
import com.yeshi.fanli.exception.dynamic.GoodsEvaluateException;
public interface GoodsEvaluateService {
@@ -43,9 +47,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);
/**
@@ -79,7 +83,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;
/**
@@ -92,7 +96,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;
@@ -153,6 +157,11 @@
public void updatePDDGoods(PDDGoodsDetail pddGoods);
+
+
+ public void updateVIPGoods(VIPGoodsInfo goods);
+
+ public void updateSuningGoods(SuningGoodsInfo goods);
public void addRanDomShareCount();
@@ -164,14 +173,14 @@
* @param title 鏍囬 蹇呬紶
* @param comment
*/
- public void addGoodsEvaluate(Long goodsId,List<ImgInfo> imgList, ActivityUser user, String title,String comment,Date startTime) 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(Long goodsId);
+ public void offlineTaoBaoGoods(String goodsId);
/**
* 鐘舵�佸垏鎹�
@@ -180,4 +189,43 @@
*/
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);
+
+ /**
+ * 鏌ヨ鍊掑簭
+ * @param start
+ * @param count
+ * @param dynamicType
+ * @return
+ */
+ public List<GoodsEvaluate> queryValidSortASC(int start, int count, EvaluateEnum tyepEnum, boolean sortDesc);
+
+
+ /**
+ * 娣诲姞澶ф窐瀹㈠晢鍝�
+ * @param daTaoKe
+ * @return
+ */
+ public boolean addByDaTaoKeGoods(DaTaoKeDetailV2 daTaoKe);
+
+
+ public int addGoodsEvaluate(TaoBaoGoodsBrief goodsBrief, List<String> imgs, ActivityUser user, String title)
+ throws GoodsEvaluateException;
+
+ public List<GoodsEvaluate> queryValidZeroPoint(int start, int count);
+
}
--
Gitblit v1.8.0