强化配送订单合同调度约束
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
/**
|
||||
* 功能:验证工作人员关联字段过滤、资质来源校验和路由上下文传递契约。
|
||||
* 版本:v1.1.0
|
||||
* 版本:v1.2.0
|
||||
*/
|
||||
import assert from 'node:assert/strict';
|
||||
import { readFile } from 'node:fs/promises';
|
||||
@@ -28,12 +28,18 @@ assert.deepEqual(
|
||||
roles: ['delivery'],
|
||||
enabledOnly: true,
|
||||
workStatus: 'on_duty',
|
||||
validCredentialOnly: true,
|
||||
},
|
||||
},
|
||||
{},
|
||||
),
|
||||
{ role_code: 'delivery', status: '1', work_status: 'on_duty' },
|
||||
'订单分配必须只查询启用且在岗的配送人员',
|
||||
{
|
||||
role_code: 'delivery',
|
||||
status: '1',
|
||||
work_status: 'on_duty',
|
||||
valid_credential_only: '1',
|
||||
},
|
||||
'订单分配必须只查询启用、在岗且资质有效的配送人员',
|
||||
);
|
||||
|
||||
assert.deepEqual(
|
||||
|
||||
Reference in New Issue
Block a user