group by修改

This commit is contained in:
2025-01-20 16:15:40 +08:00
parent 8bc94c1257
commit 6a9823bc64
2 changed files with 2 additions and 2 deletions

View File

@@ -69,13 +69,13 @@ namespace DOAN.Service.PBL
{
var response = Queryable()
.GroupBy(it=>it.Partnumber)
.OrderBy(it=>it.RackCode)
.Select(it=>new StoragelocationPartNumberGroupDto()
{
RackCode = SqlFunc.AggregateMax(it.RackCode),
Partnumber = SqlFunc.AggregateMax( it.Partnumber),
PackageNum = SqlFunc.AggregateSum(it.PackageNum) ?? 0
})
.OrderBy(it => it.RackCode)
.ToList();
return response;
}