v1.1 动态-我的动态-vo加上worldName
This commit is contained in:
@@ -68,8 +68,7 @@
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<div class=" modal fade" id="fileUpload" tabindex="-1" role="dialog" aria-labelledby="modalLabel1"
|
||||
>
|
||||
<div class=" modal fade" id="fileUpload" tabindex="-1" role="dialog" aria-labelledby="modalLabel1">
|
||||
<div class="modal-dialog" role="document">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
|
@@ -19,6 +19,9 @@ public class MyDynamicInfoVo {
|
||||
private Long uid;
|
||||
|
||||
private Long worldId;
|
||||
private Long worldUid;
|
||||
private String worldName;
|
||||
private Boolean inWorld;
|
||||
|
||||
private String content;
|
||||
|
||||
|
@@ -419,6 +419,14 @@ public class DynamicService extends CommunityBaseService {
|
||||
dynamic.setDynamicResList(Arrays.asList(resVo));
|
||||
}
|
||||
}
|
||||
if (dynamic.getWorldId() != null){
|
||||
World world = worldService.getByIdFromCache(dynamic.getWorldId());
|
||||
if (null != world) {
|
||||
dynamic.setWorldUid(world.getOwnerUid());
|
||||
dynamic.setWorldName(world.getName());
|
||||
dynamic.setInWorld(worldService.isInWorld(request.getUid(), dynamic.getWorldId()));
|
||||
}
|
||||
}
|
||||
});
|
||||
//加入轻寻第一天
|
||||
if(CollectionUtils.isEmpty(myDynamicList) && request.getPage() == 1) {
|
||||
|
Reference in New Issue
Block a user