### **1. 获取任务详情（已有接口）**

- 业务调整： transferDesc 新增新类型【confirm】，表示该步在等待用户手动确认继续， 需要前端调用【2. 继续迁移任务】接口，继续进行迁移

- [图片附件未整合: ../_assets/291656835306356736/001-6fbc580020.png]
  
  [图片附件未整合: ../_assets/291656835306356736/002-d98d951d54.png]
  
  接口名：/api/publishkit/runtime/record/getTask?taskId=1081872613725675520
- 接口方式：POST
- 接口入参：taskId
- 接口返回值：
  
  ```json
  /**
   *
   */
  {
  	"code": 200,
  	"msg": "接口返回成功",
  	"status": true,
  	"data": {
  		"currentStep": 3,
  		"columns": [
  			{
  				"title": "数据库",
  				"dataIndex": "databaseName"
  			},
  			{
  				"title": "表名",
  				"dataIndex": "sourceTableName"
  			},
  			{
  				"title": "状态",
  				"dataIndex": "statusVo"
  			},
  			{
  				"title": "总条数",
  				"dataIndex": "totalCount"
  			},
  			{
  				"title": "已迁移条数",
  				"dataIndex": "currentCount"
  			},
  			{
  				"title": "错误",
  				"dataIndex": "message"
  			}
  		],
  		"details": [
  			
  		],
  		"taskStatus": 1,
  		"steps": [
  			{
  				"id": "1081872613725675521",
  				"createTime": 1735093097000,
  				"updateTime": 1735093097000,
  				"creator": "0",
  				"deleteType": 0,
  				"tenantKey": "t2k74i3rjo",
  				"taskId": 1081872613725675520,
  				"transferStep": 0,
  				"transferTitle": "初始化",
  				"transferDesc": "finish"
  			},
  			{
  				"id": "1081872613725675522",
  				"createTime": 1735093097000,
  				"updateTime": 1735093097000,
  				"creator": "0",
  				"deleteType": 0,
  				"tenantKey": "t2k74i3rjo",
  				"taskId": 1081872613725675520,
  				"transferStep": 1,
  				"transferTitle": "健康检测",
  				"transferDesc": "finish"
  			},
  			{
  				"id": "1081872613725675523",
  				"createTime": 1735093097000,
  				"updateTime": 1735093097000,
  				"creator": "0",
  				"deleteType": 0,
  				"tenantKey": "t2k74i3rjo",
  				"taskId": 1081872613725675520,
  				"transferStep": 2,
  				"transferTitle": "引用更新",
  				"transferDesc": "finish"
  			},
  			{
  				"id": "1081872613725675524",
  				"createTime": 1735093097000,
  				"updateTime": 1735093097000,
  				"creator": "0",
  				"deleteType": 0,
  				"tenantKey": "t2k74i3rjo",
  				"taskId": 1081872613725675520,
  				"transferStep": 3,
  				"transferTitle": "同步数据",
  				"transferDesc": "confirm"
  			},
  			{
  				"id": "1081872613725675525",
  				"createTime": 1735093097000,
  				"updateTime": 1735093097000,
  				"creator": "0",
  				"deleteType": 0,
  				"tenantKey": "t2k74i3rjo",
  				"taskId": 1081872613725675520,
  				"transferStep": 4,
  				"transferTitle": "配置同步",
  				"transferDesc": "wait"
  			},
  			{
  				"id": "1081872613725675526",
  				"createTime": 1735093097000,
  				"updateTime": 1735093097000,
  				"creator": "0",
  				"deleteType": 0,
  				"tenantKey": "t2k74i3rjo",
  				"taskId": 1081872613725675520,
  				"transferStep": 5,
  				"transferTitle": "开启路由",
  				"transferDesc": "wait"
  			}
  		]
  	},
  	"fail": false
  }
  ```

### **2. 继续迁移任务 （新接口）**

- 接口名：/api/publishkit/runtime/record/continueTransferData
- 接口方式：POST
- 接口入参：
  
  ```json
  {
      "taskId": 1234567890
  }
  ```
- 接口返回值：
  
  ```json
  {
      "code": 200,
      "msg": "接口返回成功",
      "status": true,
      "data": true,
      "fail": false
  }
  ```

### 3.下载超过最大数据量的sql文件

- 接口名：/api/publishkit/runtime/record/downloadManualSql?taskId=xxxx
- 接口方法：GET
- 接口返回值：文件流，命名规则为：应用名.sql
