linhw 2024-04-24 17:15:49 +08:00
parent 713f9ffd76
commit 6760d3ffe8
1 changed files with 2 additions and 2 deletions

View File

@ -61,9 +61,9 @@ public class AppDynamicCommentServiceImpl implements IAppDynamicCommentService
public int insertAppDynamicComment(AppDynamicComment appDynamicComment)
{
if (appDynamicComment.getParentId() != null && appDynamicComment.getParentId() > 0) {
AppDynamicComment entity = appDynamicCommentMapper.selectAppDynamicCommentById(appDynamicComment.getId());
AppDynamicComment entity = appDynamicCommentMapper.selectAppDynamicCommentById(appDynamicComment.getParentId());
appDynamicComment.setParentIds(appDynamicComment.getParentId() + ",");
if (StringUtils.isNotBlank(entity.getParentIds())) {
if (entity != null && StringUtils.isNotBlank(entity.getParentIds())) {
appDynamicComment.setParentIds(entity.getParentIds() + appDynamicComment.getParentId() + ",");
}
}