RfRecord.php 678 B

12345678910111213141516171819202122232425262728293031323334
  1. <?php
  2. namespace catchAdmin\device\model;
  3. use \think\Model as Model;
  4. // use catchAdmin\permissions\model\DataRangScopeTrait;
  5. use think\facade\Db;
  6. class RfRecord extends Model
  7. {
  8. // use DataRangScopeTrait;
  9. protected $connection = 'oracle';
  10. // 表名
  11. public $name = 'dssc2.w_dw_rf_record';
  12. // 数据库字段映射
  13. public $field = array( );
  14. /**
  15. * 获取基站列表
  16. */
  17. public function getList()
  18. {
  19. $res = $this
  20. ->field('a.RF_FLAGID,a.RF_STAT,to_char(a.RF_DATE,\'yyyy-mm-dd hh24:mi:ss\') RF_DATE')
  21. ->paginate();
  22. // var_dump($this->getLastSql());
  23. return $res;
  24. }
  25. }