| | |
| | | promotionWishList.setExpectedPrice(promotionWishListDTO.getExpectedPrice()); |
| | | promotionWishList.setGoodsName(promotionWishListDTO.getGoodsName()); |
| | | promotionWishList.setRemark(promotionWishListDTO.getRemark()); |
| | | List<String> urlList=new ArrayList<>(); |
| | | if (promotionWishListDTO.getGoodsImageUrl().length>0){ |
| | | for (MultipartFile file:promotionWishListDTO.getGoodsImageUrl()){ |
| | | try { |
| | | String url= HuaWeiOBSUtil.obsUpload(file); |
| | | urlList.add(url); |
| | | } catch (IOException e) { |
| | | throw new RuntimeException(e); |
| | | } |
| | | } |
| | | promotionWishList.setGoodsImageUrl(urlList.toString()); |
| | | } |
| | | promotionWishList.setGoodsImageUrl(promotionWishListDTO.getGoodsImageUrl()); |
| | | promotionWishList.setMemberId(promotionWishListDTO.getMemberId()); |
| | | this.save(promotionWishList); |
| | | } |
| | | |