update pay ui

This commit is contained in:
2025-12-12 15:47:19 +08:00
parent 966ee31f35
commit 6ecae5ed76

2
app.py
View File

@@ -9998,8 +9998,10 @@ def api_get_events():
like_pattern = f"%{search_query}%"
# 子查询查找关联股票中匹配的事件ID
# stock_code 格式600111.SH / 000001.SZ / 830001.BJ支持不带后缀搜索
stock_subquery = db.session.query(RelatedStock.event_id).filter(
db.or_(
RelatedStock.stock_code.ilike(like_pattern), # 支持股票代码搜索
RelatedStock.stock_name.ilike(like_pattern),
RelatedStock.relation_desc.ilike(like_pattern)
)