admin
2020-06-10 271ae63c20fcbe28d29c47f1881138ff6551a2a1
fanli/src/main/java/com/yeshi/fanli/service/inter/dynamic/GoodsEvaluateService.java
@@ -7,6 +7,8 @@
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;
@@ -43,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);
   
   /**
@@ -79,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;
   /**
@@ -92,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;
@@ -153,6 +155,11 @@
   public void updatePDDGoods(PDDGoodsDetail pddGoods);
   public void updateVIPGoods(VIPGoodsInfo goods);
   public void updateSuningGoods(SuningGoodsInfo goods);
   public void addRanDomShareCount();
@@ -164,13 +171,36 @@
    * @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);
   /**
    * 状态切换
    * @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);
}