CardRecord.php 738 B

12345678910111213141516171819202122232425262728293031323334353637
  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\Mc;
  7. class CardRecord extends \We7Table {
  8. protected $tableName = 'mc_card_record';
  9. protected $primaryKey = 'id';
  10. protected $field = array(
  11. 'uniacid',
  12. 'uid',
  13. 'type',
  14. 'model',
  15. 'fee',
  16. 'tag',
  17. 'note',
  18. 'remark',
  19. 'addtime',
  20. );
  21. protected $default = array(
  22. 'uniacid' => 0,
  23. 'uid' => 0,
  24. 'type' => '',
  25. 'model' => 1,
  26. 'fee' => 0,
  27. 'tag' => '',
  28. 'note' => '',
  29. 'remark' => '',
  30. 'addtime' => 0,
  31. );
  32. public function getByUid($uid, $uniacid) {
  33. return $this->query->where('uniacid', $uniacid)->where('uid', $uid)->get();
  34. }
  35. }