110,825
社区成员
![](https://csdnimg.cn/release/cmsfe/public/img/topic.427195d5.png)
![](https://csdnimg.cn/release/cmsfe/public/img/me.40a70ab0.png)
![](https://csdnimg.cn/release/cmsfe/public/img/task.87b52881.png)
![](https://csdnimg.cn/release/cmsfe/public/img/share-circle.3e0b7822.png)
from stg in YTStorageInfo
join ptb in YTPlaceToBarInfo
on stg.SidVch equals ptb.StorageSidVch
join lp in YTLockPlaceInfo
on ptb.StorageSidVch equals lp.FidVch
group new {stg,lp}
by new
{
ptb.PlaceBarVch,
ptb.GoodsBarVch,
ptb.TrayBarVch,
ptb.StorageSidVch
}
into tmp
select new
{
placeBarVch = tmp.Key.PlaceBarVch,
goodsBarVch = tmp.Key.GoodsBarVch,
trayBarVch = tmp.Key.TrayBarVch,
amount = tmp.Sum()//这里报错 实例参数: 无法从“System.Linq.IGrouping<AnonymousType#1,AnonymousType#2>”转换为“System.Linq.IQueryable<int>”
}