public static List <BaseParkinfo> QueryPage(string villageId, int pageIndex, int pageSize, out int totalCount) { IParking factory = ParkingFactory.GetFactory(); List <BaseParkinfo> parkings = factory.QueryPage(villageId, pageIndex, pageSize, out totalCount); IParkArea factoryArea = ParkAreaFactory.GetFactory(); foreach (var item in parkings) { item.CarBitNum = factoryArea.GetCarBitNumByParkingId(item.PKID); } return(parkings); }