From 1d3a018e6d707179eef127424e3d78d3863fba71 Mon Sep 17 00:00:00 2001
From: huangxiaoqiang <huangxiaoqiang@hnkhzn.com>
Date: 星期一, 30 三月 2026 16:09:02 +0800
Subject: [PATCH] 实现MES过点记录与库存变动记录全流程功能 本次提交实现了MES过点记录和库存变动记录的前后端全流程,包括数据模型、仓储、服务、控制器、前端页面及扩展配置。新增精排显示页面,支持虚拟精排与车身信息弹窗。优化货位信息行页面的悬浮提示框,丰富展示内容并美化样式。后端完善了相关API、DTO、AutoMapper映射及业务逻辑,支持数据追溯与可视化。整体提升了系统的可维护性和用户体验。

---
 项目代码/WMS/WMSServer/WIDESEA_StoragIntegrationServices/MES/Partial/syncOrderFeature.cs |   23 ++++++++++++++++++-----
 1 files changed, 18 insertions(+), 5 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..eed2dac 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,17 +22,29 @@
             {
 
                 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());  //List<SyncOrderFeatureInfo>
 
                 //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)
             {
-                return content.Error();
+                LogFactory.GetLog("璁㈠崟鐗瑰緛鍚屾").Info(true, $"\r\r--------------------------------------");
+                LogFactory.GetLog("璁㈠崟鐗瑰緛鍚屾").Info(true, $"璁㈠崟鐗瑰緛鍚屾寮傚父锛歿ex.Message}");
+                return content.Error(ex.Message);
             }
         }
     }

--
Gitblit v1.9.3