Commit 41861f27 authored by renjie's avatar renjie

bug修改

parent e6fee17d
...@@ -395,7 +395,7 @@ public class AdministratorServiceImpl implements AdministratorService { ...@@ -395,7 +395,7 @@ public class AdministratorServiceImpl implements AdministratorService {
Date dateTime2 = formatter.parse(strDate2); Date dateTime2 = formatter.parse(strDate2);
Page<Account> accountPage = accountRepository.findAllBySignupDateBetweenAndPromotionCodeAndParentIsNull(pageable, dateTime1, dateTime2, account.getPromotion().getCode()); Page<Account> accountPage = accountRepository.findAllBySignupDateBetweenAndPromotionCodeAndParentIsNull(pageable, dateTime1, dateTime2, account.getPromotion().getCode());
List<AccountPromotionDto> accountPromotionDtos = new ArrayList<>(); List<AccountPromotionDto> accountPromotionDtos = new ArrayList<>();
if (accountPage.getNumber() > 0) { if (accountPage.getNumberOfElements() > 0) {
accountPage.get().forEach(account1 -> { accountPage.get().forEach(account1 -> {
accountPromotionDtos.add(new AccountPromotionDto(account1)); accountPromotionDtos.add(new AccountPromotionDto(account1));
}); });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment