['division_engineering', 'sub_division_engineering', 'subentry_engineering', 'subentry_engineering_code'], ]; } /** * @notes 获取分部分项划分列表 * @return array * @throws \think\db\exception\DataNotFoundException * @throws \think\db\exception\DbException * @throws \think\db\exception\ModelNotFoundException * @author likeadmin * @date 2023/12/22 09:17 */ public function lists(): array { return BuildDivision::where($this->searchWhere) ->field(['id', 'division_engineering', 'sub_division_engineering', 'subentry_engineering', 'subentry_engineering_code']) ->limit($this->limitOffset, $this->limitLength) ->order(['id' => 'desc']) ->select() ->toArray(); } /** * @notes 获取分部分项划分数量 * @return int * @author likeadmin * @date 2023/12/22 09:17 */ public function count(): int { return BuildDivision::where($this->searchWhere)->count(); } }