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

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();
}