From 062270e1fe824f4412aff3a64cb923bc38782d37 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B5=87=E6=96=87=E9=BE=99?= Date: Tue, 18 Jun 2024 09:57:46 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=B3=A8=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../DS.WMS.Core/Fee/Method/FeeApplicationAuditService.cs | 8 +++++--- .../Controllers/ClientFlowInstanceController.cs | 1 - 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/ds-wms-service/DS.WMS.Core/Fee/Method/FeeApplicationAuditService.cs b/ds-wms-service/DS.WMS.Core/Fee/Method/FeeApplicationAuditService.cs index 92e8a9d4..03944206 100644 --- a/ds-wms-service/DS.WMS.Core/Fee/Method/FeeApplicationAuditService.cs +++ b/ds-wms-service/DS.WMS.Core/Fee/Method/FeeApplicationAuditService.cs @@ -124,9 +124,11 @@ namespace DS.WMS.Core.Fee.Method /// public async Task> GetFeeBizAsync(long id, BusinessType businessType, long customerId) { - FeeBiz model = new FeeBiz(); - model.ReceivableTotal = (await TenantDb.Queryable().Where(x => x.CustomerId == customerId - && x.FeeType == FeeType.Receivable && x.FeeStatus == FeeStatus.AuditPassed).SumAsync(x => x.Amount)).GetValueOrDefault(); + FeeBiz model = new() + { + ReceivableTotal = (await TenantDb.Queryable().Where(x => x.CustomerId == customerId + && x.FeeType == FeeType.Receivable && x.FeeStatus == FeeStatus.AuditPassed).SumAsync(x => x.Amount)).GetValueOrDefault() + }; var fees = await TenantDb.Queryable().Where(x => x.BusinessId == id && x.BusinessType == businessType && x.FeeStatus == FeeStatus.AuditPassed) diff --git a/ds-wms-service/DS.WMS.MainApi/Controllers/ClientFlowInstanceController.cs b/ds-wms-service/DS.WMS.MainApi/Controllers/ClientFlowInstanceController.cs index 2b3a11b2..a8a2b91f 100644 --- a/ds-wms-service/DS.WMS.MainApi/Controllers/ClientFlowInstanceController.cs +++ b/ds-wms-service/DS.WMS.MainApi/Controllers/ClientFlowInstanceController.cs @@ -119,7 +119,6 @@ public class ClientFlowInstanceController : ApiController /// /// 业务ID /// 业务类型(可空) - /// 流程类型 /// [HttpGet, Route("GetFlowContent")] public DataResult> GetFlowContent([FromQuery] long businessId, [FromQuery] BusinessType? businessType)