Refundlog.php 710 B

12345678910111213141516171819202122232425262728293031323334
  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 Refundlog extends \We7Table {
  8. protected $tableName = 'core_refundlog';
  9. protected $primaryKey = 'id';
  10. protected $field = array(
  11. 'uniacid',
  12. 'refund_uniontid',
  13. 'reason',
  14. 'uniontid',
  15. 'fee',
  16. 'status',
  17. 'is_wish',
  18. );
  19. protected $default = array(
  20. 'uniacid' => '0',
  21. 'refund_uniontid' => '',
  22. 'reason' => '',
  23. 'uniontid' => '',
  24. 'fee' => '',
  25. 'status' => 0,
  26. 'is_wish' => 0,
  27. );
  28. public function getByUniontid($uniontid) {
  29. return $this->query->where('uniontid', $uniontid)->get();
  30. }
  31. }