feat:
1. notice module
This commit is contained in:
@@ -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());
|
||||
}
|
||||
|
||||
@@ -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));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user