['process_step_no'], ]; } /** * @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:51 */ public function lists(): array { return BuildProcessSettings::where($this->searchWhere) ->field(['id', 'division_id', 'process_step_no', 'process_step', 'annex', 'quality_control_points']) ->limit($this->limitOffset, $this->limitLength) ->order(['id' => 'desc']) ->select()->each(function($item){ $division = BuildDivision::where('id',$item['division_id'])->findOrEmpty(); $item['division_engineering'] = $division['division_engineering']; $item['sub_division_engineering'] = $division['sub_division_engineering']; $item['subentry_engineering'] = $division['subentry_engineering']; $item['subentry_engineering_code'] = $division['subentry_engineering_code']; return $item; }) ->toArray(); } /** * @notes 获取施工工序设置数量 * @return int * @author likeadmin * @date 2023/12/22 09:51 */ public function count(): int { return BuildProcessSettings::where($this->searchWhere)->count(); } }