|
|
@ -65,21 +65,21 @@ public class TaskAllocationController : ApiController
|
|
|
|
var user = serviceProvider.GetService<IUser>();
|
|
|
|
var user = serviceProvider.GetService<IUser>();
|
|
|
|
|
|
|
|
|
|
|
|
var tenantDb = saasDbService.GetBizDbScopeById(user.TenantId);
|
|
|
|
var tenantDb = saasDbService.GetBizDbScopeById(user.TenantId);
|
|
|
|
var order = await tenantDb.Queryable<SeaExport>().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)
|
|
|
|
);
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
// 分配测试
|
|
|
|
// 分配测试
|
|
|
|
//var result = taskAllocationService.GetAllotUserBySeaExportId(new List<TaskBaseTypeEnum>() {
|
|
|
|
var result = await taskAllocationService.GetAllotUserBySeaExportId(new List<TaskBaseTypeEnum>() {
|
|
|
|
// TaskBaseTypeEnum.INVOICE_BILL_MAIL,
|
|
|
|
TaskBaseTypeEnum.INVOICE_BILL_MAIL,
|
|
|
|
// TaskBaseTypeEnum.NOT_LOADED,
|
|
|
|
TaskBaseTypeEnum.NOT_LOADED,
|
|
|
|
// TaskBaseTypeEnum.NOT_SHIPMENG,
|
|
|
|
TaskBaseTypeEnum.NOT_SHIPMENG,
|
|
|
|
//}, 1816649497120477184, dataContext);
|
|
|
|
}, 1816649497120477184, dataContext);
|
|
|
|
|
|
|
|
|
|
|
|
// 工作流节点测试
|
|
|
|
// 工作流节点测试
|
|
|
|
TaskFlowRuner runer = new TaskFlowRuner(tenantDb, serviceProvider);
|
|
|
|
//TaskFlowRuner runer = new TaskFlowRuner(tenantDb, serviceProvider);
|
|
|
|
//var result1 = await runer.GetWorkFlowNextConfig(dataContext, null); // 首位
|
|
|
|
//var result1 = await runer.GetWorkFlowNextConfig(dataContext, null); // 首位
|
|
|
|
//var result2 = await runer.GetWorkFlowNextConfig(dataContext, 20001); // 正常
|
|
|
|
//var result2 = await runer.GetWorkFlowNextConfig(dataContext, 20001); // 正常
|
|
|
|
//var result3 = await runer.GetWorkFlowNextConfig(dataContext, 20002); // 分支判断
|
|
|
|
//var result3 = await runer.GetWorkFlowNextConfig(dataContext, 20002); // 分支判断
|
|
|
|