<?php
/**
 * SettleHistoryLogic.php  UTF-8
 * 提现审核记录
 *
 * @date    : 2018/7/27 20:49
 *
 * @license 这不是一个自由软件,未经授权不许任何使用和传播。
 * @author  : chenbingling <cbl@huosdk.com>
 * @version : HUOSDK 8.0
 */

namespace huo\logic\finance;

use huo\model\common\CommonModel;
use huo\model\finance\SettleHistoryModel;

class SettleHistoryLogic extends CommonModel {
    /***
     * 获取提现记录
     *
     * @param $map
     *
     * @return array|false|\PDOStatement|string|\think\Collection
     * @throws \think\db\exception\DataNotFoundException
     * @throws \think\db\exception\ModelNotFoundException
     * @throws \think\exception\DbException
     */
    public function getList($map) {
        $_data = (new SettleHistoryModel())->with('user')->where($map)->order('create_time desc')->select();
        if (is_object($_data)) {
            $_data = $_data->toArray();
        }

        return $_data;
    }
}