1.默认每日获取0天到期的

This commit is contained in:
whm
2025-11-17 10:41:10 +08:00
parent 2199a3e4d3
commit 502ef50a87
3 changed files with 8 additions and 4 deletions

View File

@@ -477,8 +477,10 @@ def get_today_data(request: TodayDataRequest, db: Session = Depends(get_db)):
def refresh_today_data(request: TodayDataRequest, db: Session = Depends(get_db)):
"""接口通过POST请求触发调度器中的 scheduled_get_max_nyid_by_point_id 定时任务"""
try:
start = request.start if request.start is not None else 0
end = request.end if request.end is not None else 0
from ..utils.scheduler import scheduled_get_max_nyid_by_point_id
scheduled_get_max_nyid_by_point_id()
scheduled_get_max_nyid_by_point_id(start, end)
account_id = request.account_id
daily_service = DailyDataService()
daily_data = daily_service.get_daily_data_by_account(db, account_id=account_id)