修改多批次抽屉加药写标签bug

This commit is contained in:
maqiao 2025-05-27 15:22:42 +08:00
parent d58b9967a9
commit 8a61c1017f
2 changed files with 2 additions and 2 deletions

View File

@ -398,7 +398,7 @@ namespace DM_Weight.ViewModels
}
// 更新屏显库存
//List<ChannelStock> singleChannels = record.FindAll(it => it.BoardType != 1);
List<ChannelStock> singleChannels = ChannelStocks.Where(it => it.BoardType != 1)
List<ChannelStock> singleChannels = ChannelStocks.Where(it => it.BoardType == 5&&(it.AddQuantity>0||it.Quantity>0))
.GroupBy(it => it.ColNo)
.Select(it =>
{

View File

@ -729,7 +729,7 @@ namespace DM_Weight.ViewModels
List<ChannelStock> q = SqlSugarHelper.Db.Queryable<ChannelStock>()
.Includes<DrugInfo>(cs => cs.DrugInfo)
.InnerJoin<ChannelList>((cs, cl) => cs.Chnguid == cl.Id && cs.DrugId == cl.DrugId)
.Where(cs => cs.DrawerType == 1&&cs.DrawerNo==11)
.Where(cs => cs.DrawerType == 1)
.Where(cs => cs.DrugId != null)
.Where(cs => cs.MachineId.Equals(ConfigurationManager.AppSettings["machineId"] ?? "DM1"))
.WhereIF(App.SingleModel, cs => cs.DrawerNo <= 2) //单人登录开前8个抽屉双人登录开后8个抽屉