diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/Prices/PriceListAppService.cs b/code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/Prices/PriceListAppService.cs index 6097993a..f4206951 100644 --- a/code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/Prices/PriceListAppService.cs +++ b/code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/Prices/PriceListAppService.cs @@ -160,7 +160,7 @@ public class PriceListAppService : SettleAccountApplicationBase var result = new List(); if (priceList.Count <= 1) { - return priceList; // 只有一个或零个价格条目 + return result; // 只有一个或零个价格条目 } var dateGroups = priceList.GroupBy(t => t.Date); diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/Prices/PriceListAppServiceBJ.cs b/code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/Prices/PriceListAppServiceBJ.cs index 8dc2028f..44b57d66 100644 --- a/code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/Prices/PriceListAppServiceBJ.cs +++ b/code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/Prices/PriceListAppServiceBJ.cs @@ -144,7 +144,7 @@ public class PriceListAppServiceBJ : SettleAccountApplicationBase var result = new List(); if (priceList.Count <= 1) { - return priceList; // 只有一个或零个价格条目 + return result; // 只有一个或零个价格条目 } var dateGroups = priceList.GroupBy(t => t.Date);