mahao 1 year ago
parent
commit
258f974431
  1. 2
      code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/Prices/PriceListAppService.cs
  2. 2
      code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/Prices/PriceListAppServiceBJ.cs

2
code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/Prices/PriceListAppService.cs

@ -160,7 +160,7 @@ public class PriceListAppService : SettleAccountApplicationBase<PriceList>
var result = new List<PriceList>();
if (priceList.Count <= 1)
{
return priceList; // 只有一个或零个价格条目
return result; // 只有一个或零个价格条目
}
var dateGroups = priceList.GroupBy(t => t.Date);

2
code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/Prices/PriceListAppServiceBJ.cs

@ -144,7 +144,7 @@ public class PriceListAppServiceBJ : SettleAccountApplicationBase<PriceListBJ>
var result = new List<PriceListBJ>();
if (priceList.Count <= 1)
{
return priceList; // 只有一个或零个价格条目
return result; // 只有一个或零个价格条目
}
var dateGroups = priceList.GroupBy(t => t.Date);

Loading…
Cancel
Save