创建关联任务优化

usertest
嵇文龙 4 months ago
parent 236dc8f006
commit bd7a71b5a0

@ -281,6 +281,10 @@ namespace DS.WMS.Core.Op.Method.TaskInteraction
try
{
DataResult result = await ManagerService.InitTaskJob(info);
if (!result.Succeeded)
return result;
task = new BusinessTask
{
BusinessId = request.BusinessId,
@ -294,10 +298,6 @@ namespace DS.WMS.Core.Op.Method.TaskInteraction
task.NextType = GetNextType(task);
await TenantDb.Insertable(task).ExecuteCommandAsync();
DataResult result = await ManagerService.InitTaskJob(info);
if (!result.Succeeded)
return result;
//待审核,需创建工作流
if (request.TaskType == TaskBaseTypeEnum.WAIT_ORDER_AUDIT)
{
@ -426,7 +426,9 @@ namespace DS.WMS.Core.Op.Method.TaskInteraction
TaskType = task.NextType.Value,
RecvUserIdList = task.RecvUserIdArray
};
await CreateTaskAsync(req, false);
result = await CreateTaskAsync(req, false);
if (!result.Succeeded)
return DataResult<TaskBaseTypeEnum?>.Failed("创建下一关联任务时返回错误:" + result.Message, result.MultiCode);
}
}

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<NameOfLastUsedPublishProfile>D:\Code\ds8-solution-pro\ds-wms-service\DS.WMS.OpApi\Properties\PublishProfiles\FolderProfile.pubxml</NameOfLastUsedPublishProfile>
<NameOfLastUsedPublishProfile>D:\Source\Repos\DS8\ds-wms-service\DS.WMS.OpApi\Properties\PublishProfiles\FolderProfile.pubxml</NameOfLastUsedPublishProfile>
<Controller_SelectedScaffolderID>MvcControllerEmptyScaffolder</Controller_SelectedScaffolderID>
<Controller_SelectedScaffolderCategoryPath>root/Common/MVC/Controller</Controller_SelectedScaffolderCategoryPath>
</PropertyGroup>

Loading…
Cancel
Save