Compare commits

...

2 Commits

Author SHA1 Message Date
linhw 965b0809ce ~C 2024-05-28 15:50:22 +08:00
linhw 92b5471430 ~C 2024-05-28 15:49:23 +08:00
2 changed files with 8 additions and 4 deletions

View File

@ -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;
@ -74,7 +75,7 @@ public class AppUserDynamic extends BaseEntity
private List<Long> ids;
private List<Long> dynamicIds;
private List<AppDynamicCommentVo> appDynamicComments;
private Integer check;
private Boolean isOwner;

View File

@ -58,9 +58,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;
}
/**