Selaa lähdekoodia

refactor: alter strategy map size

linwenhua 3 vuotta sitten
vanhempi
sitoutus
292f512c7b

+ 8 - 3
smsb-customer-manager-client/src/main/java/com/inspur/customer/object/tenant/TenantExceptionInformStrategyCO.java

@@ -26,6 +26,11 @@ public class TenantExceptionInformStrategyCO implements Serializable {
 
     public static final String DEPARTMENT_LEVEL = "4";
 
+    public static final String SINGLE_NOTE = "10";
+
+    public static final String SINGLE_EMAIL = "11";
+
+
     /**
      * tenant identifier
      */
@@ -37,12 +42,12 @@ public class TenantExceptionInformStrategyCO implements Serializable {
     private Map<String, ExceptionInformStrategyCmd> strategy;
 
     public TenantExceptionInformStrategyCO() {
-        this.strategy = new HashMap<>(4);
+        this.strategy = new HashMap<>(10);
     }
 
-    public TenantExceptionInformStrategyCO(String tenant) {
+    public TenantExceptionInformStrategyCO(String tenant, Integer size) {
         this.tenant = tenant;
-        this.strategy = new HashMap<>(4);
+        this.strategy = new HashMap<>(size);
     }
 
     public Integer getInformFlagByLevel(String level) {