From 8363fb5ed1216db60c2df7d52ecb757ec316da5f Mon Sep 17 00:00:00 2001 From: shanj <18996038927@163.com> Date: Mon, 20 Nov 2023 10:43:20 +0800 Subject: [PATCH] 1 --- SiNan.Business/AggregationBusiness.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/SiNan.Business/AggregationBusiness.cs b/SiNan.Business/AggregationBusiness.cs index 278a089..73f2cb3 100644 --- a/SiNan.Business/AggregationBusiness.cs +++ b/SiNan.Business/AggregationBusiness.cs @@ -98,11 +98,10 @@ namespace SiNan.Business .ToList(); var i = 0; - var spuGroups = from s in spuIdList + var spuGroups = (from s in spuIdList let num = i++ group s by num / 10 into g - select g.ToArray(); //10个spu为一组 - + select g.ToArray()).ToList(); //10个spu为一组 var spuGroupCount = spuGroups.Count(); var spuGroupIndex = 0;