1. notice module
This commit is contained in:
2026-02-11 18:07:14 +08:00
parent 094b8774e3
commit 5bc82c1f5c
2 changed files with 4 additions and 3 deletions

View File

@@ -89,7 +89,7 @@ public class MarketUserController {
@GetMapping("/unread-num")
@ApiOperationSupport(order = 6)
@Operation(summary = "APP用户未读消息数量")
@Operation(summary = "Market用户未读消息数量")
public R<Long> unreadNum() {
return R.data(userNoticeService.marketUnreadNoticeNum());
}

View File

@@ -32,6 +32,7 @@ import org.springblade.modules.api.request.NoticeDetailRequest;
import org.springblade.modules.api.vo.CommonUserNoticeApiVO;
import org.springblade.modules.api.vo.CommonUserNoticeDetailApiVO;
import org.springblade.modules.common.convert.AppCommonConvert;
import org.springblade.modules.common.eums.NoticeType;
import org.springblade.modules.common.pojo.entity.CommonUserNoticeEntity;
import org.springblade.modules.common.pojo.vo.CommonUserNoticeVO;
import org.springblade.modules.common.mapper.CommonUserNoticeMapper;
@@ -135,7 +136,7 @@ public class CommonUserNoticeServiceImpl extends BaseServiceImpl<CommonUserNotic
return count(Wrappers.<CommonUserNoticeEntity>lambdaQuery()
.eq(CommonUserNoticeEntity::getUserId, AuthUtil.getUserId())
.eq(CommonUserNoticeEntity::getHasRead, 0)
.eq(CommonUserNoticeEntity::getNoticeType, 3)
.eq(CommonUserNoticeEntity::getNoticeType, NoticeType.APP_USER.getCode())
.eq(CommonUserNoticeEntity::getIsDeleted, 0));
}
@@ -149,7 +150,7 @@ public class CommonUserNoticeServiceImpl extends BaseServiceImpl<CommonUserNotic
return count(Wrappers.<CommonUserNoticeEntity>lambdaQuery()
.eq(CommonUserNoticeEntity::getUserId, AuthUtil.getUserId())
.eq(CommonUserNoticeEntity::getHasRead, 0)
.eq(CommonUserNoticeEntity::getNoticeType, 4)
.eq(CommonUserNoticeEntity::getNoticeType, NoticeType.MARKET_USER.getCode())
.eq(CommonUserNoticeEntity::getIsDeleted, 0));
}