From 9f278f5771cfd88bd6567c58f198f40b7a22160d Mon Sep 17 00:00:00 2001
From: wanshenmean <cathay_xy@163.com>
Date: 星期四, 16 四月 2026 23:16:46 +0800
Subject: [PATCH] fix(StockService): 注释掉MES绑定和解绑逻辑
---
Code/.omc/state/mission-state.json | 326 +++++++++++++++++++++++++
Code/WMS/WIDESEA_WMSServer/WIDESEA_StockService/StockSerivce.cs | 128 ++++----
Code/.omc/state/idle-notif-cooldown.json | 2
Code/.omc/state/last-tool-error.json | 10
Code/.omc/state/agent-replay-2b26e0d1-aaf0-4052-80ce-6ac16773aa04.jsonl | 57 ++++
Code/.omc/state/subagent-tracking.json | 249 ++++++++++++++++++
6 files changed, 698 insertions(+), 74 deletions(-)
diff --git a/Code/.omc/state/agent-replay-2b26e0d1-aaf0-4052-80ce-6ac16773aa04.jsonl b/Code/.omc/state/agent-replay-2b26e0d1-aaf0-4052-80ce-6ac16773aa04.jsonl
new file mode 100644
index 0000000..706227b
--- /dev/null
+++ b/Code/.omc/state/agent-replay-2b26e0d1-aaf0-4052-80ce-6ac16773aa04.jsonl
@@ -0,0 +1,57 @@
+{"t":0,"agent":"system","event":"skill_invoked","skill_name":"superpowers:writing-plans"}
+{"t":0,"agent":"system","event":"skill_invoked","skill_name":"superpowers:subagent-driven-development"}
+{"t":0,"agent":"ae1b992","agent_type":"general-purpose","event":"agent_start","parent_mode":"none"}
+{"t":0,"agent":"ae1b992","agent_type":"general-purpose","event":"agent_stop","success":true,"duration_ms":38937}
+{"t":0,"agent":"a13c6d6","agent_type":"general-purpose","event":"agent_start","parent_mode":"none"}
+{"t":0,"agent":"a13c6d6","agent_type":"general-purpose","event":"agent_stop","success":true,"duration_ms":22242}
+{"t":0,"agent":"ae5f507","agent_type":"general-purpose","event":"agent_start","parent_mode":"none"}
+{"t":0,"agent":"ae5f507","agent_type":"general-purpose","event":"agent_stop","success":true,"duration_ms":21126}
+{"t":0,"agent":"ab64c32","agent_type":"general-purpose","event":"agent_start","parent_mode":"none"}
+{"t":0,"agent":"ab64c32","agent_type":"general-purpose","event":"agent_stop","success":true,"duration_ms":24981}
+{"t":0,"agent":"aa35de1","agent_type":"general-purpose","event":"agent_start","parent_mode":"none"}
+{"t":0,"agent":"aa35de1","agent_type":"general-purpose","event":"agent_stop","success":true,"duration_ms":16562}
+{"t":0,"agent":"abc7829","agent_type":"general-purpose","event":"agent_start","parent_mode":"none"}
+{"t":0,"agent":"abc7829","agent_type":"general-purpose","event":"agent_stop","success":true,"duration_ms":19081}
+{"t":0,"agent":"aa920a6","agent_type":"general-purpose","event":"agent_start","parent_mode":"none"}
+{"t":0,"agent":"aa920a6","agent_type":"general-purpose","event":"agent_stop","success":true,"duration_ms":42219}
+{"t":0,"agent":"a1432d1","agent_type":"general-purpose","event":"agent_start","parent_mode":"none"}
+{"t":0,"agent":"a1432d1","agent_type":"general-purpose","event":"agent_stop","success":true,"duration_ms":18827}
+{"t":0,"agent":"a7fa0a6","agent_type":"general-purpose","event":"agent_start","parent_mode":"none"}
+{"t":0,"agent":"a7fa0a6","agent_type":"general-purpose","event":"agent_stop","success":true,"duration_ms":21618}
+{"t":0,"agent":"a15c777","agent_type":"general-purpose","event":"agent_start","parent_mode":"none"}
+{"t":0,"agent":"a15c777","agent_type":"general-purpose","event":"agent_stop","success":true,"duration_ms":94170}
+{"t":0,"agent":"ad4599d","agent_type":"general-purpose","event":"agent_start","parent_mode":"none"}
+{"t":0,"agent":"ad4599d","agent_type":"general-purpose","event":"agent_stop","success":true,"duration_ms":21240}
+{"t":0,"agent":"ad3da31","agent_type":"general-purpose","event":"agent_start","parent_mode":"none"}
+{"t":0,"agent":"ad3da31","agent_type":"general-purpose","event":"agent_stop","success":true,"duration_ms":82778}
+{"t":0,"agent":"abb3857","agent_type":"general-purpose","event":"agent_start","parent_mode":"none"}
+{"t":0,"agent":"abb3857","agent_type":"general-purpose","event":"agent_stop","success":true,"duration_ms":146432}
+{"t":0,"agent":"a7103e2","agent_type":"general-purpose","event":"agent_start","parent_mode":"none"}
+{"t":0,"agent":"a7103e2","agent_type":"general-purpose","event":"agent_stop","success":true,"duration_ms":55971}
+{"t":0,"agent":"a06ff50","agent_type":"general-purpose","event":"agent_start","parent_mode":"none"}
+{"t":0,"agent":"a06ff50","agent_type":"general-purpose","event":"agent_stop","success":true,"duration_ms":33830}
+{"t":0,"agent":"a82ce3a","agent_type":"general-purpose","event":"agent_start","parent_mode":"none"}
+{"t":0,"agent":"a82ce3a","agent_type":"general-purpose","event":"agent_stop","success":true,"duration_ms":46724}
+{"t":0,"agent":"aae2ba6","agent_type":"general-purpose","event":"agent_start","parent_mode":"none"}
+{"t":0,"agent":"aae2ba6","agent_type":"general-purpose","event":"agent_stop","success":true,"duration_ms":20220}
+{"t":0,"agent":"a06945f","agent_type":"general-purpose","event":"agent_start","parent_mode":"none"}
+{"t":0,"agent":"a06945f","agent_type":"general-purpose","event":"agent_stop","success":true,"duration_ms":70377}
+{"t":0,"agent":"aaa0767","agent_type":"general-purpose","event":"agent_start","parent_mode":"none"}
+{"t":0,"agent":"aaa0767","agent_type":"general-purpose","event":"agent_stop","success":true,"duration_ms":21965}
+{"t":0,"agent":"a93b1a0","agent_type":"general-purpose","event":"agent_start","parent_mode":"none"}
+{"t":0,"agent":"a93b1a0","agent_type":"general-purpose","event":"agent_stop","success":true,"duration_ms":16241}
+{"t":0,"agent":"a2f4b0e","agent_type":"general-purpose","event":"agent_start","parent_mode":"none"}
+{"t":0,"agent":"a2f4b0e","agent_type":"general-purpose","event":"agent_stop","success":true,"duration_ms":242121}
+{"t":0,"agent":"a9268a7","agent_type":"general-purpose","event":"agent_start","parent_mode":"none"}
+{"t":0,"agent":"a9268a7","agent_type":"general-purpose","event":"agent_stop","success":true,"duration_ms":15757}
+{"t":0,"agent":"a19a767","agent_type":"general-purpose","event":"agent_start","parent_mode":"none"}
+{"t":0,"agent":"a19a767","agent_type":"general-purpose","event":"agent_stop","success":true,"duration_ms":16955}
+{"t":0,"agent":"ac74c0a","agent_type":"general-purpose","event":"agent_start","parent_mode":"none"}
+{"t":0,"agent":"ac74c0a","agent_type":"general-purpose","event":"agent_stop","success":true,"duration_ms":115622}
+{"t":0,"agent":"afe8178","agent_type":"general-purpose","event":"agent_start","parent_mode":"none"}
+{"t":0,"agent":"afe8178","agent_type":"general-purpose","event":"agent_stop","success":true,"duration_ms":33425}
+{"t":0,"agent":"a278b04","agent_type":"general-purpose","event":"agent_start","parent_mode":"none"}
+{"t":0,"agent":"a278b04","agent_type":"general-purpose","event":"agent_stop","success":true,"duration_ms":148353}
+{"t":0,"agent":"a93149b","agent_type":"general-purpose","event":"agent_start","parent_mode":"none"}
+{"t":0,"agent":"a93149b","agent_type":"general-purpose","event":"agent_stop","success":true,"duration_ms":111569}
+{"t":0,"agent":"system","event":"skill_invoked","skill_name":"superpowers:finishing-a-development-branch"}
diff --git a/Code/.omc/state/idle-notif-cooldown.json b/Code/.omc/state/idle-notif-cooldown.json
index 2f67d58..2d87f9b 100644
--- a/Code/.omc/state/idle-notif-cooldown.json
+++ b/Code/.omc/state/idle-notif-cooldown.json
@@ -1,3 +1,3 @@
{
- "lastSentAt": "2026-04-16T07:39:40.298Z"
+ "lastSentAt": "2026-04-16T11:03:18.769Z"
}
\ No newline at end of file
diff --git a/Code/.omc/state/last-tool-error.json b/Code/.omc/state/last-tool-error.json
index d1b457d..37ce3fc 100644
--- a/Code/.omc/state/last-tool-error.json
+++ b/Code/.omc/state/last-tool-error.json
@@ -1,7 +1,7 @@
{
- "tool_name": "Bash",
- "tool_input_preview": "{\"command\":\"cd /d D:\\\\Git\\\\ShanMeiXinNengYuan\\\\Code\\\\WCS\\\\WIDESEAWCS_Server && dotnet build WIDESEAWCS_Server.sln 2>&1\",\"timeout\":120000,\"description\":\"Build WCS solution to verify changes\"}",
- "error": "Exit code 1\n/usr/bin/bash: line 1: cd: too many arguments",
- "timestamp": "2026-04-16T06:02:11.459Z",
- "retry_count": 1
+ "tool_name": "Read",
+ "tool_input_preview": "{\"file_path\":\"D:\\\\Git\\\\ShanMeiXinNengYuan\\\\Code\\\\WCS\\\\WIDESEAWCS_Server\\\\WIDESEA_DTO\\\\Stock\\\\StockDTO.cs\"}",
+ "error": "File does not exist. Note: your current working directory is D:\\Git\\ShanMeiXinNengYuan\\Code.",
+ "timestamp": "2026-04-16T15:04:27.059Z",
+ "retry_count": 2
}
\ No newline at end of file
diff --git a/Code/.omc/state/mission-state.json b/Code/.omc/state/mission-state.json
index d5e5e41..85d14d8 100644
--- a/Code/.omc/state/mission-state.json
+++ b/Code/.omc/state/mission-state.json
@@ -1,5 +1,5 @@
{
- "updatedAt": "2026-04-16T06:05:51.361Z",
+ "updatedAt": "2026-04-16T13:59:54.835Z",
"missions": [
{
"id": "session:9007b9ea-1eb6-4d24-8fe7-2c3a949eac88:none",
@@ -746,6 +746,330 @@
"sourceKey": "session-start:adc57d5ba6bbc20c1"
}
]
+ },
+ {
+ "id": "session:2b26e0d1-aaf0-4052-80ce-6ac16773aa04:none",
+ "source": "session",
+ "name": "none",
+ "objective": "Session mission",
+ "createdAt": "2026-04-16T13:29:32.117Z",
+ "updatedAt": "2026-04-16T13:59:54.835Z",
+ "status": "done",
+ "workerCount": 27,
+ "taskCounts": {
+ "total": 27,
+ "pending": 0,
+ "blocked": 0,
+ "inProgress": 0,
+ "completed": 27,
+ "failed": 0
+ },
+ "agents": [
+ {
+ "name": "general-purpose:ae1b992",
+ "role": "general-purpose",
+ "ownership": "ae1b9928fed053dab",
+ "status": "done",
+ "currentStep": null,
+ "latestUpdate": "completed",
+ "completedSummary": null,
+ "updatedAt": "2026-04-16T13:30:11.054Z"
+ },
+ {
+ "name": "general-purpose:a13c6d6",
+ "role": "general-purpose",
+ "ownership": "a13c6d6fa489cf43f",
+ "status": "done",
+ "currentStep": null,
+ "latestUpdate": "completed",
+ "completedSummary": null,
+ "updatedAt": "2026-04-16T13:30:47.127Z"
+ },
+ {
+ "name": "general-purpose:ae5f507",
+ "role": "general-purpose",
+ "ownership": "ae5f507bce27980a7",
+ "status": "done",
+ "currentStep": null,
+ "latestUpdate": "completed",
+ "completedSummary": null,
+ "updatedAt": "2026-04-16T13:31:14.414Z"
+ },
+ {
+ "name": "general-purpose:ab64c32",
+ "role": "general-purpose",
+ "ownership": "ab64c32ded08f4496",
+ "status": "done",
+ "currentStep": null,
+ "latestUpdate": "completed",
+ "completedSummary": null,
+ "updatedAt": "2026-04-16T13:31:54.680Z"
+ },
+ {
+ "name": "general-purpose:aa35de1",
+ "role": "general-purpose",
+ "ownership": "aa35de1f9a3a458f8",
+ "status": "done",
+ "currentStep": null,
+ "latestUpdate": "completed",
+ "completedSummary": null,
+ "updatedAt": "2026-04-16T13:32:17.868Z"
+ },
+ {
+ "name": "general-purpose:abc7829",
+ "role": "general-purpose",
+ "ownership": "abc782903e12397e0",
+ "status": "done",
+ "currentStep": null,
+ "latestUpdate": "completed",
+ "completedSummary": null,
+ "updatedAt": "2026-04-16T13:32:42.368Z"
+ },
+ {
+ "name": "general-purpose:aa920a6",
+ "role": "general-purpose",
+ "ownership": "aa920a67ffd9738ad",
+ "status": "done",
+ "currentStep": null,
+ "latestUpdate": "completed",
+ "completedSummary": null,
+ "updatedAt": "2026-04-16T13:33:38.081Z"
+ },
+ {
+ "name": "general-purpose:a1432d1",
+ "role": "general-purpose",
+ "ownership": "a1432d1eaad43f135",
+ "status": "done",
+ "currentStep": null,
+ "latestUpdate": "completed",
+ "completedSummary": null,
+ "updatedAt": "2026-04-16T13:34:03.851Z"
+ },
+ {
+ "name": "general-purpose:a7fa0a6",
+ "role": "general-purpose",
+ "ownership": "a7fa0a68a3e22dc75",
+ "status": "done",
+ "currentStep": null,
+ "latestUpdate": "completed",
+ "completedSummary": null,
+ "updatedAt": "2026-04-16T13:34:33.092Z"
+ },
+ {
+ "name": "general-purpose:a15c777",
+ "role": "general-purpose",
+ "ownership": "a15c777f2ea430420",
+ "status": "done",
+ "currentStep": null,
+ "latestUpdate": "completed",
+ "completedSummary": null,
+ "updatedAt": "2026-04-16T13:36:49.197Z"
+ },
+ {
+ "name": "general-purpose:ad4599d",
+ "role": "general-purpose",
+ "ownership": "ad4599d8f93863a39",
+ "status": "done",
+ "currentStep": null,
+ "latestUpdate": "completed",
+ "completedSummary": null,
+ "updatedAt": "2026-04-16T13:37:20.551Z"
+ },
+ {
+ "name": "general-purpose:ad3da31",
+ "role": "general-purpose",
+ "ownership": "ad3da315642eaf667",
+ "status": "done",
+ "currentStep": null,
+ "latestUpdate": "completed",
+ "completedSummary": null,
+ "updatedAt": "2026-04-16T13:38:51.689Z"
+ },
+ {
+ "name": "general-purpose:abb3857",
+ "role": "general-purpose",
+ "ownership": "abb3857c0a5fbcf61",
+ "status": "done",
+ "currentStep": null,
+ "latestUpdate": "completed",
+ "completedSummary": null,
+ "updatedAt": "2026-04-16T13:41:33.360Z"
+ },
+ {
+ "name": "general-purpose:a7103e2",
+ "role": "general-purpose",
+ "ownership": "a7103e22eb25f9483",
+ "status": "done",
+ "currentStep": null,
+ "latestUpdate": "completed",
+ "completedSummary": null,
+ "updatedAt": "2026-04-16T13:42:39.118Z"
+ },
+ {
+ "name": "general-purpose:a06ff50",
+ "role": "general-purpose",
+ "ownership": "a06ff508885a4867e",
+ "status": "done",
+ "currentStep": null,
+ "latestUpdate": "completed",
+ "completedSummary": null,
+ "updatedAt": "2026-04-16T13:43:32.081Z"
+ },
+ {
+ "name": "general-purpose:a82ce3a",
+ "role": "general-purpose",
+ "ownership": "a82ce3a41dd1c1400",
+ "status": "done",
+ "currentStep": null,
+ "latestUpdate": "completed",
+ "completedSummary": null,
+ "updatedAt": "2026-04-16T13:44:25.819Z"
+ },
+ {
+ "name": "general-purpose:aae2ba6",
+ "role": "general-purpose",
+ "ownership": "aae2ba6f974a382f2",
+ "status": "done",
+ "currentStep": null,
+ "latestUpdate": "completed",
+ "completedSummary": null,
+ "updatedAt": "2026-04-16T13:44:53.801Z"
+ },
+ {
+ "name": "general-purpose:a06945f",
+ "role": "general-purpose",
+ "ownership": "a06945f987220703d",
+ "status": "done",
+ "currentStep": null,
+ "latestUpdate": "completed",
+ "completedSummary": null,
+ "updatedAt": "2026-04-16T13:46:20.822Z"
+ },
+ {
+ "name": "general-purpose:aaa0767",
+ "role": "general-purpose",
+ "ownership": "aaa07676e0c05c622",
+ "status": "done",
+ "currentStep": null,
+ "latestUpdate": "completed",
+ "completedSummary": null,
+ "updatedAt": "2026-04-16T13:46:49.019Z"
+ },
+ {
+ "name": "general-purpose:a93b1a0",
+ "role": "general-purpose",
+ "ownership": "a93b1a0c14459720b",
+ "status": "done",
+ "currentStep": null,
+ "latestUpdate": "completed",
+ "completedSummary": null,
+ "updatedAt": "2026-04-16T13:47:10.678Z"
+ },
+ {
+ "name": "general-purpose:a2f4b0e",
+ "role": "general-purpose",
+ "ownership": "a2f4b0e1c77c785b0",
+ "status": "done",
+ "currentStep": null,
+ "latestUpdate": "completed",
+ "completedSummary": null,
+ "updatedAt": "2026-04-16T13:51:26.670Z"
+ },
+ {
+ "name": "general-purpose:a9268a7",
+ "role": "general-purpose",
+ "ownership": "a9268a79714555bc6",
+ "status": "done",
+ "currentStep": null,
+ "latestUpdate": "completed",
+ "completedSummary": null,
+ "updatedAt": "2026-04-16T13:51:52.517Z"
+ },
+ {
+ "name": "general-purpose:a19a767",
+ "role": "general-purpose",
+ "ownership": "a19a76743c10df1a1",
+ "status": "done",
+ "currentStep": null,
+ "latestUpdate": "completed",
+ "completedSummary": null,
+ "updatedAt": "2026-04-16T13:52:15.500Z"
+ },
+ {
+ "name": "general-purpose:ac74c0a",
+ "role": "general-purpose",
+ "ownership": "ac74c0af0952387a3",
+ "status": "done",
+ "currentStep": null,
+ "latestUpdate": "completed",
+ "completedSummary": null,
+ "updatedAt": "2026-04-16T13:54:22.962Z"
+ },
+ {
+ "name": "general-purpose:afe8178",
+ "role": "general-purpose",
+ "ownership": "afe8178d0a09a72ff",
+ "status": "done",
+ "currentStep": null,
+ "latestUpdate": "completed",
+ "completedSummary": null,
+ "updatedAt": "2026-04-16T13:55:15.934Z"
+ },
+ {
+ "name": "general-purpose:a278b04",
+ "role": "general-purpose",
+ "ownership": "a278b0417e3bfb390",
+ "status": "done",
+ "currentStep": null,
+ "latestUpdate": "completed",
+ "completedSummary": null,
+ "updatedAt": "2026-04-16T13:57:54.276Z"
+ },
+ {
+ "name": "general-purpose:a93149b",
+ "role": "general-purpose",
+ "ownership": "a93149b10e8b430e7",
+ "status": "done",
+ "currentStep": null,
+ "latestUpdate": "completed",
+ "completedSummary": null,
+ "updatedAt": "2026-04-16T13:59:54.835Z"
+ }
+ ],
+ "timeline": [
+ {
+ "id": "session-start:a278b0417e3bfb390:2026-04-16T13:55:25.923Z",
+ "at": "2026-04-16T13:55:25.923Z",
+ "kind": "update",
+ "agent": "general-purpose:a278b04",
+ "detail": "started general-purpose:a278b04",
+ "sourceKey": "session-start:a278b0417e3bfb390"
+ },
+ {
+ "id": "session-stop:a278b0417e3bfb390:2026-04-16T13:57:54.276Z",
+ "at": "2026-04-16T13:57:54.276Z",
+ "kind": "completion",
+ "agent": "general-purpose:a278b04",
+ "detail": "completed",
+ "sourceKey": "session-stop:a278b0417e3bfb390"
+ },
+ {
+ "id": "session-start:a93149b10e8b430e7:2026-04-16T13:58:03.266Z",
+ "at": "2026-04-16T13:58:03.266Z",
+ "kind": "update",
+ "agent": "general-purpose:a93149b",
+ "detail": "started general-purpose:a93149b",
+ "sourceKey": "session-start:a93149b10e8b430e7"
+ },
+ {
+ "id": "session-stop:a93149b10e8b430e7:2026-04-16T13:59:54.835Z",
+ "at": "2026-04-16T13:59:54.835Z",
+ "kind": "completion",
+ "agent": "general-purpose:a93149b",
+ "detail": "completed",
+ "sourceKey": "session-stop:a93149b10e8b430e7"
+ }
+ ]
}
]
}
\ No newline at end of file
diff --git a/Code/.omc/state/subagent-tracking.json b/Code/.omc/state/subagent-tracking.json
index 3a94e90..f507a23 100644
--- a/Code/.omc/state/subagent-tracking.json
+++ b/Code/.omc/state/subagent-tracking.json
@@ -443,10 +443,253 @@
"started_at": "2026-04-16T06:05:51.361Z",
"parent_mode": "none",
"status": "running"
+ },
+ {
+ "agent_id": "ae1b9928fed053dab",
+ "agent_type": "general-purpose",
+ "started_at": "2026-04-16T13:29:32.117Z",
+ "parent_mode": "none",
+ "status": "completed",
+ "completed_at": "2026-04-16T13:30:11.054Z",
+ "duration_ms": 38937
+ },
+ {
+ "agent_id": "a13c6d6fa489cf43f",
+ "agent_type": "general-purpose",
+ "started_at": "2026-04-16T13:30:24.885Z",
+ "parent_mode": "none",
+ "status": "completed",
+ "completed_at": "2026-04-16T13:30:47.127Z",
+ "duration_ms": 22242
+ },
+ {
+ "agent_id": "ae5f507bce27980a7",
+ "agent_type": "general-purpose",
+ "started_at": "2026-04-16T13:30:53.288Z",
+ "parent_mode": "none",
+ "status": "completed",
+ "completed_at": "2026-04-16T13:31:14.414Z",
+ "duration_ms": 21126
+ },
+ {
+ "agent_id": "ab64c32ded08f4496",
+ "agent_type": "general-purpose",
+ "started_at": "2026-04-16T13:31:29.699Z",
+ "parent_mode": "none",
+ "status": "completed",
+ "completed_at": "2026-04-16T13:31:54.680Z",
+ "duration_ms": 24981
+ },
+ {
+ "agent_id": "aa35de1f9a3a458f8",
+ "agent_type": "general-purpose",
+ "started_at": "2026-04-16T13:32:01.306Z",
+ "parent_mode": "none",
+ "status": "completed",
+ "completed_at": "2026-04-16T13:32:17.868Z",
+ "duration_ms": 16562
+ },
+ {
+ "agent_id": "abc782903e12397e0",
+ "agent_type": "general-purpose",
+ "started_at": "2026-04-16T13:32:23.287Z",
+ "parent_mode": "none",
+ "status": "completed",
+ "completed_at": "2026-04-16T13:32:42.368Z",
+ "duration_ms": 19081
+ },
+ {
+ "agent_id": "aa920a67ffd9738ad",
+ "agent_type": "general-purpose",
+ "started_at": "2026-04-16T13:32:55.862Z",
+ "parent_mode": "none",
+ "status": "completed",
+ "completed_at": "2026-04-16T13:33:38.081Z",
+ "duration_ms": 42219
+ },
+ {
+ "agent_id": "a1432d1eaad43f135",
+ "agent_type": "general-purpose",
+ "started_at": "2026-04-16T13:33:45.024Z",
+ "parent_mode": "none",
+ "status": "completed",
+ "completed_at": "2026-04-16T13:34:03.851Z",
+ "duration_ms": 18827
+ },
+ {
+ "agent_id": "a7fa0a68a3e22dc75",
+ "agent_type": "general-purpose",
+ "started_at": "2026-04-16T13:34:11.474Z",
+ "parent_mode": "none",
+ "status": "completed",
+ "completed_at": "2026-04-16T13:34:33.092Z",
+ "duration_ms": 21618
+ },
+ {
+ "agent_id": "a15c777f2ea430420",
+ "agent_type": "general-purpose",
+ "started_at": "2026-04-16T13:35:15.027Z",
+ "parent_mode": "none",
+ "status": "completed",
+ "completed_at": "2026-04-16T13:36:49.197Z",
+ "duration_ms": 94170
+ },
+ {
+ "agent_id": "ad4599d8f93863a39",
+ "agent_type": "general-purpose",
+ "started_at": "2026-04-16T13:36:59.311Z",
+ "parent_mode": "none",
+ "status": "completed",
+ "completed_at": "2026-04-16T13:37:20.551Z",
+ "duration_ms": 21240
+ },
+ {
+ "agent_id": "ad3da315642eaf667",
+ "agent_type": "general-purpose",
+ "started_at": "2026-04-16T13:37:28.911Z",
+ "parent_mode": "none",
+ "status": "completed",
+ "completed_at": "2026-04-16T13:38:51.689Z",
+ "duration_ms": 82778
+ },
+ {
+ "agent_id": "abb3857c0a5fbcf61",
+ "agent_type": "general-purpose",
+ "started_at": "2026-04-16T13:39:06.928Z",
+ "parent_mode": "none",
+ "status": "completed",
+ "completed_at": "2026-04-16T13:41:33.360Z",
+ "duration_ms": 146432
+ },
+ {
+ "agent_id": "a7103e22eb25f9483",
+ "agent_type": "general-purpose",
+ "started_at": "2026-04-16T13:41:43.147Z",
+ "parent_mode": "none",
+ "status": "completed",
+ "completed_at": "2026-04-16T13:42:39.118Z",
+ "duration_ms": 55971
+ },
+ {
+ "agent_id": "a06ff508885a4867e",
+ "agent_type": "general-purpose",
+ "started_at": "2026-04-16T13:42:58.251Z",
+ "parent_mode": "none",
+ "status": "completed",
+ "completed_at": "2026-04-16T13:43:32.081Z",
+ "duration_ms": 33830
+ },
+ {
+ "agent_id": "a82ce3a41dd1c1400",
+ "agent_type": "general-purpose",
+ "started_at": "2026-04-16T13:43:39.095Z",
+ "parent_mode": "none",
+ "status": "completed",
+ "completed_at": "2026-04-16T13:44:25.819Z",
+ "duration_ms": 46724
+ },
+ {
+ "agent_id": "aae2ba6f974a382f2",
+ "agent_type": "general-purpose",
+ "started_at": "2026-04-16T13:44:33.581Z",
+ "parent_mode": "none",
+ "status": "completed",
+ "completed_at": "2026-04-16T13:44:53.801Z",
+ "duration_ms": 20220
+ },
+ {
+ "agent_id": "a06945f987220703d",
+ "agent_type": "general-purpose",
+ "started_at": "2026-04-16T13:45:10.445Z",
+ "parent_mode": "none",
+ "status": "completed",
+ "completed_at": "2026-04-16T13:46:20.822Z",
+ "duration_ms": 70377
+ },
+ {
+ "agent_id": "aaa07676e0c05c622",
+ "agent_type": "general-purpose",
+ "started_at": "2026-04-16T13:46:27.054Z",
+ "parent_mode": "none",
+ "status": "completed",
+ "completed_at": "2026-04-16T13:46:49.019Z",
+ "duration_ms": 21965
+ },
+ {
+ "agent_id": "a93b1a0c14459720b",
+ "agent_type": "general-purpose",
+ "started_at": "2026-04-16T13:46:54.437Z",
+ "parent_mode": "none",
+ "status": "completed",
+ "completed_at": "2026-04-16T13:47:10.678Z",
+ "duration_ms": 16241
+ },
+ {
+ "agent_id": "a2f4b0e1c77c785b0",
+ "agent_type": "general-purpose",
+ "started_at": "2026-04-16T13:47:24.549Z",
+ "parent_mode": "none",
+ "status": "completed",
+ "completed_at": "2026-04-16T13:51:26.670Z",
+ "duration_ms": 242121
+ },
+ {
+ "agent_id": "a9268a79714555bc6",
+ "agent_type": "general-purpose",
+ "started_at": "2026-04-16T13:51:36.760Z",
+ "parent_mode": "none",
+ "status": "completed",
+ "completed_at": "2026-04-16T13:51:52.517Z",
+ "duration_ms": 15757
+ },
+ {
+ "agent_id": "a19a76743c10df1a1",
+ "agent_type": "general-purpose",
+ "started_at": "2026-04-16T13:51:58.545Z",
+ "parent_mode": "none",
+ "status": "completed",
+ "completed_at": "2026-04-16T13:52:15.500Z",
+ "duration_ms": 16955
+ },
+ {
+ "agent_id": "ac74c0af0952387a3",
+ "agent_type": "general-purpose",
+ "started_at": "2026-04-16T13:52:27.340Z",
+ "parent_mode": "none",
+ "status": "completed",
+ "completed_at": "2026-04-16T13:54:22.962Z",
+ "duration_ms": 115622
+ },
+ {
+ "agent_id": "afe8178d0a09a72ff",
+ "agent_type": "general-purpose",
+ "started_at": "2026-04-16T13:54:42.509Z",
+ "parent_mode": "none",
+ "status": "completed",
+ "completed_at": "2026-04-16T13:55:15.934Z",
+ "duration_ms": 33425
+ },
+ {
+ "agent_id": "a278b0417e3bfb390",
+ "agent_type": "general-purpose",
+ "started_at": "2026-04-16T13:55:25.923Z",
+ "parent_mode": "none",
+ "status": "completed",
+ "completed_at": "2026-04-16T13:57:54.276Z",
+ "duration_ms": 148353
+ },
+ {
+ "agent_id": "a93149b10e8b430e7",
+ "agent_type": "general-purpose",
+ "started_at": "2026-04-16T13:58:03.266Z",
+ "parent_mode": "none",
+ "status": "completed",
+ "completed_at": "2026-04-16T13:59:54.835Z",
+ "duration_ms": 111569
}
],
- "total_spawned": 50,
- "total_completed": 47,
+ "total_spawned": 77,
+ "total_completed": 74,
"total_failed": 0,
- "last_updated": "2026-04-16T06:05:51.474Z"
+ "last_updated": "2026-04-16T13:59:54.939Z"
}
\ No newline at end of file
diff --git a/Code/WMS/WIDESEA_WMSServer/WIDESEA_StockService/StockSerivce.cs b/Code/WMS/WIDESEA_WMSServer/WIDESEA_StockService/StockSerivce.cs
index 8fde2b8..47d1605 100644
--- a/Code/WMS/WIDESEA_WMSServer/WIDESEA_StockService/StockSerivce.cs
+++ b/Code/WMS/WIDESEA_WMSServer/WIDESEA_StockService/StockSerivce.cs
@@ -145,19 +145,19 @@
Status = StockStatusEmun.缁勭洏鏆傚瓨.GetHashCode(),
}).ToList();
- var bindRequest = new BindContainerRequest
- {
- ContainerCode = stock?.TargetPalletNo,
- EquipmentCode = StockConstants.MES_EQUIPMENT_CODE,
- ResourceCode = StockConstants.MES_RESOURCE_CODE,
- LocalTime = now,
- OperationType = StockConstants.MES_BIND_OPERATION_TYPE,
- ContainerSfcList = details.Select(d => new ContainerSfcItem
- {
- Sfc = d.SerialNumber,
- Location = d.InboundOrderRowNo.ToString(),
- }).ToList()
- };
+ //var bindRequest = new BindContainerRequest
+ //{
+ // ContainerCode = stock?.TargetPalletNo,
+ // EquipmentCode = StockConstants.MES_EQUIPMENT_CODE,
+ // ResourceCode = StockConstants.MES_RESOURCE_CODE,
+ // LocalTime = now,
+ // OperationType = StockConstants.MES_BIND_OPERATION_TYPE,
+ // ContainerSfcList = details.Select(d => new ContainerSfcItem
+ // {
+ // Sfc = d.SerialNumber,
+ // Location = d.InboundOrderRowNo.ToString(),
+ // }).ToList()
+ //};
return await ExecuteWithinTransactionAsync(async () =>
{
@@ -187,11 +187,11 @@
result = StockInfoService.Repository.AddData(entity, x => x.Details);
if (!result) return content.Error("缁勭洏澶辫触");
- var mesResult = _mesService.BindContainer(bindRequest);
- if (mesResult == null || mesResult.Data == null || !mesResult.Data.IsSuccess)
- {
- return content.Error($"缁勭洏鎴愬姛锛屼絾MES缁戝畾澶辫触: {mesResult?.Data?.Msg ?? mesResult?.ErrorMessage ?? "鏈煡閿欒"}");
- }
+ //var mesResult = _mesService.BindContainer(bindRequest);
+ //if (mesResult == null || mesResult.Data == null || !mesResult.Data.IsSuccess)
+ //{
+ // return content.Error($"缁勭洏鎴愬姛锛屼絾MES缁戝畾澶辫触: {mesResult?.Data?.Msg ?? mesResult?.ErrorMessage ?? "鏈煡閿欒"}");
+ //}
return content.OK("缁勭洏鎴愬姛");
});
}
@@ -254,43 +254,43 @@
return content.Error("鎹㈢洏鍘嗗彶璁板綍淇濆瓨澶辫触");
// 璋冪敤MES瑙g粦婧愭墭鐩樼數鑺�
- var unbindRequest = new UnBindContainerRequest
- {
- EquipmentCode = StockConstants.MES_EQUIPMENT_CODE,
- ResourceCode = StockConstants.MES_RESOURCE_CODE,
- LocalTime = DateTime.Now,
- ContainCode = stock.SourcePalletNo,
- SfcList = detailEntities.Select(d => d.SerialNumber).ToList()
- };
- var unbindResult = _mesService.UnBindContainer(unbindRequest);
- if (unbindResult == null || unbindResult.Data == null || !unbindResult.Data.IsSuccess)
- {
- return content.Error($"鎹㈢洏鎴愬姛锛屼絾MES瑙g粦澶辫触: {unbindResult?.Data?.Msg ?? unbindResult?.ErrorMessage ?? "鏈煡閿欒"}");
- }
+ //var unbindRequest = new UnBindContainerRequest
+ //{
+ // EquipmentCode = StockConstants.MES_EQUIPMENT_CODE,
+ // ResourceCode = StockConstants.MES_RESOURCE_CODE,
+ // LocalTime = DateTime.Now,
+ // ContainCode = stock.SourcePalletNo,
+ // SfcList = detailEntities.Select(d => d.SerialNumber).ToList()
+ //};
+ //var unbindResult = _mesService.UnBindContainer(unbindRequest);
+ //if (unbindResult == null || unbindResult.Data == null || !unbindResult.Data.IsSuccess)
+ //{
+ // return content.Error($"鎹㈢洏鎴愬姛锛屼絾MES瑙g粦澶辫触: {unbindResult?.Data?.Msg ?? unbindResult?.ErrorMessage ?? "鏈煡閿欒"}");
+ //}
detailEntities.ForEach(d => d.StockId = targetStock.Id);
var result = await StockInfoDetailService.Repository.UpdateDataAsync(detailEntities);
if (!result) return content.Error("鎹㈢洏澶辫触");
// 璋冪敤MES缁戝畾鐩爣鎵樼洏鐢佃姱
- var bindRequest = new BindContainerRequest
- {
- ContainerCode = stock.TargetPalletNo,
- EquipmentCode = StockConstants.MES_EQUIPMENT_CODE,
- ResourceCode = StockConstants.MES_RESOURCE_CODE,
- LocalTime = DateTime.Now,
- OperationType = StockConstants.MES_BIND_OPERATION_TYPE,
- ContainerSfcList = detailEntities.Select(d => new ContainerSfcItem
- {
- Sfc = d.SerialNumber,
- Location = d.InboundOrderRowNo.ToString()
- }).ToList()
- };
- var bindResult = _mesService.BindContainer(bindRequest);
- if (bindResult == null || bindResult.Data == null || !bindResult.Data.IsSuccess)
- {
- return content.Error($"鎹㈢洏鎴愬姛锛屼絾MES缁戝畾澶辫触: {bindResult?.Data?.Msg ?? bindResult?.ErrorMessage ?? "鏈煡閿欒"}");
- }
+ //var bindRequest = new BindContainerRequest
+ //{
+ // ContainerCode = stock.TargetPalletNo,
+ // EquipmentCode = StockConstants.MES_EQUIPMENT_CODE,
+ // ResourceCode = StockConstants.MES_RESOURCE_CODE,
+ // LocalTime = DateTime.Now,
+ // OperationType = StockConstants.MES_BIND_OPERATION_TYPE,
+ // ContainerSfcList = detailEntities.Select(d => new ContainerSfcItem
+ // {
+ // Sfc = d.SerialNumber,
+ // Location = d.InboundOrderRowNo.ToString()
+ // }).ToList()
+ //};
+ //var bindResult = _mesService.BindContainer(bindRequest);
+ //if (bindResult == null || bindResult.Data == null || !bindResult.Data.IsSuccess)
+ //{
+ // return content.Error($"鎹㈢洏鎴愬姛锛屼絾MES缁戝畾澶辫触: {bindResult?.Data?.Msg ?? bindResult?.ErrorMessage ?? "鏈煡閿欒"}");
+ //}
return content.OK("鎹㈢洏鎴愬姛");
});
@@ -361,22 +361,22 @@
return content.Error("鎷嗙洏鍘嗗彶璁板綍淇濆瓨澶辫触");
// 璋冪敤MES瑙g粦鐢佃姱
- var unbindRequest = new UnBindContainerRequest
- {
- EquipmentCode = StockConstants.MES_EQUIPMENT_CODE,
- ResourceCode = StockConstants.MES_RESOURCE_CODE,
- LocalTime = DateTime.Now,
- ContainCode = stock.SourcePalletNo,
- SfcList = detailEntities.Select(d => d.SerialNumber).ToList()
- };
- var unbindResult = _mesService.UnBindContainer(unbindRequest);
- if (unbindResult == null || unbindResult.Data == null || !unbindResult.Data.IsSuccess)
- {
- return content.Error($"鎷嗙洏鎴愬姛锛屼絾MES瑙g粦澶辫触: {unbindResult?.Data?.Msg ?? unbindResult?.ErrorMessage ?? "鏈煡閿欒"}");
- }
+ //var unbindRequest = new UnBindContainerRequest
+ //{
+ // EquipmentCode = StockConstants.MES_EQUIPMENT_CODE,
+ // ResourceCode = StockConstants.MES_RESOURCE_CODE,
+ // LocalTime = DateTime.Now,
+ // ContainCode = stock.SourcePalletNo,
+ // SfcList = detailEntities.Select(d => d.SerialNumber).ToList()
+ //};
+ //var unbindResult = _mesService.UnBindContainer(unbindRequest);
+ //if (unbindResult == null || unbindResult.Data == null || !unbindResult.Data.IsSuccess)
+ //{
+ // return content.Error($"鎷嗙洏鎴愬姛锛屼絾MES瑙g粦澶辫触: {unbindResult?.Data?.Msg ?? unbindResult?.ErrorMessage ?? "鏈煡閿欒"}");
+ //}
- var result = await StockInfoDetailService.Repository.DeleteDataAsync(detailEntities);
- if (!result) return content.Error("鎷嗙洏澶辫触");
+ //var result = await StockInfoDetailService.Repository.DeleteDataAsync(detailEntities);
+ //if (!result) return content.Error("鎷嗙洏澶辫触");
return content.OK("鎷嗙洏鎴愬姛");
});
}
--
Gitblit v1.9.3