|
|
@@ -3121,6 +3121,7 @@ public class CustomerServiceImpl extends BaseMybatisDao<UserMapper> implements C
|
|
|
@Override
|
|
|
public Object updateAndReceiveCustomer(InputUpdateAndReceiveCustomer in) {
|
|
|
User user = new User();
|
|
|
+ User queryById = userMapper.queryById(in.getId());
|
|
|
user.setId(in.getId());
|
|
|
user.setSocietyTag(in.getSocietyTag());
|
|
|
user.setLevel(in.getLevel());
|
|
|
@@ -3135,14 +3136,16 @@ public class CustomerServiceImpl extends BaseMybatisDao<UserMapper> implements C
|
|
|
oi.setContactMobile(in.getContactMobile());
|
|
|
oi.setLocationProvince(in.getProvince());
|
|
|
organizationContactBookMapper.updateSubContact(in.getId());
|
|
|
- OrganizationContactBook ocb=new OrganizationContactBook();
|
|
|
- ocb.setId(UUID.randomUUID().toString());
|
|
|
- ocb.setUid(in.getId());
|
|
|
- ocb.setName(in.getContacts());
|
|
|
- ocb.setMobile(in.getContactMobile());
|
|
|
- ocb.setAid(TokenManager.getAdminId());
|
|
|
- ocb.setMajor(1);
|
|
|
- organizationContactBookMapper.insert(ocb);
|
|
|
+ if (!queryById.getAid().equals(TokenManager.getAdminId())){
|
|
|
+ OrganizationContactBook ocb=new OrganizationContactBook();
|
|
|
+ ocb.setId(UUID.randomUUID().toString());
|
|
|
+ ocb.setUid(in.getId());
|
|
|
+ ocb.setName(in.getContacts());
|
|
|
+ ocb.setMobile(in.getContactMobile());
|
|
|
+ ocb.setAid(TokenManager.getAdminId());
|
|
|
+ ocb.setMajor(1);
|
|
|
+ organizationContactBookMapper.insert(ocb);
|
|
|
+ }
|
|
|
oi.setLocationCity(in.getCity());
|
|
|
oi.setOrgCode(in.getOrgCode());
|
|
|
oi.setLocationArea(in.getArea());
|