#!/bin/bash # 批量同步毛利数据 2025-01-01 到 2026-04-11 start_date="2025-01-01" end_date="2026-04-11" current="$start_date" while [ "$current" != "$end_date" ]; do echo "同步日期: $current" python jobs/grossprofit.py --start "$current" --end "$current" current=$(date -d "$current +1 day" +%Y-%m-%d) done echo "完成!"