main
parent
713f9ffd76
commit
6760d3ffe8
|
|
@ -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() + ",");
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue