feat: 俱乐部订单单向互通抢单(集团配置 + 接单池/抢单校验)

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
XingQue
2026-07-26 03:08:10 +08:00
parent 1234cff035
commit 231e5162b0
7 changed files with 209 additions and 3 deletions

View File

@@ -0,0 +1,35 @@
# Generated manually for ClubOrderGrabLink
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('jituan', '0015_club_recharge_page_copy'),
]
operations = [
migrations.CreateModel(
name='ClubOrderGrabLink',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('grabber_club_id', models.CharField(db_index=True, max_length=16, verbose_name='抢单方俱乐部')),
('order_club_id', models.CharField(db_index=True, max_length=16, verbose_name='被抢订单所属俱乐部')),
('CreateTime', models.DateTimeField(auto_now_add=True)),
],
options={
'verbose_name': '俱乐部订单互通抢单',
'db_table': 'club_order_grab_link',
'unique_together': {('grabber_club_id', 'order_club_id')},
},
),
migrations.AddIndex(
model_name='clubordergrablink',
index=models.Index(fields=['grabber_club_id'], name='idx_cogl_grabber'),
),
migrations.AddIndex(
model_name='clubordergrablink',
index=models.Index(fields=['order_club_id'], name='idx_cogl_order'),
),
]