Browse Source

bug

release_toaliyun_real
xhxu 5 years ago
parent
commit
cc7881a9ce
1 changed files with 4 additions and 1 deletions
  1. +4
    -1
      mallinkService/src/main/java/com/iformall/domain/po/base/TenantEntity.java

+ 4
- 1
mallinkService/src/main/java/com/iformall/domain/po/base/TenantEntity.java View File

@@ -54,7 +54,10 @@ public class TenantEntity extends BaseEntity {
} }


public String getShardTableSuffix() { public String getShardTableSuffix() {
return "_" + Integer.parseInt(this.getTenantId())%100;
if(StringUtils.isNotBlank(tenantId)){
shardTableSuffix = "_" + Integer.parseInt(this.getTenantId())%100;
}
return shardTableSuffix;
} }


Loading…
Cancel
Save