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 c3817174
authored
Apr 27, 2022
by
杨林龙
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
优化发送邮件模板
1 parent
dcbbd622
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
2 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 @
c381717
...
...
@@ -483,9 +483,25 @@ public class WorkOrderService {
content
.
append
(
"联系电话:"
).
append
(
order
.
getShopTelephone
()).
append
(
";\n"
);
content
.
append
(
"是否需要安装:"
).
append
(
order
.
getNeedInstall
().
equalsIgnoreCase
(
TypeConverseEunm
.
NeedInstallTypeEnum
.
NEED_INSTALL
.
getNeedInstallType
())
?
TypeConverseEunm
.
NeedInstallTypeEnum
.
NEED_INSTALL
.
getNeedInstallTypeStr
()
:
TypeConverseEunm
.
NeedInstallTypeEnum
.
UN_NEED_INSTALL
.
getNeedInstallTypeStr
()).
append
(
";\n"
);
content
.
append
(
"期望安装日期:"
).
append
(
DateUtil
.
formatDate
(
order
.
getServiceTime
())).
append
(
";\n"
);
content
.
append
(
"安装区域:"
).
append
(
order
.
getProvince
().
concat
(
order
.
getCity
()).
concat
(
order
.
getDistrict
())).
append
(
";\n"
);
String
installationArea
=
StringUtils
.
isEmpty
(
order
.
getProvince
())
?
""
:
order
.
getProvince
()
.
concat
(
StringUtils
.
isEmpty
(
order
.
getCity
())
?
""
:
order
.
getCity
())
.
concat
(
StringUtils
.
isEmpty
(
order
.
getDistrict
())
?
""
:
order
.
getDistrict
());
if
(
StringUtils
.
isEmpty
(
installationArea
))
{
content
.
append
(
"安装区域:"
).
append
(
"--"
).
append
(
";\n"
);
}
else
{
content
.
append
(
"安装区域:"
).
append
(
installationArea
).
append
(
";\n"
);
}
content
.
append
(
"联系地址:"
).
append
(
order
.
getShopAddress
()).
append
(
";\n"
);
content
.
append
(
"详细地址:"
).
append
(
order
.
getProvince
().
concat
(
order
.
getCity
()).
concat
(
order
.
getDistrict
()).
concat
(
order
.
getServiceAddress
())).
append
(
";\n"
);
String
detailAddress
=
StringUtils
.
isEmpty
(
installationArea
)
?
""
:
installationArea
.
concat
(
StringUtils
.
isEmpty
(
order
.
getServiceAddress
())
?
""
:
order
.
getServiceAddress
());
if
(
StringUtils
.
isEmpty
(
detailAddress
))
{
content
.
append
(
"详细地址:"
).
append
(
"--"
).
append
(
";\n"
);
}
else
{
content
.
append
(
"详细地址:"
).
append
(
detailAddress
).
append
(
";\n"
);
}
if
(
StringUtils
.
isEmpty
(
order
.
getServiceLinkerPhone
()))
{
content
.
append
(
"安装联系电话:"
).
append
(
"--"
).
append
(
";\n"
);
}
else
{
...
...
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