|
|
@@ -604,6 +604,16 @@ class InstitutionService:
|
|
|
except Exception as e:
|
|
|
log.warning(f"合并本地DB字段失败: {e}")
|
|
|
|
|
|
+ # 从支付宝 owner_id_list 映射为前端需要的 employee_ids
|
|
|
+ if not result_dict.get("employee_ids"):
|
|
|
+ owner_ids = result_dict.get("owner_id_list")
|
|
|
+ if owner_ids and result_dict.get("adapter_type") in ("EMPLOYEE_SELECT", None):
|
|
|
+ result_dict["employee_ids"] = list(owner_ids)
|
|
|
+ if not result_dict.get("scope_owner_id_list"):
|
|
|
+ owner_ids = result_dict.get("owner_id_list")
|
|
|
+ if owner_ids:
|
|
|
+ result_dict["scope_owner_id_list"] = list(owner_ids)
|
|
|
+
|
|
|
# 补充本地规则和额度
|
|
|
from app.plugin.module_payment.expense.rule.model import ExpenseRuleModel
|
|
|
from app.plugin.module_payment.expense.quota.model import QuotaModel
|