Commit 3b940064 authored by stone's avatar stone

【fix】财务收支一览表

parent ce2823a7
...@@ -58,7 +58,7 @@ public class MailSend { ...@@ -58,7 +58,7 @@ public class MailSend {
try { try {
MimeMessage message = new MimeMessage(session); MimeMessage message = new MimeMessage(session);
message.addHeader("X-Mailer", "Microsoft Outlook Express 6.00.2900.2869"); message.addHeader("X-Mailer", "Microsoft Outlook Express 6.00.2900.2869");
message.setFrom(new InternetAddress(from)); message.setFrom(new InternetAddress(from,"建机系统","utf-8"));
//如果含有分号则去掉 //如果含有分号则去掉
//收件人可能有多个 //收件人可能有多个
String[] toParams = jsonObject.optString("toAddress").split(";"); String[] toParams = jsonObject.optString("toAddress").split(";");
...@@ -137,10 +137,10 @@ public class MailSend { ...@@ -137,10 +137,10 @@ public class MailSend {
jb.put("toCcAddress", ""); jb.put("toCcAddress", "");
jb.put("toSubject", "123"); jb.put("toSubject", "123");
jb.put("toBody", "<span style=\"white-space:nowrap;\">复制测试最后一百年</span>"); jb.put("toBody", "<span style=\"white-space:nowrap;\">复制测试最后一百年</span>");
jb.put("content_type", "text/plain"); jb.put("content_type", "text/html");
jb.put("attch_flag", "Y"); jb.put("attch_flag", "Y");
jb.put("attch_file_name", "财务收支一览表.xlsx"); jb.put("attch_file_name", "财务收支一览表.xlsx");
jb.put("attch_file_path", "/u01/hls_file/excel/excel1587545458258.xlsx"); jb.put("attch_file_path", "d:/222.txt");
try{ try{
mailSend.sendMain(jb.toString()); mailSend.sendMain(jb.toString());
}catch(Exception e){ }catch(Exception e){
......
...@@ -4,8 +4,8 @@ ...@@ -4,8 +4,8 @@
<a:model-query fetchAll="true" model="rpt.RPT5090.atm_update" rootPath="/model/day"/> <a:model-query fetchAll="true" model="rpt.RPT5090.atm_update" rootPath="/model/day"/>
<a:model-query fetchAll="true" model="rpt.RPT5090.atm_update_month" rootPath="/model/month"/> <a:model-query fetchAll="true" model="rpt.RPT5090.atm_update_month" rootPath="/model/month"/>
<s:server-script><![CDATA[ <s:server-script><![CDATA[
var para = $ctx.current_parameter || $ctx.parameter; <!-- var para = $ctx.current_parameter || $ctx.parameter;-->
println(para.toXML()); <!-- println(para.toXML());-->
$ctx.parameter.file_name='财务收支一览表.xlsx'; $ctx.parameter.file_name='财务收支一览表.xlsx';
$ctx.parameter.file_path = '/u01/hls_file/task_excel/'; $ctx.parameter.file_path = '/u01/hls_file/task_excel/';
]]></s:server-script> ]]></s:server-script>
...@@ -85,6 +85,7 @@ ...@@ -85,6 +85,7 @@
result: $ctx.parameter.return_status, result: $ctx.parameter.return_status,
message: $ctx.parameter.return_message message: $ctx.parameter.return_message
}; };
document.write("<h1>通过document.write输出内容"+result+</h1>");
println(result); println(result);
]]></s:server-script> ]]></s:server-script>
</a:init-procedure> </a:init-procedure>
......
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