1
0
forked from erp-dev/erp

feat: haobuye

This commit is contained in:
2026-03-20 20:00:12 +08:00
parent 84dbb2ee10
commit 96cc67706a
10 changed files with 1162 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
from django.core.management.base import BaseCommand
from api_v1.tasks import sync_external_printing_records
class Command(BaseCommand):
help = '从外部 records 接口同步印染订单/任务'
def add_arguments(self, parser):
parser.add_argument('--limit', type=int, default=100)
def handle(self, *args, **options):
payload = sync_external_printing_records.run(limit=options['limit'])
self.stdout.write(self.style.SUCCESS(str(payload)))