/**
   * 将 JPrepareContentView 转换生成有效数据 注意网络资源的处理
   *
   * @param <T>
   * @param list
   * @param resUrlLocal 文件服务器的内网地址
   * @param currnetResUrl 浏览器上的当前的(可用内、外网文件服务器)地址
   */
  public static void convertToPurpose(
      List<JPrepareContentView> list, String resUrlLocal, String currnetResUrl) {

    // JPrepareContentView ResourceReview ResourceViewLog

    if (list != null && list.size() > 0) {
      for (int i = 0; i < list.size(); i++) {

        JPrepareContentView view = list.get(i);
        String imgPath = view.getImgPath();
        String size = view.getSize();
        // imgPath 以http开头 并且size 为0或空
        if ((StringUtils.isEmpty(size) || "0".equals(size))
            && (imgPath.startsWith("http") || imgPath.startsWith("HTTP"))) {
          // 设置文件后缀 html
          view.setFileSuffix("html");
        } else {
          // 设置文件后缀
          view.setFileSuffix(imgPath.substring(imgPath.lastIndexOf(".") + 1, imgPath.length()));
          // 组装缩略图路径(约定)
          imgPath =
              imgPath.substring(0, imgPath.lastIndexOf("."))
                  + ZhlResourceCenterWrap.THUMBNAILS_IMG_TYPE;
          // 判断是否存在
          String s = ZhlResourceCenterWrap.GetFileInfo(resUrlLocal, imgPath);
          if (StringUtils.isNotEmpty(s)) {
            HashMap m = JSONObject.parseObject(s, HashMap.class);
            if (m != null && ((Integer) m.get("FileSize") > 0)) {
              // 获取缩略图的地址(内网)
              imgPath = ZhlResourceCenterWrap.getWebThumbnail(resUrlLocal, imgPath);
              // 替换
              imgPath = imgPath.replace(resUrlLocal, currnetResUrl);
              view.setImgPath(imgPath);
            }
          } else {
            view.setImgPath("");
          }
        }
      }
    }
  }