评论数量bug

This commit is contained in:
aikai 2024-04-15 22:13:03 +08:00
parent de97bc1b50
commit a50b04c9ec
2 changed files with 3 additions and 2 deletions

View File

@ -125,7 +125,8 @@ public class WorkLogCommentServiceImpl implements WorkLogCommentService {
.eq(WorkLogCommentDO::getUserId, userId)
.eq(WorkLogCommentDO::getType, 0)));
Integer replyNum = Math.toIntExact(workLogCommentMapper.selectCount(new LambdaQueryWrapper<WorkLogCommentDO>()
.eq(WorkLogCommentDO::getUserId, userId)
.and(a -> a.eq(WorkLogCommentDO::getUserId, userId)
.or().eq(WorkLogCommentDO::getCommentUserId, userId))
.eq(WorkLogCommentDO::getType, 1)));
vo.setCommentNum(commentNum);
vo.setReplyNum(replyNum);

View File

@ -106,7 +106,7 @@ public class LogInstanceServiceImpl implements LogInstanceService {
//设置日志类型
logInstance.setType(logRuleDO.getType());
//设置日志名称
logInstance.setName(adminUserDO.getNickname() + "" + logFormDo.getName());
logInstance.setName(adminUserDO.getNickname() + createReqVO.getTime() + "" + logFormDo.getName());
// 插入提交状态
Date thisDate = new Date();