Commit 00691a81 authored by renjie's avatar renjie

information

parent 7c26136b
......@@ -364,8 +364,11 @@ public class AccountServiceImpl implements AccountService {
current.setAllowedToCreateSubUser(true);
}
List<AccountDto> child = repository.findByParent(name).stream().map(item -> new AccountDto(item)).collect(Collectors.toList());
current.setChild(child);
List<Account> child = repository.findByParent(name);
if (child != null && child.size() > 0) {
List<AccountDto> childDto = child.stream().map(item -> new AccountDto(item)).collect(Collectors.toList());
current.setChild(childDto);
}
ShopSummary shopSummary = shopService.getShopSummary(name);
if (shopSummary != null)
......
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