Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yd-email
Overview
Overview
Details
Activity
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
xingmin
yd-email
Commits
59016175
Commit
59016175
authored
Apr 07, 2026
by
zhangxingmin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
push
parent
1dcd3f9e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
9 deletions
+12
-9
yd-email-api/src/main/java/com/yd/email/api/service/impl/ApiEmailFileServiceImpl.java
+2
-2
yd-email-feign/src/main/java/com/yd/email/feign/enums/GeneralVariableEnum.java
+7
-5
yd-email-feign/src/main/java/com/yd/email/feign/utils/StringUtil.java
+3
-2
No files found.
yd-email-api/src/main/java/com/yd/email/api/service/impl/ApiEmailFileServiceImpl.java
View file @
59016175
...
...
@@ -130,7 +130,7 @@ public class ApiEmailFileServiceImpl implements ApiEmailFileService {
try
{
// 远程调用Feign,通用Excel导入接口
Result
<
ImportResult
>
result
=
apiExcelFeignClient
.
importExcel
(
file
,
0
,
0
,
null
);
Result
<
ImportResult
>
result
=
apiExcelFeignClient
.
importExcel
(
file
,
0
,
0
,
null
,
2
);
ImportResult
importResult
=
result
.
getData
();
if
(
Objects
.
isNull
(
result
.
getData
())
||
(!
Objects
.
isNull
(
result
.
getData
())
&&
!
importResult
.
isSuccess
()))
{
return
Result
.
fail
(
"Excel导入失败: "
+
(
importResult
.
getMessage
()
!=
null
?
importResult
.
getMessage
()
:
"未知错误"
));
...
...
@@ -362,7 +362,7 @@ public class ApiEmailFileServiceImpl implements ApiEmailFileService {
public
Result
importContactExcel
(
MultipartFile
file
)
{
try
{
// 远程调用Feign,通用Excel导入接口
Result
<
ImportResult
>
result
=
apiExcelFeignClient
.
importExcel
(
file
,
0
,
0
,
null
);
Result
<
ImportResult
>
result
=
apiExcelFeignClient
.
importExcel
(
file
,
0
,
0
,
null
,
2
);
ImportResult
importResult
=
result
.
getData
();
if
(
Objects
.
isNull
(
result
.
getData
())
||
(!
Objects
.
isNull
(
result
.
getData
())
&&
!
importResult
.
isSuccess
()))
{
return
Result
.
fail
(
"Excel导入失败: "
+
(
importResult
.
getMessage
()
!=
null
?
importResult
.
getMessage
()
:
"未知错误"
));
...
...
yd-email-feign/src/main/java/com/yd/email/feign/enums/GeneralVariableEnum.java
View file @
59016175
...
...
@@ -2,11 +2,13 @@ package com.yd.email.feign.enums;
public
enum
GeneralVariableEnum
{
GENERAL_CONTACT
(
"联系人"
,
"{{name}}"
),
GENERAL_EMAIL
(
"邮箱"
,
"{{email}}"
),
GENERAL_CC_EMAIL
(
"抄送人"
,
"{{ccEmail}}"
),
GENERAL_APPELLATION
(
"称谓"
,
"{{appellation}}"
),
GENERAL_COMPANTNAME
(
"公司"
,
"{{compantName}}"
),
// GENERAL_CONTACT("联系人","{{name}}"),
GENERAL_EMAIL
(
"收件人邮箱"
,
"{{email}}"
),
//TODO
GENERAL_CC_EMAIL
(
"抄送人"
,
"{{ccEmail}}"
),
//TODO
GENERAL_APPELLATION
(
"收件人称谓"
,
"{{appellation}}"
),
//TODO
GENERAL_COMPANTNAME
(
"公司"
,
"{{compantName}}"
),
//TODO
;
//字典项标签(名称)
...
...
yd-email-feign/src/main/java/com/yd/email/feign/utils/StringUtil.java
View file @
59016175
...
...
@@ -49,8 +49,9 @@ public class StringUtil {
if
(
StringUtils
.
isBlank
(
content
))
{
return
false
;
}
return
(
content
.
contains
(
GeneralVariableEnum
.
GENERAL_CONTACT
.
getItemValue
())
||
content
.
contains
(
GeneralVariableEnum
.
GENERAL_APPELLATION
.
getItemValue
())
return
(
// content.contains(GeneralVariableEnum.GENERAL_CONTACT.getItemValue()) ||
content
.
contains
(
GeneralVariableEnum
.
GENERAL_APPELLATION
.
getItemValue
())
||
content
.
contains
(
GeneralVariableEnum
.
GENERAL_COMPANTNAME
.
getItemValue
())
||
content
.
contains
(
GeneralVariableEnum
.
GENERAL_CC_EMAIL
.
getItemValue
())
||
content
.
contains
(
GeneralVariableEnum
.
GENERAL_EMAIL
.
getItemValue
())
...
...
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