Commit 880ec44c by zhangxingmin

push

parent 859dbba8
...@@ -435,18 +435,18 @@ public class ApiEmailFileServiceImpl implements ApiEmailFileService { ...@@ -435,18 +435,18 @@ public class ApiEmailFileServiceImpl implements ApiEmailFileService {
if (StringUtils.isBlank(getStringValue(row, ContactExcelEnum.NAME.getItemLabel()))) { if (StringUtils.isBlank(getStringValue(row, ContactExcelEnum.NAME.getItemLabel()))) {
throw new BusinessException("第" + i + "行的" + ContactExcelEnum.NAME.getItemLabel() + "不能为空!"); throw new BusinessException("第" + i + "行的" + ContactExcelEnum.NAME.getItemLabel() + "不能为空!");
} }
if (StringUtils.isBlank(getStringValue(row, ContactExcelEnum.APPELLATION.getItemLabel()))) { // if (StringUtils.isBlank(getStringValue(row, ContactExcelEnum.APPELLATION.getItemLabel()))) {
throw new BusinessException("第" + i + "行的" + ContactExcelEnum.APPELLATION.getItemLabel() + "不能为空!"); // throw new BusinessException("第" + i + "行的" + ContactExcelEnum.APPELLATION.getItemLabel() + "不能为空!");
} // }
if (StringUtils.isBlank(getStringValue(row, ContactExcelEnum.COMPANY_NAME.getItemLabel()))) { // if (StringUtils.isBlank(getStringValue(row, ContactExcelEnum.COMPANY_NAME.getItemLabel()))) {
throw new BusinessException("第" + i + "行的" + ContactExcelEnum.COMPANY_NAME.getItemLabel() + "不能为空!"); // throw new BusinessException("第" + i + "行的" + ContactExcelEnum.COMPANY_NAME.getItemLabel() + "不能为空!");
} // }
if (StringUtils.isBlank(getStringValue(row, ContactExcelEnum.EMAIL.getItemLabel()))) { if (StringUtils.isBlank(getStringValue(row, ContactExcelEnum.EMAIL.getItemLabel()))) {
throw new BusinessException("第" + i + "行的" + ContactExcelEnum.EMAIL.getItemLabel() + "不能为空!"); throw new BusinessException("第" + i + "行的" + ContactExcelEnum.EMAIL.getItemLabel() + "不能为空!");
} }
if (StringUtils.isBlank(getStringValue(row, ContactExcelEnum.CC_EMAIL.getItemLabel()))) { // if (StringUtils.isBlank(getStringValue(row, ContactExcelEnum.CC_EMAIL.getItemLabel()))) {
throw new BusinessException("第" + i + "行的" + ContactExcelEnum.CC_EMAIL.getItemLabel() + "不能为空!"); // throw new BusinessException("第" + i + "行的" + ContactExcelEnum.CC_EMAIL.getItemLabel() + "不能为空!");
} // }
// 检查收件人邮箱是否重复 // 检查收件人邮箱是否重复
if (emailSet.contains(email)) { if (emailSet.contains(email)) {
throw new BusinessException("第" + i + "行的" + ContactExcelEnum.EMAIL.getItemLabel() + "重复:" + email); throw new BusinessException("第" + i + "行的" + ContactExcelEnum.EMAIL.getItemLabel() + "重复:" + email);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment