去除静态变量Funs.DB

This commit is contained in:
2025-01-07 19:00:48 +08:00
parent 188974fadc
commit 2c1a328bc1
290 changed files with 1205 additions and 1242 deletions
+2 -3
View File
@@ -1,12 +1,11 @@
using System.Collections.Generic;
using System.Linq;
using Model;
namespace BLL
{
public class MonthDesignService
{
public static Model.SGGLDB db = Funs.DB;
/// <summary>
/// 获取月报设计变更情况列表
/// </summary>
@@ -15,7 +14,7 @@ namespace BLL
/// <returns></returns>
public static List<Model.Check_MonthDesign> getListData(string CheckMonthId)
{
return (from x in db.Check_MonthDesign
return (from x in Funs.DB.Check_MonthDesign
where x.CheckMonthId == CheckMonthId
select x).ToList();
}