income_pay.php 696 B

12345678910111213141516171819202122232425262728293031
  1. <?php
  2. Doo::loadCore('db/DooModel');
  3. /**
  4. * Description of newPHPClass
  5. *
  6. * @author zongheng
  7. */
  8. class IncomePay extends DooModel{
  9. public $id;
  10. public $uid;
  11. public $type;
  12. public $money;
  13. public $comefrom;
  14. public $description;
  15. public $addtime;
  16. public $_table = 'zh_income_pay';
  17. public $_primarykey = 'id';
  18. public $_fields = array('id', 'uid', 'type', 'money', 'comefrom', 'description', 'addtime');
  19. public function __construct() {
  20. parent::setupModel(__CLASS__);
  21. }
  22. public function get_listbyuid($uid,$limit){
  23. return $this->find(array('where' => 'uid='.$uid, 'desc' => 'addtime', 'limit' => $limit, 'asArray' => TRUE));
  24. }
  25. }