diff --git a/application/admin/dao/CfHotelInfoDao.php b/application/admin/dao/CfHotelInfoDao.php index 93bfa90..190f42e 100644 --- a/application/admin/dao/CfHotelInfoDao.php +++ b/application/admin/dao/CfHotelInfoDao.php @@ -72,6 +72,9 @@ class CfHotelInfoDao if (!empty($param['city'])) { $where["city"] = $param['city']; } + if (!empty($param['id'])) { + $where['id'] = $param['id']; + } $offset = ($param['pageNum'] - 1) * $param['pageSize']; $model = new CfHotelInfo(); $total = $model->where($where)->count(); diff --git a/application/admin/view/cf_hotel_info/index.html b/application/admin/view/cf_hotel_info/index.html index 36a9851..df2352d 100755 --- a/application/admin/view/cf_hotel_info/index.html +++ b/application/admin/view/cf_hotel_info/index.html @@ -9,6 +9,8 @@