|
@@ -232,17 +232,21 @@ public class EmailUtil {
|
|
|
* @return 邮件类型:1-净值,2-估值表,3-定期报告 -> 兜底为净值类型
|
|
|
*/
|
|
|
public static Integer getEmailTypeBySubject(String subject, Map<Integer, List<String>> emailTypeMap) {
|
|
|
- if (MapUtil.isEmpty(emailTypeMap) || StrUtil.isBlank(subject)) {
|
|
|
+ if (subject.contains("净值") || subject.contains("规模") || subject.contains("业绩报酬") || subject.contains("业绩提成")) {
|
|
|
return EmailTypeConst.NAV_EMAIL_TYPE;
|
|
|
}
|
|
|
- for (Map.Entry<Integer, List<String>> emailTypeEntry : emailTypeMap.entrySet()) {
|
|
|
- for (String field : emailTypeEntry.getValue()) {
|
|
|
- if (subject.contains(field)) {
|
|
|
- return emailTypeEntry.getKey();
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- return EmailTypeConst.NAV_EMAIL_TYPE;
|
|
|
+ return null;
|
|
|
+// if (MapUtil.isEmpty(emailTypeMap) || StrUtil.isBlank(subject)) {
|
|
|
+// return EmailTypeConst.NAV_EMAIL_TYPE;
|
|
|
+// }
|
|
|
+// for (Map.Entry<Integer, List<String>> emailTypeEntry : emailTypeMap.entrySet()) {
|
|
|
+// for (String field : emailTypeEntry.getValue()) {
|
|
|
+// if (subject.contains(field)) {
|
|
|
+// return emailTypeEntry.getKey();
|
|
|
+// }
|
|
|
+// }
|
|
|
+// }
|
|
|
+// return EmailTypeConst.NAV_EMAIL_TYPE;
|
|
|
}
|
|
|
|
|
|
public static Store getStoreNew(MailboxInfoDTO mailboxInfoDTO) {
|