You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

hotel.php 516 B

3 years ago
1234567891011121314151617181920
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * User: Steven
  5. * Date: 2017/3/15
  6. * Time: 13:20
  7. *
  8. */
  9. class Model_hotel extends PhalApi_Model_NotORM
  10. {
  11. public function getHotelInfo()
  12. {
  13. //原生SQL
  14. /* $sql = 'select HOTEL_ID,HOTEL_NAME,HOTEL_ADDRESS fROM opera_hotel where CANCEL_FLAG=0';
  15. $rows = $this->getORM()->queryAll($sql, array());*/
  16. $rs = DI()->notorm->opera_hotel->select('hotel_id,hotel_name,hotel_address')->where('CANCEL_FLAG = ?', 0)->fetchAll();
  17. return $rs;
  18. }
  19. }