## **[查询导出配置信息](http://localhost:82/com_weaver_ebuilder_form_view_list_controller_app_batch_RuntimeExpImpController.html#)**

**请求URL**

`/api/ebuilder/form/batch/getExpFilenameInfo` **GET**

**请求参数** **application/x-www-form-urlencoded**

| 参数名 | 类型 | 必须 | 描述 |
| --- | --- | --- | --- |
| objId | long | 否 | EB表单ID |

**返回结果**

```json
{
	"code":"int",
	"msg":"string",
	"status":"boolean",
	"data":{
		"impExpPermissions":[{
		}],//导入导出设置-权限设置
		"objId":"long //表单id",
		"defaultListId":"long 默认列表视图ID",
		"layoutMap":{},//导入导出设置-权限设置（布局集合）
		"customExpStyle":{},//导入导出设置-excel样式设置
		"expFilenameEnable":"boolean //是否启用自定义导出文件名",
		"enableImpTemplate":"int //是否启用导入模板",
		"expFilename":"string //自定义导出文件名",
		"customFieldStateChange":"int",
		"exportDetails":"int //导出数据详情",
		"enableImportCsv":"boolean //开启导入csv",
		"exportFolderAndZip":{
			"enableExportDataFile":"boolean //开启导出数据中的附件",
			"objId":"long //表单id",
			"folderName":"string //文件夹名称"
		},//导出数据中的附件
		"exportDataFileFields":{
			"fieldIds":"string[] //字段id",
			"objId":"long //表单id"
		},//导出数据中的附件
		"showExportAttachment":"boolean //开启导出表单数据中的附件(总开关)",
		"importAdviceBeanName":"string //导入增强类名称",
		"exportTemplateFieldId":"long //excel导出模板",
		"exportTemplateType":"string //excel导出模板类型{@link com.weaver.ebuilder.form.core.dao.batch.enums.ExportTemplateTypeEnum}",
		"exportTemplateFieldObj":{},
		"importTemplateRequired":"boolean //导入模板开启必填统一控制",
		"allowCustomImportTemplate":"boolean //允许用户自定义导入模板"
	},
	"isFail":"boolean"
}
```

## **[查询用户导出个性化配置](http://localhost:82/com_weaver_ebuilder_form_view_list_controller_app_batch_RuntimeExpImpController.html#)**

**请求URL**

`/api/ebuilder/form/batch/getListFields/{listId}` **GET**

**请求参数** **url param**

| 参数名 | 类型 | 必须 | 描述 |
| --- | --- | --- | --- |
| `listId` | long | 是 | EB表单ID |

**返回结果**

```json
{
	"code": "int",
	"msg": "string",
	"status": "boolean",
	"data": {
		"fieldRange": "string 导出字段类型" ,// 当前显示:current, 全部:all,自定义:checked
		"listShowFields":[],//当前表格显示列字段id
		"pc":[]//当前表单字段信息
	},
	"isFail": "boolean"
}
```

## **[导出数据接口](http://localhost:82/com_weaver_ebuilder_form_view_list_controller_app_batch_RuntimeExpImpController.html#)**

**请求URL**

`/api/ebuilder/form/batch/v2/getExportDatas` **POST**

**请求体** **application/json**

```json
{
	"password":"string //导出密码",
	"expFilename":"string //导出文件名",
	"exportExcelList":"boolean //是否导出excel数据列表",
	"exportExcelInfo":{
		"dataRange":"string //导出数据范围",
		"selectDatas":"string //导出数据id",
		"fieldRange":"string //导出字段范围",
		"fields":"string //导出字段id",
		"hasListGroup":"boolean //是否分组导出",
		"groupFieldId":"string //分组导出字段id",
		"exportCount":"long //当前数据量",
		"enableDateFormat":"boolean //是否格式化日期",
		"customTemplate":"boolean //是否自定义模板",
		"templateFileId":"long //模板文件id"
	},
	"exportWord":"boolean //是否导出word详情",
	"wordLayout":{
		"id":"string //id",
		"name":"string //名字"
	},
	"exportExcel":"boolean //是否导出excel详情",
	"excelLayout":{
		"id":"string //id",
		"name":"string //名字"
	},
	"exportHtml":"boolean //是否导出html详情",
	"linkedFieldName":"string //链接html字段名称",
	"exportPdf":"boolean //是否导出html详情",
	"pageId":"long",
	"compId":"string",
	"filter":"string",
	"compUrlParams":"string",
	"merge":"boolean",
	"exportDataAttachment":"boolean //是否导出表单内附件",
	"customParams":{},
	"isNlist":"boolean //是否eb列表组件",
	"listId":"long //表格id",
	"searchParams":{}//表格搜索参数
}
```

**返回结果**

```json
{
	"code":"int",
	"msg":"string",
	"status":"boolean",
	"data":{
		"bizId":"string",
		"batchTaskId":"string"
	},
	"isFail":"boolean"
}
```

## **[查询导出导出进度信息](http://localhost:82/com_weaver_ebuilder_form_view_list_controller_app_batch_RuntimeExpImpController.html#)**

[图片附件未整合: ../../../_assets/207961082126401536/001-c98536f19e.png]

**请求URL**

api/ebatch/getImportOrExportRate **get**

moduleName: 模块名称 例: ebatch

functionName: 导出方法名称 例:  HrmOrgDataExport

bizId: 业务id  例:996175848506220546

flag: export 固定值

## **[查询导出导出数量信息](http://localhost:82/com_weaver_ebuilder_form_view_list_controller_app_batch_RuntimeExpImpController.html#)**

**请求URL**

api/ebatch/getImportOrExportRateNum **get**

moduleName: 模块名称 例: ebatch

functionName: 导出方法名称 例:  HrmOrgDataExport

bizId: 业务id  例:996175848506220546

flag: export 固定值
