点巡检 保养没子项目不生成

This commit is contained in:
2023-10-31 18:20:17 +08:00
parent ab1635cbe5
commit 615957e66d
2 changed files with 10 additions and 0 deletions

View File

@@ -119,6 +119,11 @@ namespace JNPF.TaskScheduler.Listener
});
}
if (spotInsRecordDs.Count<=0)
{
return;
}
var dbResult = db.Ado.UseTran(() =>
{
if (tobeCreateList != null && tobeCreateList.Count > 0)

View File

@@ -149,6 +149,11 @@ namespace JNPF.TaskScheduler.Listener
});
}
if (spotInsRecordDs.Count<=0)
{
return;
}
var dbResult = db.Ado.UseTran(() =>
{
if (tobeCreateList != null && tobeCreateList.Count > 0)