|
|
@@ -407,6 +407,16 @@ async def list_scope_controller(
|
|
|
page_size=page_size,
|
|
|
owner_type=owner_type,
|
|
|
)
|
|
|
+ # 如果本地库标记为暂不设置,覆盖支付宝返回值
|
|
|
+ try:
|
|
|
+ from .crud import InstitutionCRUD
|
|
|
+ crud = InstitutionCRUD(auth)
|
|
|
+ local_inst = await crud.get(institution_id=institution_id, enterprise_id=enterprise_id)
|
|
|
+ if local_inst and getattr(local_inst, 'applicable_scope', '') in ('none', 'NONE'):
|
|
|
+ result["adapter_type"] = "NONE"
|
|
|
+ result["owner_id_list"] = []
|
|
|
+ except Exception:
|
|
|
+ pass
|
|
|
return SuccessResponse(data=result, msg="查询成功")
|
|
|
|
|
|
|
|
|
@@ -415,6 +425,9 @@ async def list_scope_controller(
|
|
|
summary="设置制度成员范围",
|
|
|
description="设置/修改制度成员范围 (alipay.ebpp.invoice.institution.scope.modify)",
|
|
|
)
|
|
|
+async def modify_scope_controller(
|
|
|
+
|
|
|
+
|
|
|
async def modify_scope_controller(
|
|
|
institution_id: Annotated[str, Path(description="制度ID")],
|
|
|
data: dict,
|