|
@@ -313,7 +313,7 @@ async def modify_institution_controller(
|
|
|
try:
|
|
try:
|
|
|
scope_old = await InstitutionScopeService.scopepageinfo_query_service(
|
|
scope_old = await InstitutionScopeService.scopepageinfo_query_service(
|
|
|
auth=auth, institution_id=institution_id, enterprise_id=enterprise_id,
|
|
auth=auth, institution_id=institution_id, enterprise_id=enterprise_id,
|
|
|
- page_num=1, page_size=500,
|
|
|
|
|
|
|
+ page_num=1, page_size=100,
|
|
|
)
|
|
)
|
|
|
old_ids = [str(i) for i in (scope_old.get("owner_id_list") or []) if i]
|
|
old_ids = [str(i) for i in (scope_old.get("owner_id_list") or []) if i]
|
|
|
except Exception:
|
|
except Exception:
|
|
@@ -348,7 +348,7 @@ async def modify_institution_controller(
|
|
|
try:
|
|
try:
|
|
|
scope_old = await InstitutionScopeService.scopepageinfo_query_service(
|
|
scope_old = await InstitutionScopeService.scopepageinfo_query_service(
|
|
|
auth=auth, institution_id=institution_id, enterprise_id=enterprise_id,
|
|
auth=auth, institution_id=institution_id, enterprise_id=enterprise_id,
|
|
|
- page_num=1, page_size=500,
|
|
|
|
|
|
|
+ page_num=1, page_size=100,
|
|
|
)
|
|
)
|
|
|
old_adapter = scope_old.get("adapter_type", "")
|
|
old_adapter = scope_old.get("adapter_type", "")
|
|
|
old_ids = [str(i) for i in (scope_old.get("owner_id_list") or []) if i]
|
|
old_ids = [str(i) for i in (scope_old.get("owner_id_list") or []) if i]
|
|
@@ -500,7 +500,7 @@ async def modify_scope_controller(
|
|
|
try:
|
|
try:
|
|
|
scope_old = await InstitutionScopeService.scopepageinfo_query_service(
|
|
scope_old = await InstitutionScopeService.scopepageinfo_query_service(
|
|
|
auth=auth, institution_id=institution_id, enterprise_id=enterprise_id,
|
|
auth=auth, institution_id=institution_id, enterprise_id=enterprise_id,
|
|
|
- page_num=1, page_size=500,
|
|
|
|
|
|
|
+ page_num=1, page_size=100,
|
|
|
)
|
|
)
|
|
|
old_adapter = scope_old.get("adapter_type", old_adapter)
|
|
old_adapter = scope_old.get("adapter_type", old_adapter)
|
|
|
raw_old = [str(i) for i in (scope_old.get("owner_id_list") or []) if i]
|
|
raw_old = [str(i) for i in (scope_old.get("owner_id_list") or []) if i]
|