From 56b519c5ee0ee0615400c7df8d455f9766fa600b Mon Sep 17 00:00:00 2001 From: lixiaojun <1287241240@qq.com> Date: 星期三, 27 三月 2024 14:38:51 +0800 Subject: [PATCH] 版本大更新 --- Yw.Service.Curve.Core/04-dal/02-postgresql/PumpCurve.cs | 29 +++++++++++++++-------------- 1 files changed, 15 insertions(+), 14 deletions(-) diff --git a/Yw.Service.Curve.Core/4-dal/1-pump/PumpCurve.cs b/Yw.Service.Curve.Core/04-dal/02-postgresql/PumpCurve.cs similarity index 70% rename from Yw.Service.Curve.Core/4-dal/1-pump/PumpCurve.cs rename to Yw.Service.Curve.Core/04-dal/02-postgresql/PumpCurve.cs index 63697ec..7f9e84a 100644 --- a/Yw.Service.Curve.Core/4-dal/1-pump/PumpCurve.cs +++ b/Yw.Service.Curve.Core/04-dal/02-postgresql/PumpCurve.cs @@ -1,31 +1,30 @@ -锘縩amespace Yw.DAL +锘縩amespace Yw.DAL.PostgreSql { /// <summary> /// 娉垫洸绾� /// </summary> - public partial class PumpCurve : BaseDAL<Entity.PumpCurve> + public partial class PumpCurve : BaseTraceDAL<Entity.PumpCurve> { /// <summary> /// /// </summary> public override ConnectionConfig ConnectionConfig { - get { return ConfigHelper.DefaultConnectionConfig; } - + get { return ConfigHelper.PostgreSqlConnectionConfig; } } - /// <summary> /// 鏇存柊 CurveInfo /// </summary> - public bool UpdateCurveInfo(long ID, string CurveInfo, long UpdateUserID, DateTime UpdateTime) + public bool UpdateCurveInfo(long ID, string CurveInfo) { using (var db = new SqlSugarClient(ConnectionConfig)) { return db.Updateable<Entity.PumpCurve>() .SetColumns(x => x.CurveInfo == CurveInfo) - .SetColumns(x => x.UpdateUserID == UpdateUserID) - .SetColumns(x => x.UpdateTime == UpdateTime) + .SetColumns(x => x.UpdateUserID == UserRegister.UserID) + .SetColumns(x => x.UpdateTime == DateTime.Now) + .SetColumns(x => x.UpdateUserName == UserRegister.UserName) .Where(x => x.ID == ID).ExecuteCommandHasChange(); } } @@ -33,14 +32,15 @@ /// <summary> /// 鏇存柊 CoordParas /// </summary> - public bool UpdateCoordParas(long ID, string CoordParas, long UpdateUserID, DateTime UpdateTime) + public bool UpdateCoordParas(long ID, string CoordParas) { using (SqlSugarClient db = new SqlSugarClient(ConnectionConfig)) { return db.Updateable<Entity.PumpCurve>() .SetColumns(x => x.CoordParas == CoordParas) - .SetColumns(x => x.UpdateUserID == UpdateUserID) - .SetColumns(x => x.UpdateTime == UpdateTime) + .SetColumns(x => x.UpdateUserID == UserRegister.UserID) + .SetColumns(x => x.UpdateTime == DateTime.Now) + .SetColumns(x => x.UpdateUserName == UserRegister.UserName) .Where(x => x.ID == ID).ExecuteCommandHasChange(); } } @@ -48,14 +48,15 @@ /// <summary> /// 鏇存柊鍙俊搴� /// </summary> - public bool UpdateReliabilityStatus(long ID, int ReliabilityStatus, long UpdateUserID, DateTime UpdateTime) + public bool UpdateReliabilityStatus(long ID, int ReliabilityStatus) { using (SqlSugarClient db = new SqlSugarClient(ConnectionConfig)) { return db.Updateable<Entity.PumpCurve>() .SetColumns(x => x.ReliabilityStatus == ReliabilityStatus) - .SetColumns(x => x.UpdateUserID == UpdateUserID) - .SetColumns(x => x.UpdateTime == UpdateTime) + .SetColumns(x => x.UpdateUserID == UserRegister.UserID) + .SetColumns(x => x.UpdateTime == DateTime.Now) + .SetColumns(x => x.UpdateUserName == UserRegister.UserName) .Where(x => x.ID == ID).ExecuteCommandHasChange(); } } -- Gitblit v1.9.3