|
|
@@ -1550,10 +1550,10 @@ public class CustomerServiceImpl extends BaseMybatisDao<UserMapper> implements C
|
|
|
public int addOneContact(OrganizationContactBook ocb) {
|
|
|
ocb.setAid(TokenManager.getAdminId());
|
|
|
ocb.setId(UUID.randomUUID().toString());
|
|
|
- ocb.setMajor(AFTConstants.NO);
|
|
|
Admin ad = adminMapper.selectByPrimaryKey(TokenManager.getAdminId());
|
|
|
ocb.setAname(ad.getName());
|
|
|
if (ocb.getMajor()==1){
|
|
|
+ organizationContactBookMapper.updateSubContact(ocb.getUid());
|
|
|
OrganizationIdentity n=new OrganizationIdentity();
|
|
|
n.setUid(ocb.getUid());
|
|
|
n.setContacts(ocb.getName());
|
|
|
@@ -1561,6 +1561,7 @@ public class CustomerServiceImpl extends BaseMybatisDao<UserMapper> implements C
|
|
|
n.setContactsPosition(ocb.getPosition());
|
|
|
organizationIdentityMapper.updateServiceByUid(n);
|
|
|
}
|
|
|
+
|
|
|
return organizationContactBookMapper.insert(ocb);
|
|
|
}
|
|
|
|