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