From ec9ddfdb0782f9f302737441492259c9694e218d Mon Sep 17 00:00:00 2001 From: chengsc <11752@DESKTOP-DS49RCP> Date: 星期四, 12 六月 2025 08:41:21 +0800 Subject: [PATCH] 修改数据 --- Admin.NET/WCS.Application/PLC/PLCService.cs | 14 +++++++++----- 1 files changed, 9 insertions(+), 5 deletions(-) diff --git a/Admin.NET/WCS.Application/PLC/PLCService.cs b/Admin.NET/WCS.Application/PLC/PLCService.cs index 0a6df94..d748ee3 100644 --- a/Admin.NET/WCS.Application/PLC/PLCService.cs +++ b/Admin.NET/WCS.Application/PLC/PLCService.cs @@ -1430,14 +1430,18 @@ if (taskModel.taskType == "DPJRK") { + //var code = "[{\"type\":\"SITE\",\"code\":\"B100101\"},{\"type\":\"PILE_COUNT\",\"code\":\"8\"}]"; + var code = new List<object>() + { + new {type = "SITE" , code = modTask.StartLocate}, + new { type = "PILE_COUNT", code = modTask.Qty } + }; taskModel.targetRoute.Add(new targetRoute() { seq = 0, type = "MIX_CONDITION", - code = new List<object>() { - new { type = "SITE", code = modTask.StartLocate }, - new { type = "PILE_COUNT", code = modTask.Qty } - } - + code = code.ToString() // "[{\"type":\"SITE", code = modTask.StartLocate },new { type = "PILE_COUNT", code = modTask.Qty }]" + + }); taskModel.targetRoute.Add(new targetRoute() { seq = 1, type = type2, code = modTask.EndLocate }); } -- Gitblit v1.8.0