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