From a434b83043a5646d5dd99c3e934cc8a30ac6165f Mon Sep 17 00:00:00 2001
From: Shuxia Ning <NingShuxia0927@outlook.com>
Date: 星期二, 29 十月 2024 13:29:35 +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