| | |
| | | * @param out |
| | | */ |
| | | @RequestMapping(value = "saveSingleGoods") |
| | | public void saveSingleGoods(String callback, String pid, Long goodsId, Integer goodsType, String videoUrl, |
| | | public void saveSingleGoods(String callback, String pid, String goodsId, Integer goodsType, String videoUrl, |
| | | Integer picNum, String picUrls, HttpServletRequest request, PrintWriter out) { |
| | | try { |
| | | MultipartHttpServletRequest fileRequest = null; |
| | |
| | | GoodsEvaluate goodsEvaluate = goodsEvaluateService.getById(pid); |
| | | if (goodsEvaluate != null && goodsEvaluate.getImgList() != null && goodsEvaluate.getImgList().size() > 0) { |
| | | activityUrl = goodsEvaluate.getJumpLink(); |
| | | |
| | | List<ImgInfo> imgList = goodsEvaluate.getImgList(); |
| | | for (ImgInfo imgInfo : imgList) { |
| | | ImgEnum type = imgInfo.getType(); |
| | |
| | | videoUrl = imgInfo.getVideoUrl(); |
| | | } else { |
| | | list.add(imgInfo.getUrl()); |
| | | if (StringUtil.isNullOrEmpty(activityUrl) && !StringUtil.isNullOrEmpty(imgInfo.getActivityUrl())) { |
| | | activityUrl = imgInfo.getActivityUrl(); |
| | | } |
| | | } |
| | | } |
| | | } |