From 78f801a9af9fb27d80c88339dc8119a1386ea160 Mon Sep 17 00:00:00 2001
From: shanj <18996038927@163.com>
Date: Mon, 18 Apr 2022 02:19:37 +0800
Subject: [PATCH] =?UTF-8?q?=E6=98=9F=E8=B1=A1=E6=8E=A5=E5=8F=A3?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../Statistics/StatisticsBusiness.cs | 6 ++++++
.../Dto/Response/Order/XingXinagSearchResponse.cs | 15 +++++++++++++++
2 files changed, 21 insertions(+)
diff --git a/BBWY.Server.Business/Statistics/StatisticsBusiness.cs b/BBWY.Server.Business/Statistics/StatisticsBusiness.cs
index 7550421b..a4d27314 100644
--- a/BBWY.Server.Business/Statistics/StatisticsBusiness.cs
+++ b/BBWY.Server.Business/Statistics/StatisticsBusiness.cs
@@ -89,6 +89,12 @@ namespace BBWY.Server.Business
list.Add(xxRespose);
}
xxRespose.Profit += profit;
+ if (order.StorageType == Enums.StorageType.SD)
+ {
+ xxRespose.SDOrderCount++;
+ xxRespose.SDOrderAmount += procutAmount;
+ xxRespose.SDOrderCost += purchaseAmount + deliveryFreight + commissionAmount;
+ }
}
}
diff --git a/BBWY.Server.Model/Dto/Response/Order/XingXinagSearchResponse.cs b/BBWY.Server.Model/Dto/Response/Order/XingXinagSearchResponse.cs
index d803141d..34cf9afb 100644
--- a/BBWY.Server.Model/Dto/Response/Order/XingXinagSearchResponse.cs
+++ b/BBWY.Server.Model/Dto/Response/Order/XingXinagSearchResponse.cs
@@ -7,5 +7,20 @@
//public decimal TotalCost { get; set; }
public decimal Profit { get; set; }
+
+ ///
+ /// 刷单单量
+ ///
+ public decimal SDOrderCount { get; set; }
+
+ ///
+ /// 刷单成本
+ ///
+ public decimal SDOrderCost { get; set; }
+
+ ///
+ /// 刷单成交额
+ ///
+ public decimal SDOrderAmount { get; set; }
}
}