Commit 4e3f0120 by 陶光胜

init

parent ea2984c5
...@@ -51,12 +51,13 @@ public abstract class QrcodeDownload { ...@@ -51,12 +51,13 @@ public abstract class QrcodeDownload {
private QrcodeQO qrcodeQO = null; private QrcodeQO qrcodeQO = null;
private Integer total; private Integer total;
private int qrcodeType;
private DownloadReportApiService downloadReportApiService; private DownloadReportApiService downloadReportApiService;
private WeixinBaseFunService weixinBaseFunService; private WeixinBaseFunService weixinBaseFunService;
private WeixinWxaFunService weixinWxaFunService; private WeixinWxaFunService weixinWxaFunService;
private QrCodeApiService qrCodeApiService; private QrCodeApiService qrCodeApiService;
public void takeQrcode(QrcodeQO qrcodeQO, int total, public void takeQrcode(QrcodeQO qrcodeQO, int total, int qrcodeType,
DownloadReportApiService downloadReportApiService, DownloadReportApiService downloadReportApiService,
WeixinBaseFunService weixinBaseFunService, WeixinBaseFunService weixinBaseFunService,
WeixinWxaFunService weixinWxaFunService, WeixinWxaFunService weixinWxaFunService,
...@@ -67,6 +68,7 @@ public abstract class QrcodeDownload { ...@@ -67,6 +68,7 @@ public abstract class QrcodeDownload {
this.weixinWxaFunService = weixinWxaFunService; this.weixinWxaFunService = weixinWxaFunService;
this.qrCodeApiService = qrCodeApiService; this.qrCodeApiService = qrCodeApiService;
this.total = total; this.total = total;
this.qrcodeType = qrcodeType;
Integer reportId = this.saveDownloadLog(); Integer reportId = this.saveDownloadLog();
String fileId = ToolUtil.randomUUID(); String fileId = ToolUtil.randomUUID();
String filePath = RequestContext.getContext().getRequest().getSession().getServletContext().getRealPath("/qrcode"); String filePath = RequestContext.getContext().getRequest().getSession().getServletContext().getRealPath("/qrcode");
...@@ -97,6 +99,7 @@ public abstract class QrcodeDownload { ...@@ -97,6 +99,7 @@ public abstract class QrcodeDownload {
dto.setCustomParams(content.getCustomParams()); dto.setCustomParams(content.getCustomParams());
dto.setContent(content.getContent()); dto.setContent(content.getContent());
dto.setFileId(ToolUtil.randomUUID()); dto.setFileId(ToolUtil.randomUUID());
dto.setQrCodeType(qrcodeType);
ServiceResponse<Integer> response = qrCodeApiService.saveQrcodeDownload(dto); ServiceResponse<Integer> response = qrCodeApiService.saveQrcodeDownload(dto);
if (response.isSuccess()) { if (response.isSuccess()) {
Integer qrcodeId = response.getResult(); Integer qrcodeId = response.getResult();
......
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