|
|
@@ -330,6 +330,21 @@ public class ForumPostInfoServiceImpl extends ServiceImpl<ForumPostInfoMapper, F
|
|
|
forumPostInfoVo.setForumContentCorrection(forumContentCorrection);
|
|
|
}
|
|
|
}
|
|
|
+ // 关联被指向的用户
|
|
|
+ if (forumPostInfoVo.getAppointUser() != null) {
|
|
|
+ String appointUser = forumPostInfoVo.getAppointUser();
|
|
|
+ StringBuffer sb = new StringBuffer();
|
|
|
+ String[] split = appointUser.split(",");
|
|
|
+ for (int i = 0; i < split.length; i++) {
|
|
|
+ JSONObject userByIdWithoutException = sysUserApi.getUserByIdWithoutException(split[i]);
|
|
|
+ if (i != split.length - 1) {
|
|
|
+ sb.append(userByIdWithoutException.getStr("name")).append(",");
|
|
|
+ } else {
|
|
|
+ sb.append(userByIdWithoutException.getStr("name"));
|
|
|
+ }
|
|
|
+ }
|
|
|
+ forumPostInfoVo.setAppointUser(sb.toString());
|
|
|
+ }
|
|
|
return forumPostInfoVo;
|
|
|
}
|
|
|
|