feat(settle ui): 测试环境清算邮件增加TEST标记

master
yixian 5 years ago
parent 33bb32c8e9
commit ec2fff9cb4

@ -1113,7 +1113,7 @@ public class CleanServiceImpl implements CleanService, ManagerTodoNoticeProvider
public JSONObject sendSettlementMail(Date date, List<String> clearIds, boolean autoMarkSent) { public JSONObject sendSettlementMail(Date date, List<String> clearIds, boolean autoMarkSent) {
JSONObject result = new JSONObject(); JSONObject result = new JSONObject();
try { try {
String title = "Royalpay Settlement File " + DateFormatUtils.format(date, "yyyyMMdd"); String title = (PlatformEnvironment.getEnv().isDebug() ? "[TEST]" : "") + "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"));
String fileName1 = "Merchant_Settlement_Info_xlsx_" + DateFormatUtils.format(date, "yyyyMMdd"); String fileName1 = "Merchant_Settlement_Info_xlsx_" + DateFormatUtils.format(date, "yyyyMMdd");

Loading…
Cancel
Save