From 05d57af48f51d2ac8292bc3faaa01ca753763790 Mon Sep 17 00:00:00 2001
From: duheng <2784771470@qq.com>
Date: 星期一, 14 十月 2024 14:52:19 +0800
Subject: [PATCH] 增加泵型号查看界面

---
 Service/HStation.Service.Xhs.Core/04-dal/02-postgresql/XhsProject.cs |   31 ++-----------------------------
 1 files changed, 2 insertions(+), 29 deletions(-)

diff --git a/Service/HStation.Service.Xhs.Core/04-dal/02-postgresql/XhsProject.cs b/Service/HStation.Service.Xhs.Core/04-dal/02-postgresql/XhsProject.cs
index 55df7b7..9266685 100644
--- a/Service/HStation.Service.Xhs.Core/04-dal/02-postgresql/XhsProject.cs
+++ b/Service/HStation.Service.Xhs.Core/04-dal/02-postgresql/XhsProject.cs
@@ -73,7 +73,7 @@
                             }
                         }
                     }
-
+                    db.CommitTran();
                     return entityProject.ID;
                 }
                 catch
@@ -126,6 +126,7 @@
                             }
                         }
                     }
+                    db.CommitTran();
                     return true;
                 }
                 catch
@@ -133,34 +134,6 @@
                     db.RollbackTran();
                     throw;
                 }
-            }
-        }
-
-        /// <summary>
-        /// 鏇存柊寮�濮嬫椂闂�
-        /// </summary>
-        public virtual bool UpdateStartTime(long ID, DateTime StartTime)
-        {
-            using (SqlSugarClient db = new(ConnectionConfig))
-            {
-                return db.Updateable<Entity.XhsProject>()
-                    .SetColumns(x => x.StartTime == StartTime)
-                    .Where(x => x.ID == ID)
-                    .ExecuteCommand() > 0;
-            }
-        }
-
-        /// <summary>
-        /// 鏇存柊缁撴潫鏃堕棿
-        /// </summary>
-        public virtual bool UpdateEndTime(long ID, DateTime EndTime)
-        {
-            using (SqlSugarClient db = new(ConnectionConfig))
-            {
-                return db.Updateable<Entity.XhsProject>()
-                    .SetColumns(x => x.EndTime == EndTime)
-                    .Where(x => x.ID == ID)
-                    .ExecuteCommand() > 0;
             }
         }
 

--
Gitblit v1.9.3