From a5872f7ed264a634c809b026d4d181f99a78db1d Mon Sep 17 00:00:00 2001
From: lixiaojun <1287241240@qq.com>
Date: 星期二, 10 十二月 2024 16:48:54 +0800
Subject: [PATCH] ResetMonitorValue bug修复

---
 Service/HStation.Service.Xhs.Core/04-dal/03-sqlite/XhsProject.cs |   59 -----------------------------------------------------------
 1 files changed, 0 insertions(+), 59 deletions(-)

diff --git a/Service/HStation.Service.Xhs.Core/04-dal/03-sqlite/XhsProject.cs b/Service/HStation.Service.Xhs.Core/04-dal/03-sqlite/XhsProject.cs
index a508240..95c3e79 100644
--- a/Service/HStation.Service.Xhs.Core/04-dal/03-sqlite/XhsProject.cs
+++ b/Service/HStation.Service.Xhs.Core/04-dal/03-sqlite/XhsProject.cs
@@ -137,65 +137,6 @@
             }
         }
 
-        /// <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;
-            }
-        }
-
-        /// <summary>
-        /// 閫氳繃 ID 鍒犻櫎 锛堟嫇灞曪級
-        /// </summary>
-        public bool DeleteExByID(long ID)
-        {
-            if (ID < 1)
-            {
-                return false;
-            }
-            using (var db = new SqlSugarClient(ConnectionConfig))
-            {
-                try
-                {
-                    db.BeginTran();
-                    var bol = db.Deleteable<Entity.XhsProject>().Where(x => x.ID == ID).ExecuteCommandHasChange();
-                    if (!bol)
-                    {
-                        db.RollbackTran();
-                        return false;
-                    }
-                    db.Deleteable<Entity.XhsProjectSite>().Where(x => x.ProjectID == ID).ExecuteCommandHasChange();
-                    db.CommitTran();
-                    return true;
-                }
-                catch
-                {
-                    db.RollbackTran();
-                    throw;
-                }
-            }
-        }
 
 
     }

--
Gitblit v1.9.3