123
This commit is contained in:
@@ -11,4 +11,6 @@ public class UnreadData {
|
||||
private Long dynamicCount;
|
||||
private Long reportCount;
|
||||
private Long userGreetCount;
|
||||
|
||||
private Long userAvatarCount;
|
||||
}
|
||||
|
||||
@@ -25,6 +25,8 @@ public class UnreadManager {
|
||||
private ReportService reportService;
|
||||
@Autowired
|
||||
private UserGreetService userGreetService;
|
||||
@Autowired
|
||||
private UserPictureAuditService userPictureAuditService;
|
||||
|
||||
public UnreadData data() {
|
||||
UnreadData unreadData = new UnreadData();
|
||||
@@ -42,6 +44,8 @@ public class UnreadManager {
|
||||
unreadData.setReportCount(reportCount);
|
||||
long userGreetCount = userGreetService.count(Wrappers.lambdaQuery(UserGreet.class).eq(UserGreet::getAuditStatus, AuditStatusEnum.AUDITING.getCode()));
|
||||
unreadData.setUserGreetCount(userGreetCount);
|
||||
long userAvatarCount = userPictureAuditService.count(Wrappers.lambdaQuery(UserPictureAudit.class).eq(UserPictureAudit::getAuditStatus, AuditStatusEnum.AUDITING.getCode()));
|
||||
unreadData.setUserGreetCount(userAvatarCount);
|
||||
return unreadData;
|
||||
}
|
||||
|
||||
@@ -75,6 +79,10 @@ public class UnreadManager {
|
||||
if(exists){
|
||||
return true;
|
||||
}
|
||||
exists = userPictureAuditService.exists(Wrappers.lambdaQuery(UserPictureAudit.class).eq(UserPictureAudit::getAuditStatus, AuditStatusEnum.AUDITING.getCode()));
|
||||
if(exists){
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user