['approve_id'], ]; } /** * @notes 获取审批步骤列表 * @return array * @throws \think\db\exception\DataNotFoundException * @throws \think\db\exception\DbException * @throws \think\db\exception\ModelNotFoundException * @author likeadmin * @date 2024/02/01 11:26 */ public function lists(): array { return FlowStep::where($this->searchWhere) ->field(['id', 'approve_id', 'flow_name', 'flow_step', 'flow_user', 'sort']) ->limit($this->limitOffset, $this->limitLength) ->order(['id' => 'desc']) ->select() ->toArray(); } /** * @notes 获取审批步骤数量 * @return int * @author likeadmin * @date 2024/02/01 11:26 */ public function count(): int { return FlowStep::where($this->searchWhere)->count(); } }