|
|
@@ -315,7 +315,7 @@ public class CustomerServiceImpl extends BaseMybatisDao<UserMapper> implements C
|
|
|
cob.setUid(uid);
|
|
|
cob.setName(contacts);
|
|
|
cob.setMobile(contactMobile);
|
|
|
- cob.setMajor(AFTConstants.NO);
|
|
|
+ cob.setMajor(AFTConstants.YES);
|
|
|
organizationContactBookMapper.insert(cob);
|
|
|
//新增锁定数据
|
|
|
addUserLock(uid, TokenManager.getAdminId(), now);
|
|
|
@@ -737,6 +737,14 @@ public class CustomerServiceImpl extends BaseMybatisDao<UserMapper> implements C
|
|
|
if(ocbList.size()>0){
|
|
|
OrganizationContactBook ocb = null;
|
|
|
for(OrganizationContactBook item: ocbList){
|
|
|
+ if(item!=null&&item.getMajor()!=null&&item.getMajor()==1) {
|
|
|
+ //改变用户原本的联系人
|
|
|
+ OrganizationIdentity oi=new OrganizationIdentity();
|
|
|
+ oi.setContacts(item.getName());
|
|
|
+ oi.setContactMobile(item.getMobile());
|
|
|
+ oi.setUid(uid);
|
|
|
+ organizationIdentityMapper.updateServiceByUid(oi);
|
|
|
+ }
|
|
|
ocb = new OrganizationContactBook();
|
|
|
try {
|
|
|
BeanUtils.copyProperties(ocb, item);
|