152 lines
4.9 KiB
Markdown
152 lines
4.9 KiB
Markdown
# 测试结果
|
|
|
|
- 时间: 20260410-164555
|
|
- 范围: main
|
|
- 文件: test/app/controller/system.storage.inventory.quickPutaway.test.js
|
|
- 状态: pass
|
|
- 退出码: 0
|
|
|
|
## 标准输出
|
|
|
|
```text
|
|
[egg-ts-helper] create typings\app\extend\application.d.ts (2ms)
|
|
[egg-ts-helper] create typings\app\controller\index.d.ts (2ms)
|
|
[egg-ts-helper] create typings\app\model\index.d.ts (2ms)
|
|
[egg-ts-helper] create typings\config\index.d.ts (14ms)
|
|
[egg-ts-helper] create typings\config\plugin.d.ts (1ms)
|
|
[egg-ts-helper] create typings\app\service\index.d.ts (4ms)
|
|
[egg-ts-helper] create typings\app\index.d.ts (0ms)
|
|
|
|
|
|
test/app/controller/system.storage.inventory.quickPutaway.test.js
|
|
[SETUP] 娴嬭瘯鍟嗗搧: 娴嬭瘯鍔犺揣涓诲晢鍝?(157008), 鏂板晢鍝?156968), 绾哥24121410yc#zy-娑堥€€(101841)
|
|
[PARTIAL] 鏀惰揣鍗?ID: 509
|
|
[PARTIAL] 鏄庣粏 1: detailId=720, product=娴嬭瘯鍔犺揣涓诲晢鍝?
|
|
[PARTIAL] 鏄庣粏 2: detailId=721, product=鏂板晢鍝?[PARTIAL] 鏄庣粏 3: detailId=722, product=绾哥24121410yc#zy-娑堥€€
|
|
[PARTIAL] 鍙粦瀹氫簡 2/3 鏉℃槑缁嗙殑鍟嗗搧
|
|
[PARTIAL] quickPutaway 鍝嶅簲: {
|
|
"flag": "success",
|
|
"code": 400,
|
|
"message": "浠ヤ笅鍟嗗搧鏈尮閰嶇郴缁熷晢鍝侊紝璇峰厛缁戝畾锛氱焊绠?4121410yc#zy-娑堥€€",
|
|
"data": {
|
|
"unmatched_count": 1,
|
|
"unmatched_names": "绾哥24121410yc#zy-娑堥€€"
|
|
},
|
|
"timestamp": 1775810851
|
|
}
|
|
鉁?should reject quickPutaway for partially matched receiving (3995ms)
|
|
[FULL] 鏀惰揣鍗?ID: 510
|
|
[FULL] 鏄庣粏 1: detailId=723, product=娴嬭瘯鍔犺揣涓诲晢鍝?, qty=10
|
|
[FULL] 鏄庣粏 2: detailId=724, product=鏂板晢鍝? qty=5
|
|
[FULL] quickPutaway 鍝嶅簲: {
|
|
"flag": "success",
|
|
"code": 200,
|
|
"message": "蹇嵎鍏ュ簱瀹屾垚",
|
|
"data": {
|
|
"receiving_id": 510,
|
|
"receiving_number": "R20553032",
|
|
"receiving_storage_status": "all",
|
|
"entry_order": {
|
|
"id": 159,
|
|
"entry_order_code": "SCRK17758108543901055",
|
|
"order_status": "COMPLETED"
|
|
},
|
|
"items": [
|
|
{
|
|
"detail_id": 723,
|
|
"product_name": "娴嬭瘯鍔犺揣涓诲晢鍝?",
|
|
"stock_warehouse_id": 157008,
|
|
"inbound_quantity": 10,
|
|
"space_id": 1,
|
|
"storage_status": "all"
|
|
},
|
|
{
|
|
"detail_id": 724,
|
|
"product_name": "鏂板晢鍝?,
|
|
"stock_warehouse_id": 156968,
|
|
"inbound_quantity": 5,
|
|
"space_id": 1,
|
|
"storage_status": "all"
|
|
}
|
|
]
|
|
},
|
|
"timestamp": 1775810855
|
|
}
|
|
[FULL] 鍏ュ簱鍗曞彿: SCRK17758108543901055, 鏄庣粏鏁? 2
|
|
[FULL] 鏄庣粏 723: stored=10, actual=10, status=all
|
|
[FULL] 鏄庣粏 724: stored=5, actual=5, status=all
|
|
[FULL] 閲嶅鍏ュ簱鍝嶅簲: {
|
|
"flag": "success",
|
|
"code": 400,
|
|
"message": "璇ユ敹璐у崟宸插叏閮ㄥ叆搴擄紝鏃犻渶閲嶅鎿嶄綔",
|
|
"data": null,
|
|
"timestamp": 1775810855
|
|
}
|
|
鉁?should complete quickPutaway for fully matched receiving (4274ms)
|
|
[LOCK] 娴嬭瘯鍟嗗搧 ID: 157008
|
|
[LOCK] 娉ㄦ剰锛氭湰娴嬭瘯闇€绛夊緟鏈嶅姟绔攣瓒呮椂锛堢害50绉掞級锛岃鑰愬績绛夊緟
|
|
[LOCK] 宸查攣瀹?wms_stock_warehouse.id = 157008
|
|
[LOCK] quickPutaway 鍝嶅簲 (鑰楁椂 51s): {
|
|
"flag": "success",
|
|
"code": 409,
|
|
"message": "搴撳瓨璁板綍琚攣瀹氾紝璇风◢鍚庨噸璇?,
|
|
"data": null,
|
|
"timestamp": 1775810909
|
|
}
|
|
[LOCK] 鏁版嵁搴撹繛鎺ュ凡鍏抽棴
|
|
鉁?should return 409 when stock row is locked by concurrent transaction (53797ms)
|
|
[NOLOCK] 鏀惰揣鍗?ID: 512
|
|
[NOLOCK] 鏄庣粏 1: detailId=726, product=娴嬭瘯鍔犺揣涓诲晢鍝?, qty=8
|
|
[NOLOCK] 鏄庣粏 2: detailId=727, product=鏂板晢鍝? qty=4
|
|
[NOLOCK] quickPutaway 鍝嶅簲: {
|
|
"flag": "success",
|
|
"code": 200,
|
|
"message": "蹇嵎鍏ュ簱瀹屾垚",
|
|
"data": {
|
|
"receiving_id": 512,
|
|
"receiving_number": "R20553034",
|
|
"receiving_storage_status": "all",
|
|
"entry_order": {
|
|
"id": 161,
|
|
"entry_order_code": "SCRK17758109126565861",
|
|
"order_status": "COMPLETED"
|
|
},
|
|
"items": [
|
|
{
|
|
"detail_id": 726,
|
|
"product_name": "娴嬭瘯鍔犺揣涓诲晢鍝?",
|
|
"stock_warehouse_id": 157008,
|
|
"inbound_quantity": 8,
|
|
"space_id": 1,
|
|
"storage_status": "all"
|
|
},
|
|
{
|
|
"detail_id": 727,
|
|
"product_name": "鏂板晢鍝?,
|
|
"stock_warehouse_id": 156968,
|
|
"inbound_quantity": 4,
|
|
"space_id": 1,
|
|
"storage_status": "all"
|
|
}
|
|
]
|
|
},
|
|
"timestamp": 1775810913
|
|
}
|
|
[NOLOCK] 鍏ュ簱鍗曞彿: SCRK17758109126565861
|
|
[NOLOCK] 鍏ュ簱鏄庣粏鏁? 2
|
|
[NOLOCK] 鏄庣粏 726: 鍏ュ簱 8, 鐘舵€?all
|
|
[NOLOCK] 鏄庣粏 727: 鍏ュ簱 4, 鐘舵€?all
|
|
鉁?should complete quickPutaway without lock contention (4082ms)
|
|
|
|
|
|
4 passing (1m)
|
|
|
|
[mochawesome] Report JSON saved to D:\wms\node_modules\.mochawesome-reports\mochawesome.json
|
|
|
|
[mochawesome] Report HTML saved to D:\wms\node_modules\.mochawesome-reports\mochawesome.html
|
|
```
|
|
|
|
## 标准错误
|
|
|
|
(empty)
|