修改请领列表根据machine_id条件查询

This commit is contained in:
maqiao 2024-06-27 17:28:33 +08:00
parent 33dbcb9b6f
commit 1a33934c45
1 changed files with 1 additions and 1 deletions

View File

@ -143,7 +143,7 @@ namespace DM_Weight.ViewModels
CollectDrugLst = SqlSugarHelper.Db.Queryable<CollectDrug>()
.Includes<DrugPleaseClaim>(cd => cd.drugPleaseClaim)
.Includes<DrugInfo>(cd => cd.drugInfo)
.Where(cd => cd.MachineId.Equals(ConfigurationManager.AppSettings["department"] ?? "DM1"))
.Where(cd => cd.MachineId.Equals(ConfigurationManager.AppSettings["department"] ?? "DM3"))
.WhereIF(!String.IsNullOrEmpty(SearchValue) && SelectedItem.Code.Equals("DrugId"), (cd) => cd.drugInfo.DrugId.ToString() == SearchValue)
.WhereIF(!String.IsNullOrEmpty(SearchValue) && SelectedItem.Code.Equals("DrugName"), (cd) => cd.drugInfo.DrugName.Contains(SearchValue))
.WhereIF(!String.IsNullOrEmpty(SearchValue) && SelectedItem.Code.Equals("PyCode"), (cd) => cd.drugInfo.PyCode.Contains(SearchValue))