/// <summary> /// 分页查询门店 /// </summary> /// <param name="query"></param> /// <returns></returns> public static QueryPageModel <ShopBranch> GetShopBranchs(ShopBranchQuery query) { var shopBranchInfos = _shopBranchService.GetShopBranchs(query); QueryPageModel <ShopBranch> shopBranchs = new QueryPageModel <ShopBranch> { Models = shopBranchInfos.Models.Select(e => new ShopBranch { AddressDetail = e.AddressDetail, AddressFullName = RegionApplication.GetFullName(e.AddressId, CommonConst.ADDRESS_PATH_SPLIT) + CommonConst.ADDRESS_PATH_SPLIT + e.AddressDetail, AddressId = e.AddressId, ContactPhone = e.ContactPhone, ContactUser = e.ContactUser, Id = e.Id, ShopBranchName = e.ShopBranchName, ShopId = e.ShopId, Status = e.Status }).ToList(), Total = shopBranchInfos.Total }; return(shopBranchs); }