Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
leaf-hlcm
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hlcm
leaf-hlcm
Commits
3b940064
Commit
3b940064
authored
May 01, 2020
by
stone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
【fix】财务收支一览表
parent
ce2823a7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
5 deletions
+6
-5
MailSend.java
src/main/java/com/hand/hls/hlcm/util/MailSend.java
+3
-3
export_excel_sheets.lsc
src/main/webapp/modules/rpt/RPT5090/export_excel_sheets.lsc
+3
-2
No files found.
src/main/java/com/hand/hls/hlcm/util/MailSend.java
View file @
3b940064
...
...
@@ -58,7 +58,7 @@ public class MailSend {
try
{
MimeMessage
message
=
new
MimeMessage
(
session
);
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
(
";"
);
...
...
@@ -137,10 +137,10 @@ public class MailSend {
jb
.
put
(
"toCcAddress"
,
""
);
jb
.
put
(
"toSubject"
,
"123"
);
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_file_name"
,
"财务收支一览表.xlsx"
);
jb
.
put
(
"attch_file_path"
,
"
/u01/hls_file/excel/excel1587545458258.xlsx
"
);
jb
.
put
(
"attch_file_path"
,
"
d:/222.txt
"
);
try
{
mailSend
.
sendMain
(
jb
.
toString
());
}
catch
(
Exception
e
){
...
...
src/main/webapp/modules/rpt/RPT5090/export_excel_sheets.lsc
View file @
3b940064
...
...
@@ -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_month"
rootPath=
"/model/month"
/>
<s:server-script>
<![CDATA[
var para = $ctx.current_parameter || $ctx.parameter;
println(para.toXML());
<!-- var para = $ctx.current_parameter || $ctx.parameter;-->
<!-- println(para.toXML());-->
$ctx.parameter.file_name='财务收支一览表.xlsx';
$ctx.parameter.file_path = '/u01/hls_file/task_excel/';
]]>
</s:server-script>
...
...
@@ -85,6 +85,7 @@
result: $ctx.parameter.return_status,
message: $ctx.parameter.return_message
};
document.write("<h1>
通过document.write输出内容"+result+
</h1>
");
println(result);
]]>
</s:server-script>
</a:init-procedure>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment