|
|
@@ -159,16 +159,20 @@ public class StatisticsDataServiceImpl implements StatisticsDataService {
|
|
|
if (accountHead != null) {
|
|
|
BackgroundDataView dataView = (BackgroundDataView) accountHead;
|
|
|
backgroundDataView.setTotalNumOfWillExpireAccount(dataView.getTotalNumOfWillExpireAccount());
|
|
|
+ backgroundDataView.setWillExpireAccountList(dataView.getWillExpireAccountList());
|
|
|
backgroundDataView.setTotalExpiredAccountNum(dataView.getTotalExpiredAccountNum());
|
|
|
+ backgroundDataView.setExpiredAccountList(dataView.getExpiredAccountList());
|
|
|
backgroundDataView.setTotalNumOfExpiredSubAccount(dataView.getTotalNumOfExpiredSubAccount());
|
|
|
} else {
|
|
|
DateTime fiveDays = DateUtil.offsetDay(zero, 5);
|
|
|
//5天后将到期的主账号
|
|
|
List<Account> willExpireAccounts = Optional.ofNullable(accountService.list(Wrappers.lambdaQuery(Account.class).gt(Account::getExpiryTime, zero).le(Account::getExpiryTime, fiveDays))).orElse(new ArrayList<>());
|
|
|
backgroundDataView.setTotalNumOfWillExpireAccount(willExpireAccounts.size());
|
|
|
+ backgroundDataView.setWillExpireAccountList(willExpireAccounts);
|
|
|
//已到期主账号
|
|
|
List<Account> expiredAccounts = Optional.ofNullable(accountService.list(Wrappers.lambdaQuery(Account.class).le(Account::getExpiryTime, now))).orElse(new ArrayList<>());
|
|
|
backgroundDataView.setTotalExpiredAccountNum(expiredAccounts.size());
|
|
|
+ backgroundDataView.setExpiredAccountList(expiredAccounts);
|
|
|
//已到期子账号
|
|
|
List<GroupsRelation> expiredSubAccounts = Optional.ofNullable(groupsRelationMapper.selectList(Wrappers.lambdaQuery(GroupsRelation.class).le(GroupsRelation::getExpiryTime, now))).orElse(new ArrayList<>());
|
|
|
backgroundDataView.setTotalNumOfExpiredSubAccount(expiredSubAccounts.size());
|