feat(order-service): 优化资料字段预设与游戏ID校验
This commit is contained in:
@@ -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],
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user