|
|
@ -29,6 +29,7 @@ import au.com.royalpay.payment.tools.connections.mpsupport.MpWechatApiProvider;
|
|
|
|
import au.com.royalpay.payment.tools.connections.mpsupport.beans.TemplateMessage;
|
|
|
|
import au.com.royalpay.payment.tools.connections.mpsupport.beans.TemplateMessage;
|
|
|
|
import au.com.royalpay.payment.tools.defines.TradeType;
|
|
|
|
import au.com.royalpay.payment.tools.defines.TradeType;
|
|
|
|
import au.com.royalpay.payment.tools.env.PlatformEnvironment;
|
|
|
|
import au.com.royalpay.payment.tools.env.PlatformEnvironment;
|
|
|
|
|
|
|
|
import au.com.royalpay.payment.tools.env.SysConfigManager;
|
|
|
|
import au.com.royalpay.payment.tools.exceptions.BadRequestException;
|
|
|
|
import au.com.royalpay.payment.tools.exceptions.BadRequestException;
|
|
|
|
import au.com.royalpay.payment.tools.exceptions.ForbiddenException;
|
|
|
|
import au.com.royalpay.payment.tools.exceptions.ForbiddenException;
|
|
|
|
import au.com.royalpay.payment.tools.exceptions.NotFoundException;
|
|
|
|
import au.com.royalpay.payment.tools.exceptions.NotFoundException;
|
|
|
@ -153,6 +154,8 @@ public class CleanServiceImpl implements CleanService, ManagerTodoNoticeProvider
|
|
|
|
private SpringTemplateEngine thymeleaf;
|
|
|
|
private SpringTemplateEngine thymeleaf;
|
|
|
|
@Resource
|
|
|
|
@Resource
|
|
|
|
private ClientConfigService clientConfigService;
|
|
|
|
private ClientConfigService clientConfigService;
|
|
|
|
|
|
|
|
@Resource
|
|
|
|
|
|
|
|
private SysConfigManager sysConfigManager;
|
|
|
|
|
|
|
|
|
|
|
|
@Value("${app.settlement.email-to}")
|
|
|
|
@Value("${app.settlement.email-to}")
|
|
|
|
private String settlementEmailTo;
|
|
|
|
private String settlementEmailTo;
|
|
|
@ -969,11 +972,6 @@ public class CleanServiceImpl implements CleanService, ManagerTodoNoticeProvider
|
|
|
|
String title = "Royalpay Settlement File " + DateFormatUtils.format(date, "yyyyMMdd");
|
|
|
|
String title = "Royalpay Settlement File " + DateFormatUtils.format(date, "yyyyMMdd");
|
|
|
|
JSONObject model = new JSONObject();
|
|
|
|
JSONObject model = new JSONObject();
|
|
|
|
model.put("date", DateFormatUtils.format(date, "dd-MM-yyyy"));
|
|
|
|
model.put("date", DateFormatUtils.format(date, "dd-MM-yyyy"));
|
|
|
|
// todo themeleaf
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// final String content = VelocityEngineUtils.mergeTemplateIntoString(velocityEngine,
|
|
|
|
|
|
|
|
// "mail/settlement_mail.vm", "utf-8", model);
|
|
|
|
|
|
|
|
String fileName1 = "Merchant_Settlement_Info_xlsx_" + DateFormatUtils.format(date, "yyyyMMdd");
|
|
|
|
String fileName1 = "Merchant_Settlement_Info_xlsx_" + DateFormatUtils.format(date, "yyyyMMdd");
|
|
|
|
List<JSONObject> attachList = new ArrayList<>();
|
|
|
|
List<JSONObject> attachList = new ArrayList<>();
|
|
|
|
JSONObject attach1 = new JSONObject();
|
|
|
|
JSONObject attach1 = new JSONObject();
|
|
|
@ -1017,9 +1015,8 @@ public class CleanServiceImpl implements CleanService, ManagerTodoNoticeProvider
|
|
|
|
// 测试用地址
|
|
|
|
// 测试用地址
|
|
|
|
// String mailId = mailService.sendEmail(title, "164851225@qq.com", "1029811920@qq.com", content,
|
|
|
|
// String mailId = mailService.sendEmail(title, "164851225@qq.com", "1029811920@qq.com", content,
|
|
|
|
// attachList);
|
|
|
|
// attachList);
|
|
|
|
String mailId = mailService.sendEmail(title, "diana.baldi@flexewallet.com,steven.stamboultgis@novatti.com,fazal.cader@flexewallet.com",
|
|
|
|
JSONObject config = sysConfigManager.getSysConfig();
|
|
|
|
"locky@royalpay.com.au,leo.huang@royalpay.com.au,eason.qian@royalpay.com.au,astro.dai@royalpay.com.au,settlement@royalpay.com.au,settlements@flexewallet.com,ben.evans@royalpay.com.au",
|
|
|
|
String mailId = mailService.sendEmail(title, config.getString("settle_mail_to"),config.getString("settle_mail_cc"), content, attachList);
|
|
|
|
content, attachList);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (settleMail == null) {
|
|
|
|
if (settleMail == null) {
|
|
|
|
JSONObject settleMailRecord = new JSONObject();
|
|
|
|
JSONObject settleMailRecord = new JSONObject();
|
|
|
|