Commit 35544b69 by fudahua

添加字段数量信息

parent a3cbf249
...@@ -386,4 +386,14 @@ public class DownloadTask implements Serializable { ...@@ -386,4 +386,14 @@ public class DownloadTask implements Serializable {
public void setDownloadWay(Integer downloadWay) { public void setDownloadWay(Integer downloadWay) {
this.downloadWay = downloadWay; this.downloadWay = downloadWay;
} }
private Integer fieldSize;
public Integer getFieldSize() {
return fieldSize;
}
public void setFieldSize(Integer fieldSize) {
this.fieldSize = fieldSize;
}
} }
...@@ -782,6 +782,8 @@ public class FlatQueryResultServiceImpl implements IFlatQueryResultService { ...@@ -782,6 +782,8 @@ public class FlatQueryResultServiceImpl implements IFlatQueryResultService {
task.setStatus(DownloadTaskStatus.BUILDING); task.setStatus(DownloadTaskStatus.BUILDING);
task.setDownloadWay(downloadType); task.setDownloadWay(downloadType);
task.setDownloadTime(new Date()); task.setDownloadTime(new Date());
task.setFieldSize(condition.getAllFields().size());
DownloadTaskServiceImpl.getInstance().updateDownloadTask(task); DownloadTaskServiceImpl.getInstance().updateDownloadTask(task);
logger.info("[ runDownloadTask.run ]: {}", "自助指标下载任务执行:" + task.getId()); logger.info("[ runDownloadTask.run ]: {}", "自助指标下载任务执行:" + task.getId());
......
...@@ -154,7 +154,8 @@ ...@@ -154,7 +154,8 @@
enterprise_id = #{enterpriseId}, enterprise_id = #{enterpriseId},
report_id = #{reportId}, report_id = #{reportId},
download_time = #{downloadTime}, download_time = #{downloadTime},
download_way = #{downloadWay} download_way = #{downloadWay},
field_size = #{fieldSize}
WHERE WHERE
id = #{id} id = #{id}
</update> </update>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment