Sfoglia il codice sorgente

fix bug

release_toaliyun_real
xiaohanzi 5 anni fa
parent
commit
9878b6cb71
1 ha cambiato i file con 4 aggiunte e 4 eliminazioni
  1. +4
    -4
      mallinkCApi/src/main/java/com/iformall/controller/BaseController.java

+ 4
- 4
mallinkCApi/src/main/java/com/iformall/controller/BaseController.java Vedi File

@@ -96,15 +96,15 @@ public class BaseController {
HttpServletRequest request = ((ServletRequestAttributes) RequestContextHolder.getRequestAttributes()).getRequest();
String tenantId = (String) request.getAttribute(Constant.TENANT_ID);
String parentTenantId = (String) request.getAttribute(Constant.PARENT_TENANT_ID);
TenantEntity tenantEntity = new TenantEntity() {{
setTenantId(tenantId);
setParentTenantId(parentTenantId);
}};
TenantEntity tenantEntity = new TenantEntity() ;
tenantEntity.setTenantId(tenantId);
tenantEntity.setParentTenantId(parentTenantId);
return tenantEntity;
}

public String getFinalTenantId() {
TenantEntity tenantEntity = getTenantInfo();
String tenantId = tenantEntity.getTenantId();
return tenantEntity.getFinalTenantId();
}


Caricamento…
Annulla
Salva