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
880ec44c
Commit
880ec44c
authored
Oct 10, 2025
by
zhangxingmin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
push
parent
859dbba8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
yd-email-api/src/main/java/com/yd/email/api/service/impl/ApiEmailFileServiceImpl.java
+9
-9
No files found.
yd-email-api/src/main/java/com/yd/email/api/service/impl/ApiEmailFileServiceImpl.java
View file @
880ec44c
...
...
@@ -435,18 +435,18 @@ public class ApiEmailFileServiceImpl implements ApiEmailFileService {
if
(
StringUtils
.
isBlank
(
getStringValue
(
row
,
ContactExcelEnum
.
NAME
.
getItemLabel
())))
{
throw
new
BusinessException
(
"第"
+
i
+
"行的"
+
ContactExcelEnum
.
NAME
.
getItemLabel
()
+
"不能为空!"
);
}
if
(
StringUtils
.
isBlank
(
getStringValue
(
row
,
ContactExcelEnum
.
APPELLATION
.
getItemLabel
())))
{
throw
new
BusinessException
(
"第"
+
i
+
"行的"
+
ContactExcelEnum
.
APPELLATION
.
getItemLabel
()
+
"不能为空!"
);
}
if
(
StringUtils
.
isBlank
(
getStringValue
(
row
,
ContactExcelEnum
.
COMPANY_NAME
.
getItemLabel
())))
{
throw
new
BusinessException
(
"第"
+
i
+
"行的"
+
ContactExcelEnum
.
COMPANY_NAME
.
getItemLabel
()
+
"不能为空!"
);
}
//
if (StringUtils.isBlank(getStringValue(row, ContactExcelEnum.APPELLATION.getItemLabel()))) {
//
throw new BusinessException("第" + i + "行的" + ContactExcelEnum.APPELLATION.getItemLabel() + "不能为空!");
//
}
//
if (StringUtils.isBlank(getStringValue(row, ContactExcelEnum.COMPANY_NAME.getItemLabel()))) {
//
throw new BusinessException("第" + i + "行的" + ContactExcelEnum.COMPANY_NAME.getItemLabel() + "不能为空!");
//
}
if
(
StringUtils
.
isBlank
(
getStringValue
(
row
,
ContactExcelEnum
.
EMAIL
.
getItemLabel
())))
{
throw
new
BusinessException
(
"第"
+
i
+
"行的"
+
ContactExcelEnum
.
EMAIL
.
getItemLabel
()
+
"不能为空!"
);
}
if
(
StringUtils
.
isBlank
(
getStringValue
(
row
,
ContactExcelEnum
.
CC_EMAIL
.
getItemLabel
())))
{
throw
new
BusinessException
(
"第"
+
i
+
"行的"
+
ContactExcelEnum
.
CC_EMAIL
.
getItemLabel
()
+
"不能为空!"
);
}
//
if (StringUtils.isBlank(getStringValue(row, ContactExcelEnum.CC_EMAIL.getItemLabel()))) {
//
throw new BusinessException("第" + i + "行的" + ContactExcelEnum.CC_EMAIL.getItemLabel() + "不能为空!");
//
}
// 检查收件人邮箱是否重复
if
(
emailSet
.
contains
(
email
))
{
throw
new
BusinessException
(
"第"
+
i
+
"行的"
+
ContactExcelEnum
.
EMAIL
.
getItemLabel
()
+
"重复:"
+
email
);
...
...
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