审批
This commit is contained in:
parent
d1441a2f84
commit
516b6d9d9b
@ -18,7 +18,7 @@ class ApproveLists extends BaseApiDataLists implements ListsSearchInterface
|
||||
public function setSearch(): array
|
||||
{
|
||||
$param = $this->request->param();
|
||||
if ($param['check_status'] == 0) {
|
||||
if (isset($param['check_status']) && $param['check_status'] == 0) {
|
||||
return [
|
||||
'=' =>['type']
|
||||
];
|
||||
@ -50,6 +50,9 @@ class ApproveLists extends BaseApiDataLists implements ListsSearchInterface
|
||||
->where($this->queryWhere())
|
||||
->limit($this->limitOffset, $this->limitLength)
|
||||
->order(['id' => 'desc'])
|
||||
->withAttr('extend',function ($value, $data) {
|
||||
return json_decode($data['extend'], true);
|
||||
})
|
||||
->select()
|
||||
->toArray();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user