Commit 5f3a392d by 陶光胜

报表中心

parent ca75f761
......@@ -5,7 +5,7 @@ import java.util.List;
public class DownloadTaskPOJO {
/***报告id***/
private String reportId;
private Integer reportId;
/**表名**/
private String tableName;
/***hive查询语句***/
......@@ -20,12 +20,11 @@ public class DownloadTaskPOJO {
/**文件扩展 1.xlsx 2.xls 3.csv**/
private Integer excelExtension;
public String getReportId() {
public Integer getReportId() {
return reportId;
}
public void setReportId(String reportId) {
public void setReportId(Integer reportId) {
this.reportId = reportId;
}
......
......@@ -98,7 +98,7 @@ public interface DownloadReportService {
* @return void
* @throws
*/
void updateDownloadStatus(String reportId, DownloadReportStatusEnum downloadReportStatusEnum);
void updateDownloadStatus(Integer reportId, DownloadReportStatusEnum downloadReportStatusEnum);
/**
* updateDataCount
......
......@@ -112,9 +112,9 @@ public class DownloadReportServiceImpl implements DownloadReportService {
}
@Override
public void updateDownloadStatus(String reportId, DownloadReportStatusEnum downloadReportStatusEnum) {
public void updateDownloadStatus(Integer downloadReportId, DownloadReportStatusEnum downloadReportStatusEnum) {
TabDownloadReport downloadReport = new TabDownloadReport();
downloadReport.setReportId(reportId);
downloadReport.setDownloadReportId(downloadReportId);
downloadReport.setStatus(downloadReportStatusEnum.getCode());
tabDownloadReportMapper.updateByPrimaryKeySelective(downloadReport);
}
......
......@@ -84,7 +84,7 @@ public class HiveDataDownloadApiServiceImpl implements HiveDataDownloadApiServic
private void buildTask(Integer reportId, HiveDataDownloadDTO hiveDataDownloadDTO){
DownloadTaskPOJO downloadTaskPOJO = new DownloadTaskPOJO();
downloadTaskPOJO.setReportId(reportId.toString());
downloadTaskPOJO.setReportId(reportId);
downloadTaskPOJO.setHiveSql(hiveDataDownloadDTO.getSql());
downloadTaskPOJO.setCanDownload(!DownloadReportDataTypeEnum.COMPLETE_DATA.getCode().equals(hiveDataDownloadDTO.getDataType()));
downloadTaskPOJO.setDesenField(hiveDataDownloadDTO.getDesenField());
......
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