main
parent
46bb732ced
commit
92b5471430
|
|
@ -1,5 +1,6 @@
|
|||
package com.ruoyi.app.domain;
|
||||
|
||||
import com.ruoyi.app.domain.vo.AppDynamicCommentVo;
|
||||
import lombok.Data;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
|
|
@ -75,6 +76,8 @@ public class AppUserDynamic extends BaseEntity
|
|||
|
||||
private List<Long> dynamicIds;
|
||||
|
||||
private List<AppDynamicCommentVo> appDynamicComments;
|
||||
|
||||
public void setIsTop(Long isTop)
|
||||
{
|
||||
this.isTop = isTop;
|
||||
|
|
|
|||
|
|
@ -57,9 +57,12 @@ public class AppUserDynamicServiceImpl implements IAppUserDynamicService
|
|||
* @return App用户动态
|
||||
*/
|
||||
@Override
|
||||
public AppUserDynamic selectAppUserDynamicById(Long id)
|
||||
{
|
||||
return appUserDynamicMapper.selectcById(id);
|
||||
public AppUserDynamic selectAppUserDynamicById(Long id) {
|
||||
AppUserDynamic appUserDynamic = appUserDynamicMapper.selectcById(id);
|
||||
AppDynamicComment appDynamicComment = new AppDynamicComment();
|
||||
appDynamicComment.setDynamicId(id);
|
||||
appUserDynamic.setAppDynamicComments(appDynamicCommentMapper.selectCommentList(appDynamicComment));
|
||||
return appUserDynamic;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in New Issue