This commit is contained in:
卢江海 2025-03-24 15:43:50 +08:00
commit 28e899ed46

View File

@ -258,7 +258,7 @@ namespace ZR.Service.mes.wms
.Where(it => it.ActionTime >= parm.StartTime) .Where(it => it.ActionTime >= parm.StartTime)
.ToList(); .ToList();
Context.Deleteable(delwmOneTimeRecords).ExecuteCommand(); Context.Deleteable(delwmOneTimeRecords).ExecuteCommand();
if (delwmOneTimeRecords.Any()) if (wmOneTimeRecords.Any())
{ {
Context.Insertable(wmOneTimeRecords).ExecuteCommand(); Context.Insertable(wmOneTimeRecords).ExecuteCommand();
} }