|
|
@@ -1996,6 +1996,10 @@ public class CustomerServiceImpl extends BaseMybatisDao<UserMapper> implements C
|
|
|
ocb.setId(UUID.randomUUID().toString());
|
|
|
Admin ad = adminMapper.selectById(TokenManager.getAdminId());
|
|
|
ocb.setAname(ad.getName());
|
|
|
+ User u =userMapper.queryById(ocb.getUid());
|
|
|
+ if (!u.getAid().equals(TokenManager.getAdminId())&&ocb.getMajor()==1){
|
|
|
+ new BusinessException("非客户归属人不能设置主要联系人");
|
|
|
+ }
|
|
|
if (ocb.getMajor()==1){
|
|
|
organizationContactBookMapper.updateSubContact(ocb.getUid());
|
|
|
OrganizationIdentity n=new OrganizationIdentity();
|