|
@@ -706,13 +706,14 @@ public class CommunityArticleServiceImpl extends ServiceImpl<CommunityArticleMap
|
|
}
|
|
}
|
|
|
|
|
|
//插入图片日志
|
|
//插入图片日志
|
|
- List<String> images = communityArticle.getImages();
|
|
|
|
|
|
+ List<CommunityImagesVo> images = communityArticle.getImages();
|
|
if (images != null && !images.isEmpty()) {
|
|
if (images != null && !images.isEmpty()) {
|
|
CommunityArticleImages articleImages = null;
|
|
CommunityArticleImages articleImages = null;
|
|
- for (String image : images) {
|
|
|
|
|
|
+ for (CommunityImagesVo image : images) {
|
|
articleImages = new CommunityArticleImages();
|
|
articleImages = new CommunityArticleImages();
|
|
articleImages.setArticleId(communityArticle.getId());
|
|
articleImages.setArticleId(communityArticle.getId());
|
|
- articleImages.setImageUrl(image);
|
|
|
|
|
|
+ articleImages.setImageUrl(image.getImages());
|
|
|
|
+ articleImages.setCompressUrl(image.getCompressedImages());
|
|
articleImages.setCreateTime(DateUtils.parseDate(DateUtils.getTime()));
|
|
articleImages.setCreateTime(DateUtils.parseDate(DateUtils.getTime()));
|
|
articleImages.setCreateBy(userId);
|
|
articleImages.setCreateBy(userId);
|
|
communityArticleImagesMapper.insert(articleImages);
|
|
communityArticleImagesMapper.insert(articleImages);
|
|
@@ -850,7 +851,7 @@ public class CommunityArticleServiceImpl extends ServiceImpl<CommunityArticleMap
|
|
}
|
|
}
|
|
|
|
|
|
//插入图片日志
|
|
//插入图片日志
|
|
- List<String> images = communityArticle.getImages();
|
|
|
|
|
|
+ List<CommunityImagesVo> images = communityArticle.getImages();
|
|
|
|
|
|
//插入图片日志 都失效
|
|
//插入图片日志 都失效
|
|
communityArticleImagesMapper.update(
|
|
communityArticleImagesMapper.update(
|
|
@@ -865,10 +866,11 @@ public class CommunityArticleServiceImpl extends ServiceImpl<CommunityArticleMap
|
|
|
|
|
|
if (images != null && !images.isEmpty()) {
|
|
if (images != null && !images.isEmpty()) {
|
|
CommunityArticleImages articleImages = null;
|
|
CommunityArticleImages articleImages = null;
|
|
- for (String image : images) {
|
|
|
|
|
|
+ for (CommunityImagesVo image : images) {
|
|
articleImages = new CommunityArticleImages();
|
|
articleImages = new CommunityArticleImages();
|
|
articleImages.setArticleId(communityArticle.getId());
|
|
articleImages.setArticleId(communityArticle.getId());
|
|
- articleImages.setImageUrl(image);
|
|
|
|
|
|
+ articleImages.setImageUrl(image.getImages());
|
|
|
|
+ articleImages.setCompressUrl(image.getCompressedImages());
|
|
articleImages.setCreateTime(DateUtils.parseDate(DateUtils.getTime()));
|
|
articleImages.setCreateTime(DateUtils.parseDate(DateUtils.getTime()));
|
|
articleImages.setCreateBy(userId);
|
|
articleImages.setCreateBy(userId);
|
|
communityArticleImagesMapper.insert(articleImages);
|
|
communityArticleImagesMapper.insert(articleImages);
|