From 8d6c4ebb84ff0aa66f8e590a0902c4064f634b71 Mon Sep 17 00:00:00 2001 From: chfei Date: Wed, 11 Nov 2026 18:45:34 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A9=E6=B6=A6=E7=BB=9F=E8=AE=A1=20?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0=20=E7=B1=BB=E5=9E=8B=2039=EF=BC=8C40?= =?UTF-8?q?=EF=BC=8C41?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- KJD_WebService/Services/Shops/ShopRevenueStatisticsService.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/KJD_WebService/Services/Shops/ShopRevenueStatisticsService.cs b/KJD_WebService/Services/Shops/ShopRevenueStatisticsService.cs index 4b0214d..b1629a2 100644 --- a/KJD_WebService/Services/Shops/ShopRevenueStatisticsService.cs +++ b/KJD_WebService/Services/Shops/ShopRevenueStatisticsService.cs @@ -678,7 +678,7 @@ public class ShopRevenueStatisticsService : ITransientDependency /// private void FillPackageAmount(List orders) { - int[] types = { 20, 23, 24, 26, 28, 38, 31, 32, 33, 35, 36, 37 }; + int[] types = { 20, 23, 24, 26, 28, 38, 31, 32, 33, 35, 36, 37, 39, 40, 41 }; var amounts = orders.Select(o => o.OrderId).Distinct().ToDictionary(id => id, id => 0m); foreach (var batch in Batch(amounts.Keys.ToList(), BatchSize)) { @@ -695,7 +695,7 @@ public class ShopRevenueStatisticsService : ITransientDependency var matches = Regex.Matches(payment.Remark, @"[A-Za-z0-9_-]+").Cast() .Select(m => m.Value).Where(ids.Contains).Distinct(); var amount = payment.Amount ?? 0m; - if (payment.Type == 23 || payment.Type == 32 || payment.Type == 38 || payment.Type == 36) + if (payment.Type == 23 || payment.Type == 32 || payment.Type == 38 || payment.Type == 36 || payment.Type == 40) amount = -amount; foreach (var id in matches) amounts[id] += amount;