Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
eshiled-new
/
ne-shield-standard-interfaces
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
1
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 54da68bf
authored
Feb 28, 2022
by
yangll
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
优化邮件的显示格式
1 parent
b5bb68b7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
48 additions
and
19 deletions
src/main/java/cn/com/glsx/stdinterface/modules/service/WorkOrderService.java
src/main/java/cn/com/glsx/stdinterface/modules/service/WorkOrderService.java
View file @
54da68b
...
...
@@ -439,27 +439,27 @@ public class WorkOrderService {
private
void
sendMail
(
WorkOrder
order
,
WorkOrderVehicle
woVehicle
,
String
rootOrg
)
{
// 创建邮件标题
StringBuilder
title
=
new
StringBuilder
();
title
.
append
(
"("
).
append
(
rootOrg
).
append
(
") 手动安装单-"
).
append
(
order
.
getPartnerOrderNo
()).
append
(
"-"
).
append
(
woVehicle
.
getVin
());
title
.
append
(
"("
).
append
(
rootOrg
).
append
(
") 手动安装单-"
).
append
(
order
.
getPartnerOrderNo
()).
append
(
"-"
).
append
(
woVehicle
.
getVin
())
.
append
(
"\n"
)
;
//创建邮件正文
StringBuilder
content
=
new
StringBuilder
();
content
.
append
(
"租赁公司-"
).
append
(
rootOrg
).
append
(
";"
);
content
.
append
(
"申请编号-"
).
append
(
order
.
getPartnerOrderNo
()).
append
(
";"
);
content
.
append
(
"区域-无"
).
append
(
";"
);
content
.
append
(
"设备组合-"
).
append
(
order
.
getServiceExplain
()).
append
(
";
"
);
content
.
append
(
"导入时间-"
).
append
(
DateUtil
.
formatDate
(
order
.
getCreatedDate
())).
append
(
";"
);
content
.
append
(
"分公司-无"
).
append
(
";"
);
content
.
append
(
"店面名称-"
).
append
(
order
.
getShopName
()).
append
(
";"
);
content
.
append
(
"店面联系电话-"
).
append
(
order
.
getShopTelephone
()).
append
(
";"
);
content
.
append
(
"要求安装日期-"
).
append
(
DateUtil
.
formatDate
(
order
.
getServiceTime
())).
append
(
";"
);
content
.
append
(
"客户姓名-"
).
append
(
woVehicle
.
getLesseeName
()).
append
(
";"
);
content
.
append
(
"车架号-"
).
append
(
woVehicle
.
getVin
()).
append
(
";"
);
content
.
append
(
"颜色-无"
).
append
(
";"
);
content
.
append
(
"车型-"
).
append
(
woVehicle
.
getVehicleType
()).
append
(
";"
);
content
.
append
(
"贷款期限-无"
).
append
(
";"
);
content
.
append
(
"租凭方式-无"
).
append
(
";"
);
content
.
append
(
"安装地址-"
).
append
(
order
.
getServiceAddress
()).
append
(
";"
);
content
.
append
(
"备注—无"
).
append
(
";"
);
content
.
append
(
"安装方式—广联安装"
).
append
(
";"
);
content
.
append
(
"租赁公司-"
).
append
(
rootOrg
).
append
(
";
\n
"
);
content
.
append
(
"申请编号-"
).
append
(
order
.
getPartnerOrderNo
()).
append
(
";
\n
"
);
content
.
append
(
"区域-无"
).
append
(
";
\n
"
);
content
.
append
(
"设备组合-"
).
append
(
buildDeviceCompose
(
woVehicle
.
getDeviceCompose
())).
append
(
";\n
"
);
content
.
append
(
"导入时间-"
).
append
(
DateUtil
.
formatDate
(
order
.
getCreatedDate
())).
append
(
";
\n
"
);
content
.
append
(
"分公司-无"
).
append
(
";
\n
"
);
content
.
append
(
"店面名称-"
).
append
(
order
.
getShopName
()).
append
(
";
\n
"
);
content
.
append
(
"店面联系电话-"
).
append
(
order
.
getShopTelephone
()).
append
(
";
\n
"
);
content
.
append
(
"要求安装日期-"
).
append
(
DateUtil
.
formatDate
(
order
.
getServiceTime
())).
append
(
";
\n
"
);
content
.
append
(
"客户姓名-"
).
append
(
woVehicle
.
getLesseeName
()).
append
(
";
\n
"
);
content
.
append
(
"车架号-"
).
append
(
woVehicle
.
getVin
()).
append
(
";
\n
"
);
content
.
append
(
"颜色-无"
).
append
(
";
\n
"
);
content
.
append
(
"车型-"
).
append
(
woVehicle
.
getVehicleType
()).
append
(
";
\n
"
);
content
.
append
(
"贷款期限-无"
).
append
(
";
\n
"
);
content
.
append
(
"租凭方式-无"
).
append
(
";
\n
"
);
content
.
append
(
"安装地址-"
).
append
(
order
.
getServiceAddress
()).
append
(
";
\n
"
);
content
.
append
(
"备注—无"
).
append
(
";
\n
"
);
content
.
append
(
"安装方式—广联安装"
).
append
(
";
\n
"
);
MailTemplateMessageDTO
messageDTO
=
new
MailTemplateMessageDTO
();
String
sendMail
=
PropertiesUtils
.
getProperty
(
"mail.toMail.addr"
);
...
...
@@ -471,6 +471,35 @@ public class WorkOrderService {
}
/**
* 构建设组合信息
*
* @param deviceCompose 设备组合类型 010
*/
public
String
buildDeviceCompose
(
String
deviceCompose
)
{
String
deviceComposeStr
=
""
;
switch
(
deviceCompose
)
{
case
"010"
:
deviceComposeStr
=
"单有源"
;
break
;
case
"001"
:
deviceComposeStr
=
"单无源"
;
break
;
case
"011"
:
deviceComposeStr
=
"单有源+单无源"
;
break
;
case
"012"
:
deviceComposeStr
=
"单有源+双无源"
;
break
;
case
"002"
:
deviceComposeStr
=
"双无源"
;
break
;
default
:
deviceComposeStr
=
""
;
}
return
deviceComposeStr
;
}
/**
* 构建工单
*
* @param orderReq
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment