全局处理问题:public static Model.SGGLDB db = Funs.DB;

This commit is contained in:
2026-04-23 11:36:49 +08:00
parent 5a38880a14
commit 746cb57619
315 changed files with 641 additions and 449 deletions
@@ -8,7 +8,7 @@ namespace BLL
public static class InterFaceLogService
{
public static Model.SGGLDB db = Funs.DB;
public const string Type1 = "上报";
public const string Type2 = "下发";
@@ -25,6 +25,7 @@ namespace BLL
}
public static IQueryable<Model.InterFaceLog> GetInterFaceLogByModle(Model.InterFaceLog table)
{
Model.SGGLDB db = Funs.DB;
var q = from x in db.InterFaceLog
where
(string.IsNullOrEmpty(table.InterFaceLogId) || x.InterFaceLogId.Contains(table.InterFaceLogId)) &&
@@ -81,6 +82,7 @@ namespace BLL
public static Model.InterFaceLog GetInterFaceLogById(string InterFaceLogId)
{
Model.SGGLDB db = Funs.DB;
return db.InterFaceLog.FirstOrDefault(x => x.InterFaceLogId == InterFaceLogId);
}
@@ -142,7 +144,7 @@ namespace BLL
public static void UpdateInterFaceLog(Model.InterFaceLog newtable)
{
Model.SGGLDB db = Funs.DB;
Model.InterFaceLog table = db.InterFaceLog.FirstOrDefault(x => x.InterFaceLogId == newtable.InterFaceLogId);
if (table != null)
{