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