Account.php 873 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <?php
  2. /**
  3. * [WeEngine System] Copyright (c) 2014 WE7.CC
  4. * WeEngine is NOT a free software, it under the license terms, visited http://www.we7.cc/ for more details.
  5. */
  6. namespace We7\Table\Uni;
  7. class Account extends \We7Table {
  8. protected $tableName = 'uni_account';
  9. protected $primaryKey = 'uniacid';
  10. protected $field = array(
  11. 'groupid',
  12. 'default_acid',
  13. 'name',
  14. 'description',
  15. 'rank',
  16. 'createtime',
  17. 'title_initial',
  18. 'create_uid',
  19. 'logo',
  20. 'qrcode'
  21. );
  22. protected $default = array(
  23. 'groupid' => '0',
  24. 'default_acid' => '0',
  25. 'name' => '',
  26. 'description' => '',
  27. 'rank' => '0',
  28. 'createtime' => '',
  29. 'title_initial' => '',
  30. 'create_uid' => '0',
  31. 'logo' => '',
  32. 'qrcode' => ''
  33. );
  34. public function searchWithAccount() {
  35. return $this->query->from($this->tableName, 'a')
  36. ->leftjoin('account', 'b')
  37. ->on('a.uniacid', 'b.uniacid');
  38. }
  39. }