* @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; } }