Account_bank.php 652 B

12345678910111213141516171819202122232425262728293031
  1. <?php
  2. /**
  3. *------Create thems Model------
  4. *------SCWPHP Version 1.0.0------
  5. *------Dev Model Jions------
  6. *------Create Time 2017-06-12 02:45:54------
  7. */
  8. namespace App\Commons\Model;
  9. use \System\Model;
  10. class Account_bank extends Model {
  11. protected $table = 'account_bank';
  12. /**
  13. * 银行卡查询
  14. *
  15. * @access public
  16. * @param mixed $select 查询字段
  17. * @param mixed $where 查询条件
  18. * @return array JsonString
  19. */
  20. public function bankCard ($select, $where) {
  21. $result = $this
  22. -> select($select)
  23. -> where($where)
  24. -> first();
  25. return $result;
  26. }
  27. }