admin
2020-04-02 b47fb09eaffa4a13c0d63e823cb9319bcb775249
fanli/src/main/java/com/yeshi/fanli/service/impl/dynamic/GoodsEvaluateServiceImpl.java
@@ -736,8 +736,6 @@
         }
      }
      
      // 数据对比 删除图片
      if (oldGoodsList != null && oldGoodsList.size() > 0) {
         for (ImgInfo old : oldGoodsList) {
@@ -959,10 +957,11 @@
      /*
       * if (!StringUtil.isNullOrEmpty(content) && kind != 3) { try {
       * convertLinkManager.convertLinkFromText(content,
       * Constant.LINK_TOKEN_VERIFY_UID, true); } catch (ConvertLinkExceptionException
       * e) { if (ConvertLinkExceptionException.CODE_NONE != e.getCode()) { throw new
       * GoodsEvaluateException(1, "包含不可转链的口令与链接"); } } catch (Exception e) { throw
       * new GoodsEvaluateException(1, "包含不可转链的口令与链接"); } }
       * Constant.LINK_TOKEN_VERIFY_UID, true); } catch
       * (ConvertLinkExceptionException e) { if
       * (ConvertLinkExceptionException.CODE_NONE != e.getCode()) { throw new
       * GoodsEvaluateException(1, "包含不可转链的口令与链接"); } } catch (Exception e) {
       * throw new GoodsEvaluateException(1, "包含不可转链的口令与链接"); } }
       */
      GoodsEvaluate resultObj = goodsEvaluateDao.getById(pid);
@@ -1302,7 +1301,6 @@
         totalImg++;
      }
      // 清理老图片
      if (listOld != null && listOld.size() > 0) {
         for (int j = 0; j < listOld.size(); j++) {
@@ -1570,7 +1568,6 @@
         
         // 按照发布显示时间段起始时间为准。
         goodsEvaluate.setPublishTime(goodsEvaluate.getStartTime());
         // 按照发布显示时间段起始时间为准。
         goodsEvaluate.setPublishTime(goodsEvaluate.getStartTime());
@@ -1855,8 +1852,9 @@
   }
   @Override
   public void addGoodsEvaluate(Long goodsId, Integer cid, String title, String comment) throws GoodsEvaluateException{
      if (goodsId == null || cid == null || StringUtil.isNullOrEmpty(title)) {
   public void addGoodsEvaluate(Long goodsId, List<ImgInfo> imgList, ActivityUser user, String title, String comment)
         throws GoodsEvaluateException {
      if (goodsId == null || user == null || StringUtil.isNullOrEmpty(title)) {
         throw new GoodsEvaluateException(1, "相关参数不能为空");
      }
      
@@ -1876,13 +1874,6 @@
         throw new GoodsEvaluateException(1, "该商品无券");
      }
      // 发布用户
      ActivityUser user = activityUserService.getRandomByDaTaoKeCid(cid);
      if (user == null) {
         throw new GoodsEvaluateException(1, "未找到发布用户");
      }
      // 白底图
      List<String> imgs = new ArrayList<>();
      if (!StringUtil.isNullOrEmpty(goodsBrief.getPictUrlWhite())) {
@@ -1897,7 +1888,7 @@
      // 商品图片信息
      int i = 0;
      List<ImgInfo> imgList = new ArrayList<>();
      if (imgList == null || imgList.size() == 0)
      for (String img : imgs) {
         ImgInfo imgInfo = new ImgInfo();
         imgInfo.setH(1);
@@ -1946,7 +1937,8 @@
            commentText = commentText.replace("[券后价]",
                  MoneyBigDecimalUtil.getWithNoZera(goodsVO.getCouponPrice()) + "");
         }
         commentText = commentText.replace("\r\n\r\n", "\r\n").replace("\r\n\r\n", "\r\n").replace("\r\n\r\n","\r\n");
         commentText = commentText.replace("\r\n\r\n", "\r\n").replace("\r\n\r\n", "\r\n").replace("\r\n\r\n",
               "\r\n");
         commentInfo.setContent(commentText);
         commentInfo.setType(CommentInfoEnum.goodsCoupon.getDesc());
      }
@@ -1967,7 +1959,6 @@
            lineNum = 3;
         }
      }
      GoodsEvaluate goodsEvaluate = new GoodsEvaluate();
      goodsEvaluate.setId(UUID.randomUUID().toString().replace("-", ""));
@@ -2250,7 +2241,6 @@
      }
      return descNew;
   }
   @Override
   public void updateTaoBaoGoods(TaoBaoGoodsBrief goods) {