This repository has been archived on 2024-07-11. You can view files and clone it, but cannot push or open issues or pull requests.
yoshop/source/application/store/model/bargain/TaskHelp.php

31 lines
695 B
PHP
Raw Normal View History

2020-04-25 22:20:29 +08:00
<?php
namespace app\store\model\bargain;
use app\common\model\bargain\TaskHelp as TaskHelpModel;
/**
* 砍价任务助力记录模型
* Class TaskHelp
* @package app\store\model\bargain
*/
class TaskHelp extends TaskHelpModel
{
/**
* 获取列表数据
* @return \think\Paginator
* @throws \think\exception\DbException
*/
public function getList($task_id)
{
// 砍价任务助力记录
$list = $this->with(['user'])
->where('task_id', '=', $task_id)
->order(['create_time' => 'desc'])
->paginate(15, false, [
'query' => \request()->request()
]);
return $list;
}
}