From 73e6f5680920f539cfcb6075346099698757dc31 Mon Sep 17 00:00:00 2001
From: yusijie <ysj@hz-kingdee.com>
Date: 星期六, 28 二月 2026 09:36:19 +0800
Subject: [PATCH] app翻译,翻译表添加更新日期字段,用于按数据库更新时间和本地翻译文件中的更新时间做判断,是否要更新翻译文件

---
 WebAPI/Controllers/BaseSet/Xt_grdAlignment_WMESController.cs |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diff --git a/WebAPI/Controllers/BaseSet/Xt_grdAlignment_WMESController.cs b/WebAPI/Controllers/BaseSet/Xt_grdAlignment_WMESController.cs
index bc0c468..bd54398 100644
--- a/WebAPI/Controllers/BaseSet/Xt_grdAlignment_WMESController.cs
+++ b/WebAPI/Controllers/BaseSet/Xt_grdAlignment_WMESController.cs
@@ -961,11 +961,17 @@
                 {
                     languagePack["_Version"] = 0;
                 }
+                if (languagePack["_UpdateDate"] == null)
+                {
+                    languagePack["_UpdateDate"] = "";
+                }
                 LogService.Write("璇█鍖呬腑鏁版嵁鏉℃暟: " + languagePack["_Version"].ToString() + "\n鏁版嵁搴撲腑鏁版嵁鏉℃暟: " + ds.Tables[0].Rows.Count.ToString());
-                if (languagePack["_Version"].Value<int>() != ds.Tables[0].Rows.Count || forceUpdate == true)
+                if (languagePack["_Version"].Value<int>() != ds.Tables[0].Rows.Count || forceUpdate == true || languagePack["_UpdateDate"].Value<string>() != ds.Tables[0].Rows[0]["HUpdateDate"].ToString())
                 {
                     // 鏇存柊鐗堟湰鍙�(鏁版嵁鏉$洰鏁�)
                     languagePack["_Version"] = ds.Tables[0].Rows.Count;
+                    //鏇存柊瀛楁缈昏瘧鏃ユ湡
+                    languagePack["_UpdateDate"] = ds.Tables[0].Rows[0]["HUpdateDate"].ToString();
                     // 缁熻姣忎釜瀛楃妯″潡涓� 瀛楁鐮佸嚭鐜扮殑娆℃暟 濡傛灉鍑虹幇澶氭锛屽垯鏄犲皠涓篔Array绫诲瀷
                     Dictionary<string, int> HFieldCodeDict = ds.Tables[0].AsEnumerable()
                     .GroupBy(row => new

--
Gitblit v1.9.1