|
|
@@ -749,14 +749,20 @@ public class CustomerServiceImpl extends BaseMybatisDao<UserMapper> implements C
|
|
|
|
|
|
@Override
|
|
|
|
|
|
- public List<OrganizationContactBook> findCustomerContacts(String uid) {
|
|
|
- List<OrganizationContactBook> list = userMapper.findCustomerContacts(uid, TokenManager.getAdminId());
|
|
|
- for (OrganizationContactBook ob : list) {
|
|
|
- if (!ob.getAid().equals(TokenManager.getAdminId())){
|
|
|
- ob.setName("***");
|
|
|
- ob.setMobile("***");
|
|
|
- }
|
|
|
+ public List<OrganizationContactBook> findCustomerContacts(String uid,Integer type) {
|
|
|
+ List<OrganizationContactBook> list=null;
|
|
|
+ if(type==0){
|
|
|
+ list = userMapper.findCustomerContacts(uid, TokenManager.getAdminId());
|
|
|
+// for (OrganizationContactBook ob : list) {
|
|
|
+// if (!ob.getAid().equals(TokenManager.getAdminId())){
|
|
|
+// ob.setName("***");
|
|
|
+// ob.setMobile("***");
|
|
|
+// }
|
|
|
+// }
|
|
|
+ }else {
|
|
|
+ list = userMapper.findCustomerContacts(uid, null);
|
|
|
}
|
|
|
+
|
|
|
return list;
|
|
|
}
|
|
|
|