From fc6dd85a865c4cadae0b9a07d56e2988d2262f10 Mon Sep 17 00:00:00 2001 From: kazelee <1847801760@qq.com> Date: 星期二, 22 七月 2025 17:28:52 +0800 Subject: [PATCH] 优化数据库事务帮助类 , 查询/日志生成类 --- models/TN_Location.cs | 59 ++++++++--------------------------------------------------- 1 files changed, 8 insertions(+), 51 deletions(-) diff --git a/models/TN_Location.cs b/models/TN_Location.cs index 9141ff1..e1267d0 100644 --- a/models/TN_Location.cs +++ b/models/TN_Location.cs @@ -3,55 +3,16 @@ using SqlSugar; namespace HH.WCS.Mobox3.DSZSH.models { - /// <summary> - /// 銆愭鏋躲�璐т綅琛�- /// </summary> - [SugarTable("TN_Location")] public class TN_Location : BaseModel { - /// <summary> - /// 璐т綅 ID - /// </summary> public string S_CODE { get; set; } - - /// <summary> - /// 璐т綅鍚嶇О - /// </summary> public string S_NAME { get; set; } = ""; - - /// <summary> - /// 璐т綅鎵�湪鍖哄煙 ID - /// </summary> public string S_AREA_CODE { get; set; } - - /// <summary> - /// 鍥借嚜 AGV 瀵瑰簲鐨勫簱浣嶅悕绉�- /// </summary> - public string S_AGV_SITE { get; set; } = ""; - - /// <summary> - /// 璐т綅瀹瑰櫒瀹归噺 - /// </summary> + public string S_AGV_SITE { get; set; } = "0"; public int N_CAPACITY { get; set; } = 1; - - /// <summary> - /// 璐т綅褰撳墠瀹瑰櫒鏁伴噺 - /// </summary> public int N_CURRENT_NUM { get; set; } = 0; - - /// <summary> - /// 琛屽彿 - /// </summary> public int N_ROW { get; set; } = 0; - - /// <summary> - /// 鍒楀彿 - /// </summary> public int N_COL { get; set; } = 0; - - /// <summary> - /// 璐т綅鐨勫眰鏁�- /// </summary> public int N_LAYER { get; set; } = 1; // BEG 鍒濆鍖栬〃鏍间娇鐢�@@ -65,31 +26,26 @@ // END /// <summary> - /// 涓婇攣鐘舵�鍙凤細0鏃�1鍏ュ簱閿�2鍑哄簱閿�3鍏跺畠閿�+ /// 涓婇攣鐘舵�鍙�0鏃�1鍏ュ簱閿�2鍑哄簱閿�3鍏跺畠閿� /// </summary> public int N_LOCK_STATE { get; set; } = 0; /// <summary> - /// 涓婇攣鐘舵�鍚嶇О锛�鏃�1鍏ュ簱閿�2鍑哄簱閿�3鍏跺畠閿�+ /// 涓婇攣鐘舵�鍚嶇О:0鏃�1鍏ュ簱閿�2鍑哄簱閿�3鍏跺畠閿� /// </summary> public string S_LOCK_STATE { get; set; } = "鏃�; /// <summary> - /// Lock Operator锛氫笂閿佺殑鎿嶄綔鏉ユ簮锛堥�甯告槸浠诲姟鍙凤級 + /// Lock Operator:涓婇攣鐨勬搷浣滄潵婧�(閫氬父鏄换鍔″彿) /// </summary> public string S_LOCK_OP { get; set; } = ""; - /// <summary> - /// 璐т綅鏄惁鍚敤锛歒鍚敤 - /// </summary> public string C_ENABLE { get; set; } = "Y"; + #region 闈炲瓧娈甸儴鍒� /// <summary> - /// 璐т綅-瀹瑰櫒 鍏崇郴鏄犲皠 + /// <!--榛樿涓嶄娇鐢�->SqlSugar鍏崇郴鏄犲皠鍒楄〃 /// </summary> - /// <remarks> - /// 榛樿鏄竴瀵瑰锛岄�甯告儏鍐垫槸涓�涓�- /// </remarks> [Navigate(NavigateType.OneToMany, nameof(TN_Loc_Container.S_LOC_CODE))] public List<TN_Loc_Container> LocCntrRels { get; set; } @@ -102,6 +58,7 @@ case 3: str = "鍏跺畠閿�; break; } return str; - } + } + #endregion } } -- Gitblit v1.9.1