/// <summary> /// 获取分销明细列表(忽略分页) /// </summary> /// <param name="query"></param> /// <param name="isShopName">是否填充商铺名称</param> /// <returns></returns> public static List <BrokerageProduct> GetBrokerageProductAll(BrokerageProductQuery query, bool isShopName = false) { var data = Service.GetBrokerageProductAll(query); if (isShopName) { //填充 门店名 var shops = GetService <IShopService>().GetShops(data.Select(p => p.ShopId)); data.ForEach(item => { item.ShopName = shops.FirstOrDefault(p => p.Id == item.ShopId)?.ShopName ?? string.Empty; }); } return(Service.GetBrokerageProductAll(query)); }
public static QueryPageModel <BrokerageProduct> GetBrokerageProduct(BrokerageProductQuery query) { return(Service.GetBrokerageProduct(query)); }