|
|
@@ -769,10 +769,11 @@ public class LifeUserViolationServiceImpl extends ServiceImpl<LifeUserViolationM
|
|
|
List<String> videoFileType = Arrays.asList("mp4", "avi", "mov", "wmv", "flv", "mkv");
|
|
|
|
|
|
if ("2".equals(item.getReportContextType())) {
|
|
|
- LifeUserDynamics dynamicsList = lifeUserDynamicsMapper.selectById(id);
|
|
|
+ LifeUserDynamics dynamicsInfo = lifeUserDynamicsMapper.selectById(id);
|
|
|
+ item.setDynamicsInfo(dynamicsInfo);
|
|
|
// 将逗号分隔的图片路径拆分成 List<String>
|
|
|
- if (dynamicsList != null && StringUtils.isNotEmpty(dynamicsList.getImagePath())) {
|
|
|
- List<String> imagePathList = Arrays.stream(dynamicsList.getImagePath().split(","))
|
|
|
+ if (dynamicsInfo != null && StringUtils.isNotEmpty(dynamicsInfo.getImagePath())) {
|
|
|
+ List<String> imagePathList = Arrays.stream(dynamicsInfo.getImagePath().split(","))
|
|
|
.map(String::trim)
|
|
|
.filter(StringUtils::isNotEmpty)
|
|
|
.collect(Collectors.toList());
|
|
|
@@ -782,10 +783,11 @@ public class LifeUserViolationServiceImpl extends ServiceImpl<LifeUserViolationM
|
|
|
|
|
|
if ("3".equals(item.getReportContextType())) {
|
|
|
// TODO: 处理评论类型
|
|
|
- LifeComment commentList = lifeCommentMapper.selectById(id);
|
|
|
+ LifeComment commentInfo = lifeCommentMapper.selectById(id);
|
|
|
+ item.setCommentInfo(commentInfo);
|
|
|
// 将逗号分隔的图片路径拆分成 List<String>
|
|
|
- if (commentList != null && StringUtils.isNotEmpty(commentList.getImagePath())) {
|
|
|
- List<String> imagePathList = Arrays.stream(commentList.getImagePath().split(","))
|
|
|
+ if (commentInfo != null && StringUtils.isNotEmpty(commentInfo.getImagePath())) {
|
|
|
+ List<String> imagePathList = Arrays.stream(commentInfo.getImagePath().split(","))
|
|
|
.map(String::trim)
|
|
|
.filter(StringUtils::isNotEmpty)
|
|
|
.collect(Collectors.toList());
|