Paylog.php 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  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\Core;
  7. class Paylog extends \We7Table {
  8. protected $tableName = 'core_paylog';
  9. protected $primaryKey = 'id';
  10. protected $field = array(
  11. 'type',
  12. 'uniacid',
  13. 'acid',
  14. 'openid',
  15. 'uniontid',
  16. 'tid',
  17. 'fee',
  18. 'status',
  19. 'module',
  20. 'tag',
  21. 'is_usecard',
  22. 'card_type',
  23. 'card_id',
  24. 'card_fee',
  25. 'encrypt_code',
  26. 'is_wish',
  27. 'coupon'
  28. );
  29. protected $default = array(
  30. 'type' => '',
  31. 'uniacid' => 0,
  32. 'acid' => 0,
  33. 'openid' => '',
  34. 'uniontid' => '',
  35. 'tid' => '',
  36. 'fee' => 0,
  37. 'status' => '',
  38. 'module' => '',
  39. 'tag' => '',
  40. 'is_usecard' => 0,
  41. 'card_type' => '',
  42. 'card_id' => '',
  43. 'card_fee' => '',
  44. 'encrypt_code' => '',
  45. 'is_wish' => 0,
  46. 'coupon' => ''
  47. );
  48. public function searchWithUniacid($uniacid)
  49. {
  50. return $this->query->where('uniacid', $uniacid);
  51. }
  52. public function searchWithModule($module)
  53. {
  54. return $this->query->where('module', $module);
  55. }
  56. public function searchWithTid($tid)
  57. {
  58. return $this->query->where('tid', $tid);
  59. }
  60. }