From eec7e789a87863c25d92c10ad5dfc22ad80c448d Mon Sep 17 00:00:00 2001 From: admin <weikou2014> Date: 星期二, 14 七月 2020 12:36:48 +0800 Subject: [PATCH] 系统区分BUG修复 --- fanli/src/main/java/com/yeshi/fanli/service/inter/dynamic/GoodsEvaluateService.java | 31 +++++++++++++++++-------------- 1 files changed, 17 insertions(+), 14 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 ff3d3cf..31e302a 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,7 @@ 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; @@ -35,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); /** * 鏌ヨ @@ -47,9 +48,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); /** @@ -83,7 +84,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; /** @@ -132,22 +133,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); @@ -164,7 +165,7 @@ public void updateSuningGoods(SuningGoodsInfo goods); - public void addRanDomShareCount(); + public void addRanDomShareCount(SystemEnum system); /** * 娣诲姞鍙戝湀鍐呭 @@ -173,7 +174,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; /** @@ -203,7 +204,7 @@ * @param goodsType * @return */ - public GoodsEvaluate queryExistSingle(String goodsId, int goodsType); + public GoodsEvaluate queryExistSingle(String goodsId, int goodsType,SystemEnum system); /** * 鏌ヨ鍊掑簭 @@ -220,10 +221,12 @@ * @param daTaoKe * @return */ - public boolean addByDaTaoKeGoods(DaTaoKeDetailV2 daTaoKe); + public boolean addByDaTaoKeGoods(DaTaoKeDetailV2 daTaoKe,SystemEnum system); - public void addGoodsEvaluate2(String goodsId, List<String> imgs, ActivityUser user, String title, String comment) + 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