From c54d869fe4c5e2a805624a9ade4f9057c916f358 Mon Sep 17 00:00:00 2001
From: dengjunjie <dengjunjie@hnkhzn.com>
Date: 星期六, 25 五月 2024 14:13:15 +0800
Subject: [PATCH] 添加数据库清除历史数据事务

---
 代码管理/PCS/WCS_Server/WIDESEA_WCS/JobsPart/Common/AutoUpdateWork.cs |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git "a/\344\273\243\347\240\201\347\256\241\347\220\206/PCS/WCS_Server/WIDESEA_WCS/JobsPart/Common/AutoUpdateWork.cs" "b/\344\273\243\347\240\201\347\256\241\347\220\206/PCS/WCS_Server/WIDESEA_WCS/JobsPart/Common/AutoUpdateWork.cs"
index abb82b5..73ba95a 100644
--- "a/\344\273\243\347\240\201\347\256\241\347\220\206/PCS/WCS_Server/WIDESEA_WCS/JobsPart/Common/AutoUpdateWork.cs"
+++ "b/\344\273\243\347\240\201\347\256\241\347\220\206/PCS/WCS_Server/WIDESEA_WCS/JobsPart/Common/AutoUpdateWork.cs"
@@ -117,9 +117,10 @@
                             jobID = mes_Detail.jobID,
                             mes_detail_id = mes_Detail.mes_detail_id,
                             mes_headID = mes_Detail.mes_headID,
-                            operatetype = operatetype,
+                            operatetype = string.IsNullOrEmpty(mes_Detail.Status) ? "瓒呮椂娓呯悊" : operatetype,
                             SN = mes_Detail.SN,
                             Status = mes_Detail.Status,
+                            completedate = DateTime.Now,
                         };
                         mes_Details_hty.Add(mes_Detail_Hty);
                         mes_DetailRepository.Delete(mes_Detail, true);
@@ -155,6 +156,7 @@
                     reqIDLineNo = mes_Head.reqIDLineNo,
                     typeID = mes_Head.typeID,
                     workOrder = mes_Head.workOrder,
+                    completedate = DateTime.Now,
                 };
                 mes_Head_HtyRepository.Add(mes_Head_Hty, true);
                 mes_HeadRepository.Delete(mes_Head, true);

--
Gitblit v1.9.3