From fc6dd85a865c4cadae0b9a07d56e2988d2262f10 Mon Sep 17 00:00:00 2001 From: kazelee <1847801760@qq.com> Date: 星期二, 22 七月 2025 17:28:52 +0800 Subject: [PATCH] 优化数据库事务帮助类 , 查询/日志生成类 --- wms/SYSHelper.cs | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/wms/SYSHelper.cs b/wms/SYSHelper.cs index d075833..fd6c4a8 100644 --- a/wms/SYSHelper.cs +++ b/wms/SYSHelper.cs @@ -9,6 +9,9 @@ using System.Threading.Tasks; namespace HH.WCS.Mobox3.DSZSH.wms { + /// <summary> + /// 搴忓垪鍙风敓鎴愬府鍔╃被 (鍚嶇О/鍛藉悕绌洪棿涓哄巻鍙查仐鐣欓棶棰� + /// </summary> internal class SYSHelper { private static object locker = new object(); internal static int GetSerialNumber(string snType, string prefix) { @@ -33,7 +36,7 @@ else { //鎻掑叆琛� sId = new OI_SYS_MAXID { CN_S_TYPE = snType, CN_S_PRE = prefix, CN_N_MAX = 1 }; - result = db.Insertable<OI_SYS_MAXID>(sId).ExecuteCommand() > 0 ? 1 : 0; + result = db.Insertable(sId).ExecuteCommand() > 0 ? 1 : 0; } } -- Gitblit v1.9.1