SettleHistoryLogic.php 974 B

12345678910111213141516171819202122232425262728293031323334353637
  1. <?php
  2. /**
  3. * SettleHistoryLogic.php UTF-8
  4. * 提现审核记录
  5. *
  6. * @date : 2018/7/27 20:49
  7. *
  8. * @license 这不是一个自由软件,未经授权不许任何使用和传播。
  9. * @author : chenbingling <cbl@huosdk.com>
  10. * @version : HUOSDK 8.0
  11. */
  12. namespace huo\logic\finance;
  13. use huo\model\common\CommonModel;
  14. use huo\model\finance\SettleHistoryModel;
  15. class SettleHistoryLogic extends CommonModel {
  16. /***
  17. * 获取提现记录
  18. *
  19. * @param $map
  20. *
  21. * @return array|false|\PDOStatement|string|\think\Collection
  22. * @throws \think\db\exception\DataNotFoundException
  23. * @throws \think\db\exception\ModelNotFoundException
  24. * @throws \think\exception\DbException
  25. */
  26. public function getList($map) {
  27. $_data = (new SettleHistoryModel())->with('user')->where($map)->order('create_time desc')->select();
  28. if (is_object($_data)) {
  29. $_data = $_data->toArray();
  30. }
  31. return $_data;
  32. }
  33. }