From 98c5fbdce57cf9f0914ca5fb2c659c9396d3aed6 Mon Sep 17 00:00:00 2001
From: pan <antony1029@163.com>
Date: 星期三, 03 十二月 2025 22:53:01 +0800
Subject: [PATCH] 提交

---
 项目代码/WMS无仓储版/WIDESEA_WMSServer/WIDESEA_BasicService/InvokeMESService.cs |   41 +++++++++++++----------------------------
 1 files changed, 13 insertions(+), 28 deletions(-)

diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS\346\227\240\344\273\223\345\202\250\347\211\210/WIDESEA_WMSServer/WIDESEA_BasicService/InvokeMESService.cs" "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS\346\227\240\344\273\223\345\202\250\347\211\210/WIDESEA_WMSServer/WIDESEA_BasicService/InvokeMESService.cs"
index 19c29c9..3848d23 100644
--- "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS\346\227\240\344\273\223\345\202\250\347\211\210/WIDESEA_WMSServer/WIDESEA_BasicService/InvokeMESService.cs"
+++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS\346\227\240\344\273\223\345\202\250\347\211\210/WIDESEA_WMSServer/WIDESEA_BasicService/InvokeMESService.cs"
@@ -27,31 +27,7 @@
 using WIDESEA_Model.Models;
 
 namespace WIDESEA_BasicService
-{
-    public class TransferDataDto
-    {
-        public DateTime TransferTime { get; set; }
-        public List<TransferItemDto> Items { get; set; }
-    }
-
-    public class TransferItemDto
-    {
-        public string MaterialCode { get; set; }
-        public decimal TotalQuantity { get; set; }
-        public List<LocationInfoDto> Locations { get; set; }
-    }
-    public class LocationInfoDto
-    {
-        public string LocationCode { get; set; }
-        public decimal Quantity { get; set; }
-        public List<BarcodeInfoDto> Barcodes { get; set; }
-    }
-
-    public class BarcodeInfoDto
-    {
-        public string Barcode { get; set; }
-        public decimal Quantity { get; set; }
-    }
+{   
     public class InvokeMESService : IInvokeMESService
     {
         private readonly IHttpClientFactory _httpClientFactory;
@@ -801,7 +777,7 @@
                 return WebResponseContent.Instance.Error("澶勭悊鍥炰紶MES鏃跺彂鐢熷紓甯革紝璇疯仈绯荤鐞嗗憳");
             }
         }
-    }
+    }      
 
     public static class UniqueValueGenerator
     {
@@ -815,14 +791,23 @@
         public static string Generate()
         {
             var now = DateTime.Now;
-            string datePart = now.ToString("yyyyMMdd");
+            string datePart = now.ToString("MMdd");
             long ticksPart = now.Ticks;
+            // 鎷兼帴锛氳鏁板櫒琛�0涓�3浣嶏紙閬垮厤浣嶆暟涓嶄竴鑷达級
+            return $"{datePart}{ticksPart}";
+        }
+         
+        public static string GenerateCount()
+        {
+            var now = DateTime.Now;         
+            string datePart = now.ToString("yyyyMMddHHmmss");
+
 
             // 鍘熷瓙閫掑璁℃暟鍣紙鍙栨ā1000锛岀‘淇濊鏁板櫒浠�3浣嶏紝鎺у埗闀垮害锛�
             long counterPart = Interlocked.Increment(ref _counter) % 1000;
 
             // 鎷兼帴锛氳鏁板櫒琛�0涓�3浣嶏紙閬垮厤浣嶆暟涓嶄竴鑷达級
-            return $"{datePart}{ticksPart}{counterPart:D3}";
+            return $"{datePart}{counterPart:D3}";
         }
     }
 }

--
Gitblit v1.9.3