更新
This commit is contained in:
parent
ca23b081b9
commit
f6761583c3
@ -24,6 +24,9 @@ class TaskController extends BaseApiController{
|
|||||||
$end=$time+86399;
|
$end=$time+86399;
|
||||||
$where[]=['start_time','between',[$time,$end]];
|
$where[]=['start_time','between',[$time,$end]];
|
||||||
}
|
}
|
||||||
|
if(isset($param['status']) && $param['status']>0){
|
||||||
|
$where[]=['status','=',$param['status']];
|
||||||
|
}
|
||||||
$res=Task::where($where)
|
$res=Task::where($where)
|
||||||
->field(['id', 'title','money','template_id','director_uid', 'company_id', 'start_time', 'end_time', 'director_uid', 'type', 'status', 'content','extend'])
|
->field(['id', 'title','money','template_id','director_uid', 'company_id', 'start_time', 'end_time', 'director_uid', 'type', 'status', 'content','extend'])
|
||||||
->page($page,25)
|
->page($page,25)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user