任务执行通过终止模块进行终止

usertest
zhangxiaofeng 3 months ago
parent 45a6d7d125
commit 73215b1ced

@ -226,6 +226,17 @@ namespace DS.WMS.Core.TaskPlat
dataContext.Set(paramItem.FieldName!, paramItem.FieldValue!);
}
if (executeConfig.ExecuteModuleId == 0)
{
flowLogDetail.ElapsedMillisecond = 0;
flowLogDetail.IsComplete = true;
flowLogDetail.ModuleId = 0;
flowLogDetail.ModuleName = "(终止模块)";
await tenantDb.CopyNew().Insertable(flowLogDetail).ExecuteCommandAsync();
continue;
}
var module = moduleList.FirstOrDefault(x => x.Id == executeConfig.ExecuteModuleId);
if (module == null)
{

Loading…
Cancel
Save