|
|
@ -296,7 +296,6 @@ namespace DS.WMS.Core.TaskPlat.Method
|
|
|
|
.WhereIF(info.Main.IsCheckExistsByTaskType, t => t.TASK_TYPE == info.Main.TaskType.ToString())
|
|
|
|
.WhereIF(info.Main.IsCheckExistsByTaskType, t => t.TASK_TYPE == info.Main.TaskType.ToString())
|
|
|
|
.OrderByDescending(a => a.Id)
|
|
|
|
.OrderByDescending(a => a.Id)
|
|
|
|
.FirstAsync();
|
|
|
|
.FirstAsync();
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// 只要任务最后一次处理任务的状态是已取消、已完成,就可以重入新的任务
|
|
|
|
// 只要任务最后一次处理任务的状态是已取消、已完成,就可以重入新的任务
|
|
|
@ -2843,17 +2842,23 @@ namespace DS.WMS.Core.TaskPlat.Method
|
|
|
|
var order = await tenantDb.Queryable<SeaExport>().Select<Core.Op.Dtos.SeaExportRes>().FirstAsync(x => x.Id == 1816649497120477184);
|
|
|
|
var order = await tenantDb.Queryable<SeaExport>().Select<Core.Op.Dtos.SeaExportRes>().FirstAsync(x => x.Id == 1816649497120477184);
|
|
|
|
TaskFlowDataContext dataContext = new(
|
|
|
|
TaskFlowDataContext dataContext = new(
|
|
|
|
(TaskFlowDataNameConst.Business, order)
|
|
|
|
(TaskFlowDataNameConst.Business, order)
|
|
|
|
|
|
|
|
//("hasCabin", "false")
|
|
|
|
);
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
TaskFlowRuner runer = new TaskFlowRuner(tenantDb, serviceProvider);
|
|
|
|
TaskFlowRuner runer = new TaskFlowRuner(tenantDb, serviceProvider);
|
|
|
|
var result1 = await runer.GetWorkFlowNextConfigByTaskType(TaskBaseTypeEnum.WORK_FLOW_MAIN, dataContext, null); // 首位
|
|
|
|
|
|
|
|
//var result2 = await runer.GetWorkFlowNextConfigByTaskType(TaskBaseTypeEnum.WORK_FLOW_MAIN, dataContext, 20001); // 正常
|
|
|
|
var result22 = await runer.GetWorkFlowNextConfigByTaskType(TaskBaseTypeEnum.WORK_FLOW_MAIN, dataContext, TaskBaseTypeEnum.WAIT_BOOKING); // 正常
|
|
|
|
//var result3 = await runer.GetWorkFlowNextConfigByTaskType(TaskBaseTypeEnum.WORK_FLOW_MAIN, dataContext, 20002); // 分支判断
|
|
|
|
break;
|
|
|
|
//var result4 = await runer.GetWorkFlowNextConfigByTaskType(TaskBaseTypeEnum.WORK_FLOW_MAIN, dataContext, 20003); // 分支结尾判断
|
|
|
|
}
|
|
|
|
//var result5 = await runer.GetWorkFlowNextConfigByTaskType(TaskBaseTypeEnum.WORK_FLOW_MAIN, dataContext, 20008); // 末位
|
|
|
|
|
|
|
|
|
|
|
|
// 结束BC任务并创建下一步任务测试
|
|
|
|
//var result12 = await runer.GetWorkFlowNextConfigByTaskType(TaskBaseTypeEnum.WORK_FLOW_MAIN, dataContext, null); // 首位
|
|
|
|
case 4:
|
|
|
|
//var result22 = await runer.GetWorkFlowNextConfigByTaskType(TaskBaseTypeEnum.WORK_FLOW_MAIN, dataContext, TaskBaseTypeEnum.WAIT_BOOKING); // 正常
|
|
|
|
{
|
|
|
|
|
|
|
|
//TaskFlowDataContext dataContext2 = new(
|
|
|
|
|
|
|
|
// (TaskFlowDataNameConst.BusinessId, 31232312)
|
|
|
|
|
|
|
|
//);
|
|
|
|
|
|
|
|
//TaskFlowRuner taskFlow = new TaskFlowRuner(tenantDb, serviceProvider);
|
|
|
|
|
|
|
|
//await taskFlow.Run(TaskBaseTypeEnum., taskId, dataContext);
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|