|
|
@@ -241,7 +241,7 @@ public class CustomerServiceImpl extends BaseMybatisDao<UserMapper> implements
|
|
|
String identifyId = UUID.randomUUID().toString();
|
|
|
user.setId(uid);
|
|
|
user.setIdentifyName(name);
|
|
|
- user.setSource(source);
|
|
|
+ user.setSource(1);//客户来源为录入
|
|
|
user.setNickname(name);
|
|
|
user.setStatus(AFTConstants.USER_STATUS_NORMAL);
|
|
|
user.setShareType(AFTConstants.NO);
|
|
|
@@ -909,20 +909,21 @@ public class CustomerServiceImpl extends BaseMybatisDao<UserMapper> implements
|
|
|
user.setAid(TokenManager.getAdminId());
|
|
|
user.setShareType(AFTConstants.USER_SHARE_PRIVATE);
|
|
|
user.setInformationMaintainer(TokenManager.getAdminId());
|
|
|
+ user.setSource(2);//客户来源设置为领取
|
|
|
user.setTransferTime(now);
|
|
|
flag = addUserLock(uid,TokenManager.getAdminId(),now); //指定用户锁定客户
|
|
|
if(flag <= 0) throw new BusinessException(new Error(ErrorConstants.CUSTOMER_ALREADY_RECEIVE,""));
|
|
|
if(userMapper.UserReceiveCount(TokenManager.getAdminId())>9)
|
|
|
- throw new BusinessException(new Error(ErrorConstants.CUSTOM_EREXCESS,""));
|
|
|
+ throw new BusinessException(new Error(ErrorConstants.CUSTOM_EREXCESS,""));
|
|
|
organizationContactBookMapper.updateAdmin(uid,TokenManager.getAdminId());
|
|
|
}else if(operatorType.equals(AFTConstants.USER_TRANSFER_TO_OTHER)){
|
|
|
user.setAid(String.valueOf(params[0]));
|
|
|
+ user.setSource(3);//客户来源设置为转交
|
|
|
user.setTransferTime(now);
|
|
|
flag = updateUserLock(uid,oldAid,UserLockReleaseStatus.LOCKED.getCode(),UserLockReleaseStatus.RELEASE.getCode()); //原用户释放客户
|
|
|
if(flag > 0 ) flag = addUserLock(uid,String.valueOf(params[0]),now); //指定用户锁定客户
|
|
|
if(flag <= 0) throw new BusinessException(new Error(ErrorConstants.CUSTOMER_TRANSFER_FAIL,""));
|
|
|
}
|
|
|
-
|
|
|
return userMapper.updateByPrimaryKeySelective(user);
|
|
|
}
|
|
|
|