From 30d8e227e8d823b6c38c3b9c90ac2df03b63befe Mon Sep 17 00:00:00 2001 From: admin <weikou2014> Date: 星期二, 25 二月 2025 16:41:22 +0800 Subject: [PATCH] 淘宝转链接口更新 --- fanli/src/main/java/com/yeshi/fanli/service/inter/dynamic/GoodsEvaluateService.java | 83 +++++++++++++++++++++++++++++++++++------ 1 files changed, 70 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 3945dc1..c1d6eb1 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 @@ -3,6 +3,9 @@ import java.util.Date; import java.util.List; +import com.yeshi.fanli.entity.SystemEnum; +import com.yeshi.fanli.util.goods.douyin.vo.DYGoodsDetail; +import com.yeshi.goods.facade.dto.taobao.dataoke.DaTaoKeListTopOffDTO; import org.springframework.web.multipart.MultipartFile; import org.springframework.web.multipart.MultipartHttpServletRequest; @@ -13,8 +16,10 @@ 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.goods.facade.entity.taobao.TaoBaoGoodsBrief; +import com.yeshi.goods.facade.entity.taobao.dataoke.DaTaoKeDetailV2; import com.yeshi.fanli.exception.dynamic.GoodsEvaluateException; public interface GoodsEvaluateService { @@ -33,9 +38,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); /** * 鏌ヨ @@ -45,9 +50,9 @@ * @param state * @return */ - public List<GoodsEvaluate> query(int start, int count, String key, Integer state, int dynamicType, String typeEnum); + 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, String typeEnum); + public long count(String key, Integer state,int dynamicType, String typeEnum,SystemEnum system); /** @@ -81,7 +86,7 @@ * @throws GoodsEvaluateException * @throws Exception */ - public String saveSingleGoods(String pid, String 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; /** @@ -91,7 +96,7 @@ * @throws GoodsEvaluateException * @throws Exception */ - public void saveCurrencyCoupon(String pid, int kind, CommentInfo commentInfo) throws GoodsEvaluateException, Exception; + public void saveCurrencyCoupon(SystemEnum system,String pid, int kind, CommentInfo commentInfo) throws GoodsEvaluateException, Exception; public void saveActivityPic(String pid, ImgInfo imgInfo, String picUrls, MultipartHttpServletRequest fileRequest) @@ -130,22 +135,22 @@ * @param count * @return */ - public List<GoodsEvaluate> queryMaterialsCache(int start, int count,int type) throws Exception; + 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 release(String id) throws GoodsEvaluateException; - public void saveGoodsComment(String id, int kind, List<CommentInfo> comments) throws GoodsEvaluateException, Exception; + public void saveGoodsComment(String id, int kind, List<CommentInfo> comments,SystemEnum system) throws GoodsEvaluateException, Exception; /** * 鑷姩鐢熸垚鏁版嵁 */ - public void addGoodsEvaluateByDaTaoKe(); + public void addGoodsEvaluateByDaTaoKe(SystemEnum system); public void updateTaoBaoGoods(TaoBaoGoodsBrief goods); @@ -158,11 +163,13 @@ public void updateVIPGoods(VIPGoodsInfo goods); + + public void updateDYGoods(DYGoodsDetail goods); public void updateSuningGoods(SuningGoodsInfo goods); - public void addRanDomShareCount(); + public void addRanDomShareCount(SystemEnum system); /** * 娣诲姞鍙戝湀鍐呭 @@ -171,7 +178,7 @@ * @param title 鏍囬 蹇呬紶 * @param comment */ - public void addGoodsEvaluate(String 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,SystemEnum system) throws GoodsEvaluateException; /** @@ -187,4 +194,54 @@ */ 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; + + /** + * 娣诲姞澶ф窐瀹㈢殑绾挎姤 + * @param dto + * @param user + * @param system + * @return + * @throws GoodsEvaluateException + */ + public int addGoodsEvaluate(DaTaoKeListTopOffDTO dto, ActivityUser user, SystemEnum system) + throws GoodsEvaluateException; + + public List<GoodsEvaluate> queryValidZeroPoint(int start, int count); + } -- Gitblit v1.8.0