From 72e256cc57dddeff81e243adf8e7f600230d523f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B5=87=E6=96=87=E9=BE=99?= Date: Tue, 29 Oct 2024 09:51:02 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A9=E6=B6=A6=E6=A0=B8=E7=AE=97=E5=8D=95?= =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=AD=97=E6=AE=B5=E5=8F=96=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../DS.WMS.Core/Fee/Dtos/Report/ProfitAccounting.cs | 2 +- .../Fee/Method/ReportProviders/ProfitAccountingReport.cs | 7 +------ .../DS.WMS.Core/TaskInteraction/Method/TaskService.cs | 6 +++--- 3 files changed, 5 insertions(+), 10 deletions(-) diff --git a/ds-wms-service/DS.WMS.Core/Fee/Dtos/Report/ProfitAccounting.cs b/ds-wms-service/DS.WMS.Core/Fee/Dtos/Report/ProfitAccounting.cs index 206dd7fc..6277a018 100644 --- a/ds-wms-service/DS.WMS.Core/Fee/Dtos/Report/ProfitAccounting.cs +++ b/ds-wms-service/DS.WMS.Core/Fee/Dtos/Report/ProfitAccounting.cs @@ -11,7 +11,7 @@ namespace DS.WMS.Core.Fee.Dtos.Report /// /// 客户编号 /// - public string CustomerCode { get; set; } + public string CustomerNum { get; set; } /// /// 业务编号 diff --git a/ds-wms-service/DS.WMS.Core/Fee/Method/ReportProviders/ProfitAccountingReport.cs b/ds-wms-service/DS.WMS.Core/Fee/Method/ReportProviders/ProfitAccountingReport.cs index 06bd46c8..ab6fae58 100644 --- a/ds-wms-service/DS.WMS.Core/Fee/Method/ReportProviders/ProfitAccountingReport.cs +++ b/ds-wms-service/DS.WMS.Core/Fee/Method/ReportProviders/ProfitAccountingReport.cs @@ -3,11 +3,9 @@ using DS.WMS.Core.Fee.Dtos; using DS.WMS.Core.Fee.Dtos.Report; using DS.WMS.Core.Fee.Entity; using DS.WMS.Core.Fee.Interface; -using DS.WMS.Core.Info.Entity; using DS.WMS.Core.Op.Entity; using DS.WMS.Core.TaskInteraction.Dtos; using Masuit.Tools.Systems; -using SqlSugar; namespace DS.WMS.Core.Fee.Method.ReportProviders { @@ -25,12 +23,9 @@ namespace DS.WMS.Core.Fee.Method.ReportProviders { case BusinessType.OceanShippingExport: form = await context.TenantDb.Queryable().Where(s => s.Id == context.BusinessId) - .LeftJoin((s, c) => s.CustomerId == c.Id) - .Select((s, c) => new ProfitAccounting + .Select(s => new ProfitAccounting { - CustomerCode = c.CodeName, ETDValue = s.ETD, - Sale = s.Sale, Operator = s.OperatorName, CustomerService = s.CustomerServiceName, Doc = s.DocName, diff --git a/ds-wms-service/DS.WMS.Core/TaskInteraction/Method/TaskService.cs b/ds-wms-service/DS.WMS.Core/TaskInteraction/Method/TaskService.cs index 2def8943..cd929920 100644 --- a/ds-wms-service/DS.WMS.Core/TaskInteraction/Method/TaskService.cs +++ b/ds-wms-service/DS.WMS.Core/TaskInteraction/Method/TaskService.cs @@ -594,7 +594,7 @@ namespace DS.WMS.Core.TaskInteraction.Method DataResult result; if (!FeeTypes.Contains(request.TaskType)) { - result = await ManagerService.SetTaskStatusWithBsno(request.BusinessId, request.TaskType, request.TaskStatus, DateTime.Now, request.TaskDesc); + result = await ManagerService.SetTaskStatusWithBsno(request.BusinessId, request.TaskType, request.TaskStatus, DateTime.Now, false, request.TaskDesc); if (!result.Succeeded) return DataResult.Failed(result.Message, result.MultiCode); @@ -970,7 +970,7 @@ namespace DS.WMS.Core.TaskInteraction.Method } else { - result = await ManagerService.SetTaskStatusWithBsno(request.BusinessId, request.TaskType, TaskStatusEnum.Cancel, dt); + result = await ManagerService.SetTaskStatusWithBsno(request.BusinessId, request.TaskType, TaskStatusEnum.Cancel, dt, false); if (!result.Succeeded) return result; } @@ -1106,7 +1106,7 @@ namespace DS.WMS.Core.TaskInteraction.Method if (relativeTasks.All(x => x.TaskStatus == TaskStatusEnum.Complete)) { var userIdList = tasks.Where(x => relativeFeeIds.Contains(x.BusinessId)).SelectMany(x => x.RecvUserIdArray).Distinct().ToList(); - result = await ManagerService.SetTaskStatusWithBsno(biz.Key.BusinessId, request.TaskType, TaskStatusEnum.Complete, DateTime.Now, userIdList: userIdList); + result = await ManagerService.SetTaskStatusWithBsno(biz.Key.BusinessId, request.TaskType, TaskStatusEnum.Complete, DateTime.Now, false, userIdList: userIdList); if (!result.Succeeded) return result; }