|
@@ -189,7 +189,7 @@ public class EmailUtil {
|
|
* @return 邮件类型:1-净值,2-估值表,3-定期报告 -> 兜底为净值类型
|
|
* @return 邮件类型:1-净值,2-估值表,3-定期报告 -> 兜底为净值类型
|
|
*/
|
|
*/
|
|
public static Integer getEmailTypeBySubject(String subject, Map<Integer, List<String>> emailTypeMap) {
|
|
public static Integer getEmailTypeBySubject(String subject, Map<Integer, List<String>> emailTypeMap) {
|
|
- if (MapUtil.isEmpty(emailTypeMap)) {
|
|
|
|
|
|
+ if (MapUtil.isEmpty(emailTypeMap) || StrUtil.isBlank(subject)) {
|
|
return EmailTypeConst.NAV_EMAIL_TYPE;
|
|
return EmailTypeConst.NAV_EMAIL_TYPE;
|
|
}
|
|
}
|
|
for (Map.Entry<Integer, List<String>> emailTypeEntry : emailTypeMap.entrySet()) {
|
|
for (Map.Entry<Integer, List<String>> emailTypeEntry : emailTypeMap.entrySet()) {
|