This commit is contained in:
Vinjor 2024-11-06 14:17:32 +08:00
parent d0c0d02f97
commit 07df7503be
2 changed files with 2 additions and 1 deletions

View File

@ -40,6 +40,7 @@ public interface NotifyMessageMapper extends BaseMapperX<NotifyMessageDO> {
.eqIfPresent(NotifyMessageDO::getReadStatus, reqVO.getReadStatus()) .eqIfPresent(NotifyMessageDO::getReadStatus, reqVO.getReadStatus())
.betweenIfPresent(NotifyMessageDO::getCreateTime, reqVO.getCreateTime()) .betweenIfPresent(NotifyMessageDO::getCreateTime, reqVO.getCreateTime())
.eq(NotifyMessageDO::getUserId, userId) .eq(NotifyMessageDO::getUserId, userId)
.eq(NotifyMessageDO::getUserType, 1)
.orderByDesc(NotifyMessageDO::getId)); .orderByDesc(NotifyMessageDO::getId));
} }

View File

@ -70,7 +70,7 @@ public class NotifyMessageServiceImpl implements NotifyMessageService {
@Override @Override
@TenantIgnore @TenantIgnore
public Long getWXUnreadNotifyMessageCount(Long userId) { public Long getWXUnreadNotifyMessageCount(Long userId) {
return notifyMessageMapper.selectUnreadCountByUserIdAndUserType(userId, null); return notifyMessageMapper.selectUnreadCountByUserIdAndUserType(userId, 1);
} }
@Override @Override