This commit is contained in:
2024-10-28 18:08:56 +08:00
parent 58994f4d7a
commit 08b25e0633
4 changed files with 226 additions and 10 deletions

View File

@@ -487,11 +487,16 @@ namespace ZR.Service.mes.wms
try
{
// 盘点时间
DateTime checkTime = new(2024, 10, 20, 0, 0, 0);
DateTime? checkTime = Context
.Queryable<WmOneTimeInventory>()
.Where(it => it.Status == 1)
.Select(it => it.CreatedTime)
.First() ?? new DateTime(2024, 10, 19, 0, 0, 0);
// DateTime
CommonFQCService commonFQCService = new();
// 获取报表数据
// 一次合格计算后库存 = 盘点库存 + 产线合格 + 抛光合格 - gp12投入 - 后道直接出库
return commonFQCService.GetBatchOneTimePartRealStock(partnumbers, checkTime);
return commonFQCService.GetBatchOneTimePartRealStock(partnumbers, checkTime.Value);
}
catch (Exception e)
{