From 3428deadb4b60ef25dbd06fbf53905fc51c7616e Mon Sep 17 00:00:00 2001 From: zxx <Zxx@HanInfo> Date: 星期一, 07 七月 2025 17:06:45 +0800 Subject: [PATCH] 1 --- HH.WCS.Mobox3/HH.WCS.Mobox3.XiaoMi/dispatch/RcsHelper.cs | 11 ++++++++++- 1 files changed, 10 insertions(+), 1 deletions(-) diff --git a/HH.WCS.Mobox3/HH.WCS.Mobox3.XiaoMi/dispatch/RcsHelper.cs b/HH.WCS.Mobox3/HH.WCS.Mobox3.XiaoMi/dispatch/RcsHelper.cs index bd3fae7..af3780d 100644 --- a/HH.WCS.Mobox3/HH.WCS.Mobox3.XiaoMi/dispatch/RcsHelper.cs +++ b/HH.WCS.Mobox3/HH.WCS.Mobox3.XiaoMi/dispatch/RcsHelper.cs @@ -35,7 +35,16 @@ var dataResult = JsonConvert.DeserializeObject<RcsResult>(response); if (dataResult.code == 0) { - result = true; + var db = new SqlHelper<WCSTask>().GetInstance(); + //瀛樿鍗曞彿 + var task = db.Queryable<WCSTask>().Where(a => a.S_CODE == model.ts_name).First(); + task.S_WORKSHOP_NO = dataResult.data.in_order_id; + var res = db.Updateable(task).UpdateColumns(it => it.S_WORKSHOP_NO).ExecuteCommand() > 0; + if (res) + { + result = true; + } + } } catch (Exception ex) -- Gitblit v1.9.1