linhw 2024-04-24 17:06:16 +08:00
parent 24807e717d
commit 262c099b43
1 changed files with 1 additions and 1 deletions

View File

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