Commit 60a0f555 by 王祖波

数据导出回调成功处理

parent 240fa75b
...@@ -53,6 +53,7 @@ public class DataExportController { ...@@ -53,6 +53,7 @@ public class DataExportController {
downloadReportQDTQ.setApplyStartTime(DateUtil.offset(date, DateField.YEAR, -1)); downloadReportQDTQ.setApplyStartTime(DateUtil.offset(date, DateField.YEAR, -1));
downloadReportQDTQ.setApplyEndTime(date); downloadReportQDTQ.setApplyEndTime(date);
downloadReportQDTQ.setProjectCode("haoban_new"); downloadReportQDTQ.setProjectCode("haoban_new");
downloadReportQDTQ.setApplyStatus(2);
Page<DownloadReportDTO> page = downloadReportService.listDownloadReportByPage(downloadReportQDTQ); Page<DownloadReportDTO> page = downloadReportService.listDownloadReportByPage(downloadReportQDTQ);
return RestResponse.successResult(page) ; return RestResponse.successResult(page) ;
} }
......
...@@ -65,12 +65,13 @@ public class ContentMaterialClerkUsedDataHandler extends DownloadHandlerAbstract ...@@ -65,12 +65,13 @@ public class ContentMaterialClerkUsedDataHandler extends DownloadHandlerAbstract
} }
@Override @Override
public void callBack(Context context) { public void callBack(Context context, boolean success) {
if (success) {
DownloadReportDTO downloadReportDTO = context.getDownloadReportDTO(); DownloadReportDTO downloadReportDTO = context.getDownloadReportDTO();
String clerkId = downloadReportDTO.getApplyClerkId(); String clerkId = downloadReportDTO.getApplyClerkId();
String enterpriseId = downloadReportDTO.getEnterpriseId(); String enterpriseId = downloadReportDTO.getEnterpriseId();
NoticeMessageUtil.sendDataExportNotify(enterpriseId, clerkId, NoticeMessageUtil.sendDataExportNotify(enterpriseId, clerkId,
downloadReportDTO.getReportName(), downloadReportDTO.getApplyTime()); downloadReportDTO.getReportName(), downloadReportDTO.getApplyTime());
}
} }
} }
...@@ -66,11 +66,13 @@ public class ContentMaterialStoreUsedDataHandler extends DownloadHandlerAbstract ...@@ -66,11 +66,13 @@ public class ContentMaterialStoreUsedDataHandler extends DownloadHandlerAbstract
} }
@Override @Override
public void callBack(Context context) { public void callBack(Context context, boolean success) {
if (success) {
DownloadReportDTO downloadReportDTO = context.getDownloadReportDTO(); DownloadReportDTO downloadReportDTO = context.getDownloadReportDTO();
String clerkId = downloadReportDTO.getApplyClerkId(); String clerkId = downloadReportDTO.getApplyClerkId();
String enterpriseId = downloadReportDTO.getEnterpriseId(); String enterpriseId = downloadReportDTO.getEnterpriseId();
NoticeMessageUtil.sendDataExportNotify(enterpriseId, clerkId, NoticeMessageUtil.sendDataExportNotify(enterpriseId, clerkId,
downloadReportDTO.getReportName(), downloadReportDTO.getApplyTime()); downloadReportDTO.getReportName(), downloadReportDTO.getApplyTime());
} }
}
} }
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