|
|
@@ -96,13 +96,15 @@ public class UserArchivesServiceImpl extends BaseMybatisDao< UserArchivesMapper>
|
|
|
user.setSignBills(u.getSignBills());
|
|
|
UserArchives userArchives = queryByUid(id);
|
|
|
List<OrganizationContactBook> customerContacts = userMapper.findCustomerContacts(id, TokenManager.getAdminId());
|
|
|
- if (!customerContacts.isEmpty()){
|
|
|
- List<OrganizationContactBook> collect = customerContacts.stream()
|
|
|
- .filter(e -> e.getMajor() == 1).collect(Collectors.toList());
|
|
|
+ List<OrganizationContactBook> collect = customerContacts.stream()
|
|
|
+ .filter(e -> e.getMajor() == 1).collect(Collectors.toList());
|
|
|
+ if (user.getMyUser()==0){
|
|
|
for (OrganizationContactBook ob : collect) {
|
|
|
ob.setName("***");
|
|
|
ob.setMobile("***");
|
|
|
}
|
|
|
+ }
|
|
|
+ if (!customerContacts.isEmpty()){
|
|
|
user.setContactList(collect);
|
|
|
}
|
|
|
BeanUtils.copyProperties(userArchives, user);
|