feat:feature-REQ/2129 修改ouId字段

This commit is contained in:
lilong 2024-03-29 11:56:06 +08:00
parent b142cb61c4
commit 121b0ed19b
2 changed files with 4 additions and 4 deletions

View File

@ -60,10 +60,10 @@ public interface AccountRegisterService extends IService<AccountRegister> {
/**
* appType = AppTypeEnum.CMP时因为网易云信无法对同一个账号做企业隔离只能一个企业一个账号
* 所以需要根据organizationalUnitId获取账号
* 所以需要根据ouId获取账号
*/
@CriteriaField(field = "organizationalUnitId", operator = Operator.EQ)
private Long organizationalUnitId;
@CriteriaField(field = "ouId", operator = Operator.EQ)
private Long ouId;
@CriteriaField(field = "accountType", operator = Operator.EQ)
private String accountType;

View File

@ -346,7 +346,7 @@ public class AccountService {
.accountId(accountAbsentQuery.getPersonId())
.build();
if (appTypeEnum == AppTypeEnum.CMP) {
listAccountRegisterParam.setOrganizationalUnitId(accountAbsentQuery.getOuId());
listAccountRegisterParam.setOuId(accountAbsentQuery.getOuId());
}
List<AccountRegisterService.AccountRegisterDTO> accountRegisters = accountRegisterService.list(listAccountRegisterParam);