This commit is contained in:
chenbo 2023-09-19 10:51:41 +08:00
parent d1441a2f84
commit 516b6d9d9b

View File

@ -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();
}