|
@@ -494,13 +494,17 @@ public class CompanyUserServiceImpl implements ICompanyUserService
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
+ @Transactional
|
|
|
public int changeCompanyUser(List<Long> userIds, Long companyUserId, Long companyId) {
|
|
|
|
|
|
CompanyUser toUser = companyUserMapper.selectCompanyUserById(companyUserId);
|
|
|
if (Objects.isNull(toUser)) {
|
|
|
throw new ServiceException("需要更换归属的销售不存在");
|
|
|
}
|
|
|
- return fsUserMapper.batchUpdateUserCompanyUser(userIds, companyUserId, companyId);
|
|
|
+ fsUserMapper.batchUpdateUserCompanyUser(userIds, companyUserId, companyId);
|
|
|
+ // 修改中间表
|
|
|
+ fsUserMapper.batchUpdateCompanyUserRelation(userIds, companyUserId, companyId);
|
|
|
+ return 1;
|
|
|
}
|
|
|
|
|
|
/**
|