From e1a62ec62e7331d97af9302e90e1ce44af8235eb Mon Sep 17 00:00:00 2001
From: admin <weikou2014>
Date: 星期三, 27 一月 2021 15:26:55 +0800
Subject: [PATCH] 拼多多授权绑定

---
 fanli/src/main/java/com/yeshi/fanli/service/inter/dynamic/GoodsEvaluateService.java |  117 ++++++++++++++++++++++++++++++++++++++++++++++++++++------
 1 files changed, 104 insertions(+), 13 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 803f9e6..820156c 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,14 +1,23 @@
 package com.yeshi.fanli.service.inter.dynamic;
 
+import java.util.Date;
 import java.util.List;
 
+import com.yeshi.fanli.entity.SystemEnum;
 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.dynamic.GoodsEvaluate.EvaluateEnum;
+import com.yeshi.fanli.entity.jd.JDGoods;
+import com.yeshi.goods.facade.entity.taobao.TaoBaoGoodsBrief;
+import com.yeshi.goods.facade.entity.taobao.dataoke.DaTaoKeDetailV2;
 import com.yeshi.fanli.exception.dynamic.GoodsEvaluateException;
 
 public interface GoodsEvaluateService {
@@ -27,9 +36,9 @@
 	 * @param count
 	 * @return
 	 */
-	public List<GoodsEvaluate> queryValidEvaluateCache(int start, int count);
+	public List<GoodsEvaluate> queryValidEvaluateCache(int start, int count,SystemEnum system);
 
-	public long countValid();
+	public long countValid(SystemEnum system);
 
 	/**
 	 * 鏌ヨ
@@ -39,9 +48,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,SystemEnum system);
 
-	public long count(String key, Integer state,int dynamicType);
+	public long count(String key, Integer state,int dynamicType, String typeEnum,SystemEnum system);
 
 	
 	/**
@@ -75,7 +84,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, String goodsId, Integer goodsType, String videoUrl, Integer picNum, String picUrls, SystemEnum system,
 			MultipartHttpServletRequest fileRequest) throws GoodsEvaluateException, Exception;
 
 	/**
@@ -85,10 +94,10 @@
 	 * @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)
+	public void saveActivityPic(String pid, ImgInfo imgInfo, String picUrls, MultipartHttpServletRequest fileRequest)
 			throws GoodsEvaluateException, Exception;
 
 
@@ -124,18 +133,100 @@
 	 * @param count
 	 * @return
 	 */
-	public List<GoodsEvaluate> queryMaterialsCache(int start, int count,int type);
+	public List<GoodsEvaluate> queryMaterialsCache(int start, int count,int type,SystemEnum system) throws Exception;
 
-	public long countValidMaterials(int type);
+	public long countValidMaterials(int type,SystemEnum system);
 
-
-	public void saveGoodsCoupon(String pid, String tags, 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,SystemEnum system) throws GoodsEvaluateException, Exception;
 
 
+	/**
+	 * 鑷姩鐢熸垚鏁版嵁
+	 */
+	public void addGoodsEvaluateByDaTaoKe(SystemEnum system);
+
+
+	public void updateTaoBaoGoods(TaoBaoGoodsBrief goods);
+
+
+	public void updateJDGoods(JDGoods jdGoods);
+
+
+	public void updatePDDGoods(PDDGoodsDetail pddGoods);
+	
+	
+	public void updateVIPGoods(VIPGoodsInfo goods);
+	
+	public void updateSuningGoods(SuningGoodsInfo goods);
+
+
+	public void addRanDomShareCount(SystemEnum system);
+
+	/**
+	 *  娣诲姞鍙戝湀鍐呭
+	 * @param goodsId 鍟嗗搧id  蹇呬紶
+	 * @param cid 澶ф窐瀹㈠垎绫籭d  蹇呬紶
+	 * @param title 鏍囬    蹇呬紶
+	 * @param comment
+	 */
+	public void addGoodsEvaluate(String goodsId,List<ImgInfo> imgList, ActivityUser user, String title,String comment,Date startTime,SystemEnum system) 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,SystemEnum system);
+
+	/**
+	 * 鏌ヨ鍊掑簭
+	 * @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,SystemEnum system);
+
+
+	public int addGoodsEvaluate(TaoBaoGoodsBrief goodsBrief, List<String> imgs, ActivityUser user, String title,SystemEnum system)
+			throws GoodsEvaluateException;
+
+	public List<GoodsEvaluate> queryValidZeroPoint(int start, int count);
+
 }

--
Gitblit v1.8.0