['project_change_visa_dataid', 'directory', 'unit_name', 'time', 'major', 'category', 'review_content', 'review_comments', 'reviewer', 'reviewer_id', 'declared_value', 'calculated_value', 'remark'], ]; } /** * @notes 获取列表 * @return array * @throws \think\db\exception\DataNotFoundException * @throws \think\db\exception\DbException * @throws \think\db\exception\ModelNotFoundException * @author likeadmin * @date 2024/02/23 10:27 */ public function lists(): array { return ProjectChangeVisaContent::where($this->searchWhere) ->field(['id', 'project_change_visa_dataid', 'directory', 'unit_name', 'time', 'major', 'category', 'review_content', 'review_comments', 'reviewer', 'reviewer_id', 'declared_value', 'calculated_value', 'remark']) ->limit($this->limitOffset, $this->limitLength) ->order(['id' => 'desc']) ->select() ->toArray(); } /** * @notes 获取数量 * @return int * @author likeadmin * @date 2024/02/23 10:27 */ public function count(): int { return ProjectChangeVisaContent::where($this->searchWhere)->count(); } }