From 71042087c0593f399decec92681582cee69e5bdd Mon Sep 17 00:00:00 2001 From: zhangxiaofeng <1939543722@qq.com> Date: Tue, 13 Aug 2024 16:22:32 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=B7=E8=BF=90=E5=87=BA=E5=8F=A3=E8=AE=A2?= =?UTF-8?q?=E5=8D=95Id=E6=9F=A5=E8=AF=A2=E4=BB=BB=E5=8A=A1=E5=88=86?= =?UTF-8?q?=E9=85=8D=E7=9A=84=E4=BA=BA=E5=91=98=E5=88=97=E8=A1=A8=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../DS.WMS.Core/TaskPlat/Method/TaskAllocationService.cs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/ds-wms-service/DS.WMS.Core/TaskPlat/Method/TaskAllocationService.cs b/ds-wms-service/DS.WMS.Core/TaskPlat/Method/TaskAllocationService.cs index dda56e92..87cd1d7e 100644 --- a/ds-wms-service/DS.WMS.Core/TaskPlat/Method/TaskAllocationService.cs +++ b/ds-wms-service/DS.WMS.Core/TaskPlat/Method/TaskAllocationService.cs @@ -3,6 +3,7 @@ using DS.Module.Core.Condition; using DS.Module.Core.Data; using DS.Module.SqlSugar; using DS.Module.UserModule; +using DS.WMS.Core.Op.Dtos; using DS.WMS.Core.Op.Entity; using DS.WMS.Core.Sys.Interface; using DS.WMS.Core.Sys.Method; @@ -10,6 +11,7 @@ using DS.WMS.Core.TaskPlat.Dtos; using DS.WMS.Core.TaskPlat.Entity; using DS.WMS.Core.TaskPlat.Interface; using LanguageExt.Pipes; +using Mapster; using Microsoft.Extensions.Logging; using Newtonsoft.Json; using SqlSugar; @@ -273,7 +275,8 @@ namespace DS.WMS.Core.TaskPlat.Method var tenantDb = saasDbService.GetBizDbScopeById(user.TenantId); if (dataContext.ContainsKey(TaskFlowDataNameConst.Business)) { - order = dataContext.Get(TaskFlowDataNameConst.Business); + var orderDto = dataContext.Get(TaskFlowDataNameConst.Business); + order = orderDto.Adapt(); } else { @@ -403,7 +406,8 @@ namespace DS.WMS.Core.TaskPlat.Method var tenantDb = saasDbService.GetBizDbScopeById(user.TenantId); if (dataContext.ContainsKey(TaskFlowDataNameConst.Business)) { - order = dataContext.Get(TaskFlowDataNameConst.Business); + var orderDto = dataContext.Get(TaskFlowDataNameConst.Business); + order = orderDto.Adapt(); } else {