库存盘点页面

修改查询抽屉数,由原来ChannelStock改为从ChannelList表查询
This commit is contained in:
maqiao 2023-11-13 15:49:06 +08:00
parent d61d6e9c13
commit a9ce00460b
1 changed files with 1 additions and 1 deletions

View File

@ -266,7 +266,7 @@ namespace DM_Weight.ViewModels
public void FindDrawerCount()
{
int count = SqlSugarHelper.Db.Queryable<ChannelStock>().Where(cs => cs.DrawerType != 3)
int count = SqlSugarHelper.Db.Queryable<ChannelList>().Where(cs => cs.DrawerType != 3)
.Where(cs => cs.MachineId.Equals(ConfigurationManager.AppSettings["machineId"] ?? "DM1")).GroupBy(cs => cs.DrawerNo).Select(cs => SqlFunc.AggregateCount(cs.DrawerNo)).Count();
Is8Drawer = count < 9;
Is16Drawer = count >= 16;