一对多写了mapper映射之后 根据条件查条数 可以根据主表的唯一id进行分组 在拿到它的count select count(0) over(aa.id),,id,name,age from tab1 aa left join tab2 bb on aa.id = bb.id group by aa.id
return from orderInfo in orderEntity.x_s_orderInfo join oState in orderEntity.x_s_oStatuInfo on orderInfo.oId equals oState.oId into t select new OrderInfoModel { orderInfo= orderInfo, // UserIDs = string.Join(",", t.Select(x => x.UserID.ToSt