From 1924bdeca6414b6fec314c37260b44f20865d593 Mon Sep 17 00:00:00 2001
From: 刘磊 <1161824510@qq.com>
Date: 星期四, 22 一月 2026 20:49:05 +0800
Subject: [PATCH] 代码同步,接口更新
---
项目代码/WMS/WMSServer/WIDESEA_StoragIntegrationServices/MES/Partial/syncOrderFeature.cs | 20 ++++++++++++++++----
1 files changed, 16 insertions(+), 4 deletions(-)
diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WMSServer/WIDESEA_StoragIntegrationServices/MES/Partial/syncOrderFeature.cs" "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WMSServer/WIDESEA_StoragIntegrationServices/MES/Partial/syncOrderFeature.cs"
index 9d59a77..0b92364 100644
--- "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WMSServer/WIDESEA_StoragIntegrationServices/MES/Partial/syncOrderFeature.cs"
+++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WMSServer/WIDESEA_StoragIntegrationServices/MES/Partial/syncOrderFeature.cs"
@@ -1,4 +1,5 @@
-锘縰sing Newtonsoft.Json;
+锘縰sing Masuit.Tools;
+using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
@@ -21,16 +22,27 @@
{
if (string.IsNullOrEmpty(json.ToString())) throw new Exception("璇锋眰鍙傛暟涓虹┖");
-
- var result = JsonConvert.DeserializeObject<SyncOrderFeatureInfo>(json.ToString());
+ Console.WriteLine(json);
+ var result = JsonConvert.DeserializeObject<List<SyncOrderFeatureInfo>>(json.ToString());
//todo 淇敼瀵瑰簲鏁版嵁
+ foreach (var item in result)
+ {
+ if (string.IsNullOrEmpty(item.workOrderNo)) throw new Exception($"鏈煡宸ュ崟鍙穥item.workOrderNo}");
- return content;
+ var info = _assemblyOrderInfoRepository.QueryFirst(x => x.workOrderNo == item.workOrderNo);
+ if (info == null) throw new Exception($"鏈煡宸ュ崟鍙穥item.workOrderNo}");
+
+ }
+
+ LogFactory.GetLog("璁㈠崟鐗瑰緛鍚屾").Info(true, $"\r\r--------------------------------------");
+ LogFactory.GetLog("璁㈠崟鐗瑰緛鍚屾").Info(true, result.ToJsonString());
+ return content.OK();
}
catch (Exception ex)
{
+ LogFactory.GetLog("璁㈠崟鐗瑰緛鍚屾").Info(true, json.ToJsonString());
return content.Error();
}
}
--
Gitblit v1.9.3