sync_grossprofit.sh 347 B

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