feat(order-service): 优化资料字段预设与游戏ID校验

This commit is contained in:
yml2213
2026-11-04 12:33:33 +08:00
parent e17f336e1c
commit 1a80521057
21 changed files with 377 additions and 37 deletions
@@ -235,7 +235,12 @@ export async function backfillPendingOrderServiceSnapshotsForCategory(
AND wo.category_id = p.category_id
AND wo.status = 'pending_material'
AND wo.assigned_worker_id IS NULL
AND wo.service_profile_snapshot_json IS NULL
AND NOT EXISTS (
SELECT 1
FROM work_order_shares share
WHERE share.work_order_id = wo.id
AND share.status <> 'cancelled'
)
`,
[input.categoryId, input.profileId, input.versionId],
)