|
@@ -1243,7 +1243,7 @@ public class CustomerServiceImpl extends BaseMybatisDao<UserMapper> implements C
|
|
|
if (!isUs) {
|
|
if (!isUs) {
|
|
|
user.setAid(aid);
|
|
user.setAid(aid);
|
|
|
if (data==1||data==3){
|
|
if (data==1||data==3){
|
|
|
- informationMaintainerHandOver(uid, aid, oldAid, user, errors);
|
|
|
|
|
|
|
+ informationMaintainerHandOver(uid, aid, oldAid, errors);
|
|
|
}
|
|
}
|
|
|
if (data==2||data==3){
|
|
if (data==2||data==3){
|
|
|
updateOrderHandOver(uid,aid,oldAid);
|
|
updateOrderHandOver(uid,aid,oldAid);
|
|
@@ -1268,7 +1268,7 @@ public class CustomerServiceImpl extends BaseMybatisDao<UserMapper> implements C
|
|
|
throw new BusinessException(new Error("请勿非法操作!", "请勿非法操作!"));
|
|
throw new BusinessException(new Error("请勿非法操作!", "请勿非法操作!"));
|
|
|
}
|
|
}
|
|
|
if (data==1||data==3){
|
|
if (data==1||data==3){
|
|
|
- informationMaintainerHandOver(us, aid, oldAid, user, errors);
|
|
|
|
|
|
|
+ informationMaintainerHandOver(us, aid, oldAid, errors);
|
|
|
}
|
|
}
|
|
|
if (data==2||data==3){
|
|
if (data==2||data==3){
|
|
|
updateOrderHandOver(uid,aid,oldAid);
|
|
updateOrderHandOver(uid,aid,oldAid);
|
|
@@ -1327,10 +1327,9 @@ public class CustomerServiceImpl extends BaseMybatisDao<UserMapper> implements C
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
- private void informationMaintainerHandOver(String uid, String aid, String oldAid, User user, List<String> errors) {
|
|
|
|
|
- User useUser = userMapper.selectByPrimaryKey(user.getId());
|
|
|
|
|
|
|
+ private void informationMaintainerHandOver(String uid, String aid, String oldAid, List<String> errors) {
|
|
|
|
|
+ User useUser = userMapper.selectByPrimaryKey(uid);
|
|
|
if (useUser.getInformationMaintainer().equals(oldAid)){
|
|
if (useUser.getInformationMaintainer().equals(oldAid)){
|
|
|
- user.setInformationMaintainer(aid);
|
|
|
|
|
organizationContactBookMapper.updateAdmin(uid, aid);
|
|
organizationContactBookMapper.updateAdmin(uid, aid);
|
|
|
}else {
|
|
}else {
|
|
|
errors.add("客户["+useUser.getNickname()+"]归属不正确,资料转交失败。");
|
|
errors.add("客户["+useUser.getNickname()+"]归属不正确,资料转交失败。");
|