毛坯,抛光,一次合格仓库添加总零件计数,工单排程修改编号为字符串,仓库看板统计优化,产线数量除3计算

This commit is contained in:
2024-08-22 10:43:05 +08:00
parent 9084aca672
commit 0801e5e9ef
12 changed files with 91 additions and 2 deletions

View File

@@ -397,5 +397,14 @@ namespace ZR.Service.mes.wms
throw new Exception(e.Message);
}
}
// 获取仓库零件数量
public int GetPartNumber()
{
return Context
.Queryable<WmOneTimeInventory>()
.Where(it => it.Status == 1)
.Sum(it => it.Quantity) ?? 0;
}
}
}