利润统计增加 快递费
This commit is contained in:
1 parent
572c8e19f1
commit
60d96db5ee
7 files changed
+68
-19
No files matched your search
@@ -105,8 +105,8 @@ internal class ShopTest
|
||||
{
|
||||
get
|
||||
{
|
||||
DateTime startDate = DateTime.Parse("2026/10/5");
|
||||
DateTime endDate = DateTime.Parse("2026/10/14");
|
||||
DateTime startDate = DateTime.Parse("2026/10/1");
|
||||
DateTime endDate = DateTime.Parse("2026/10/31");
|
||||
|
||||
for (DateTime d = startDate; d <= endDate; d = d.AddDays(1))
|
||||
{
|
||||
@@ -134,22 +134,19 @@ internal class ShopTest
|
||||
|
||||
|
||||
[Test]
|
||||
[TestCase("2026/10/18")]
|
||||
[TestCase("2026/10/19")]
|
||||
[TestCase("2026/10/20")]
|
||||
[TestCase("2026/10/21")]
|
||||
public void GetShopSalesOrderTest(string dateString)
|
||||
[TestCaseSource(nameof(CaseArray))]
|
||||
public void GetShopSalesOrderTest(DateTime date)
|
||||
{
|
||||
var shopService = _container.Resolve<ShopService>();
|
||||
var shopIds =shopService.GetShopIds("15937791563");
|
||||
var shopIds =shopService.GetShopIds("18990991234");
|
||||
//shopIds = null;
|
||||
var shopStatsService = _container.Resolve<ShopRevenueStatisticsService>();
|
||||
DateTime date = DateTime.Parse("2026/10/17");
|
||||
//DateTime date = DateTime.Parse("2026/10/1");
|
||||
|
||||
if (!string.IsNullOrEmpty(dateString))
|
||||
{
|
||||
date = DateTime.Parse(dateString);
|
||||
}
|
||||
//if (!string.IsNullOrEmpty(dateString))
|
||||
//{
|
||||
// date = DateTime.Parse(dateString);
|
||||
//}
|
||||
Console.WriteLine($"开始:{date.ToLongDateString()}");
|
||||
try
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user