This commit is contained in:
2025-03-24 15:34:38 +08:00
parent 63f161ee8b
commit d71e770907

View File

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