From bb594c19b0e60214a103215efcd4a5d81f77c611 Mon Sep 17 00:00:00 2001 From: nodyang Date: Wed, 25 Oct 2023 16:38:52 +0800 Subject: [PATCH] =?UTF-8?q?StockMaterrialDbHelp=20=E6=94=B9=E6=88=90?= =?UTF-8?q?=E9=9D=99=E6=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../AutoControl/DB/DeviceMaterrial.cs | 4 ++-- .../AutoControl/DB/StockMaterrialDBHelp.cs | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/AutoControl/DB/DeviceMaterrial.cs b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/AutoControl/DB/DeviceMaterrial.cs index d2b868e..f321192 100644 --- a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/AutoControl/DB/DeviceMaterrial.cs +++ b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/AutoControl/DB/DeviceMaterrial.cs @@ -35,7 +35,7 @@ namespace Mesnac.Action.ChemicalWeighing.AutoControl.DB { - public void Save(List materrials) + public static void Save(List materrials) { var deviceMaterrial = materrials.First(); @@ -47,7 +47,7 @@ namespace Mesnac.Action.ChemicalWeighing.AutoControl.DB } - public List GetByTypeId(int type, int deviceId) + public static List GetByTypeId(int type, int deviceId) { return FreeSqlUnit.Instance.Select() .Where(x => x.Type == type && x.DeviceId == deviceId) diff --git a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/AutoControl/DB/StockMaterrialDBHelp.cs b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/AutoControl/DB/StockMaterrialDBHelp.cs index 1b4b57b..5767f26 100644 --- a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/AutoControl/DB/StockMaterrialDBHelp.cs +++ b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/AutoControl/DB/StockMaterrialDBHelp.cs @@ -15,7 +15,7 @@ namespace Mesnac.Action.ChemicalWeighing.AutoControl.DB /// 获取干混机物料 /// /// - public List GetDryerMaterrial() + public static List GetDryerMaterrial() { var list = GetStockMaterrial(1); list.RemoveAll(x => x.Id == 5); @@ -27,7 +27,7 @@ namespace Mesnac.Action.ChemicalWeighing.AutoControl.DB /// 获取糊化机物料 /// /// - public List GetSiloMaterrial() + public static List GetSiloMaterrial() { var list1 = GetStockMaterrial(1); list1 = list1.Where(x => x.Id == 5 || x.Id == 6).ToList(); @@ -40,7 +40,7 @@ namespace Mesnac.Action.ChemicalWeighing.AutoControl.DB /// /// - public int GetCodeById(int id) + public static int GetCodeById(int id) { string sql = $"select Code from lj_stock_material where Id={id}"; var dataTable = DBHelp.GetTable(sql); @@ -50,7 +50,7 @@ namespace Mesnac.Action.ChemicalWeighing.AutoControl.DB - private List GetStockMaterrial(int mtypId) + private static List GetStockMaterrial(int mtypId) { string sql = "select Id, Code, StockName, MTypeId, MTypeName, MId, MName, Remark from lj_stock_material";