['num', 'project', 'project_num'], ]; } /** * @notes 获取列表 * @return array * @throws \think\db\exception\DataNotFoundException * @throws \think\db\exception\DbException * @throws \think\db\exception\ModelNotFoundException * @author likeadmin * @date 2024/02/23 11:06 */ public function lists(): array { return ProjectSurveySignature::with(['projectInfo']) ->where($this->searchWhere) ->limit($this->limitOffset, $this->limitLength) ->order(['id' => 'desc']) ->select() ->toArray(); } /** * @notes 获取数量 * @return int * @author likeadmin * @date 2024/02/23 11:06 */ public function count(): int { return ProjectSurveySignature::where($this->searchWhere)->count(); } public function setFileName(): string { return '项目踏勘会签'; } /** * @notes 导出字段 * @return string[] * @author 段誉 * @date 2022/11/24 16:17 */ public function setExcelFields(): array { return [ 'id' => 'id', 'num' => '单据编号', 'project_id' => '项目id', 'wt_unit' => '委托单位', 'jsdw' => '建设单位', 'bmfz' => '部门负责人', 'xmfz' => '项目负责人', 'riqi' => '踏勘日期', 'people' => '踏勘人员', 'djr' => '登记人', 'apptime' => '登记日期', 'content' => '踏勘内容', 'remark' => '核实结果', ]; } }