This commit is contained in:
mkm 2023-08-15 18:06:11 +08:00
parent ca23b081b9
commit f6761583c3

View File

@ -24,6 +24,9 @@ class TaskController extends BaseApiController{
$end=$time+86399;
$where[]=['start_time','between',[$time,$end]];
}
if(isset($param['status']) && $param['status']>0){
$where[]=['status','=',$param['status']];
}
$res=Task::where($where)
->field(['id', 'title','money','template_id','director_uid', 'company_id', 'start_time', 'end_time', 'director_uid', 'type', 'status', 'content','extend'])
->page($page,25)