From e79700d34620c495667b7b8e7b852f23ed7d7e4e Mon Sep 17 00:00:00 2001
From: kazelee <1847801760@qq.com>
Date: 星期三, 16 七月 2025 17:30:42 +0800
Subject: [PATCH] 简化增删改表达式,避免类型匹配出错

---
 wms/LocationHelper.cs |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/wms/LocationHelper.cs b/wms/LocationHelper.cs
index c31f32c..fea5c42 100644
--- a/wms/LocationHelper.cs
+++ b/wms/LocationHelper.cs
@@ -245,7 +245,7 @@
 
                 using (var tran = db.Ado.UseTran())
                 {
-                    if (db.Insertable<TN_Loc_Container>(bindLocCntList).ExecuteCommand() <= 0) {
+                    if (db.Insertable(bindLocCntList).ExecuteCommand() <= 0) {
                         db.RollbackTran();
                         LogHelper.Info($"鎻掑叆璐т綅瀹瑰櫒鍏崇郴琛ㄥけ璐ワ紝{log}");
                         return "璐т綅缁戝畾瀹瑰櫒澶辫触锛� + logs;

--
Gitblit v1.9.1