From ac3d4563b35f38ced8513318457de4af5ffca4fe Mon Sep 17 00:00:00 2001
From: dengjunjie <dengjunjie@hnkhzn.com>
Date: 星期六, 14 三月 2026 11:09:14 +0800
Subject: [PATCH] 优化出库任务逻辑

---
 代码管理/WCS/WIDESEAWCS_Server/WIDESEAWCS_BasicInfoService/TrackloginfoService.cs |   26 ++++++++++++++++++++++++--
 1 files changed, 24 insertions(+), 2 deletions(-)

diff --git "a/\344\273\243\347\240\201\347\256\241\347\220\206/WCS/WIDESEAWCS_Server/WIDESEAWCS_BasicInfoService/TrackloginfoService.cs" "b/\344\273\243\347\240\201\347\256\241\347\220\206/WCS/WIDESEAWCS_Server/WIDESEAWCS_BasicInfoService/TrackloginfoService.cs"
index 83dd713..45481a2 100644
--- "a/\344\273\243\347\240\201\347\256\241\347\220\206/WCS/WIDESEAWCS_Server/WIDESEAWCS_BasicInfoService/TrackloginfoService.cs"
+++ "b/\344\273\243\347\240\201\347\256\241\347\220\206/WCS/WIDESEAWCS_Server/WIDESEAWCS_BasicInfoService/TrackloginfoService.cs"
@@ -1,4 +1,5 @@
-锘縰sing Newtonsoft.Json;
+锘縰sing Microsoft.AspNetCore.Mvc;
+using Newtonsoft.Json;
 using SqlSugar;
 using System;
 using System.Collections.Generic;
@@ -43,8 +44,10 @@
                 Dt_trackloginfo trackloginfo = new Dt_trackloginfo()
                 {
                     tracklog_name = logName,
-                    tracklog_content = JsonConvert.SerializeObject(entity),
+                    //tracklog_content = JsonConvert.SerializeObject(entity),
+                    tracklog_content = entity is string strEntity ? strEntity : JsonConvert.SerializeObject(entity),//濡傛灉entity鏄瓧绗︿覆绫诲瀷锛屽垯鐩存帴浣跨敤锛屽惁鍒欏簭鍒楀寲涓篔SON瀛楃涓�
                     tracklog_createtime = DateTime.Now,
+                    Creater = "system",
                     tracklog_type = content.Status ? "鎴愬姛" : "澶辫触",
                     tracklog_code = content.Status ? logCode : ("4" + logCode),
                     tracklog_des = description,
@@ -60,5 +63,24 @@
             }
             return content1;
         }
+
+
+
+        public override PageGridData<Dt_trackloginfo> GetPageData(PageDataOptions options)
+        {
+            PageGridData<Dt_trackloginfo> car = null;
+            try
+            {
+                car = base.GetPageData(options);
+            }
+            catch (Exception ex)
+            {
+
+            }
+            return car;
+        }
+
+
     }
 }
+

--
Gitblit v1.9.3