zuhu管理完善

This commit is contained in:
2026-04-15 16:13:59 +08:00
parent 11d30d40b0
commit 9ab91ac87e
5 changed files with 102 additions and 4 deletions

View File

@@ -91,6 +91,7 @@ public class TenantController {
public ResponseEntity<Map<String, Object>> addTenant(
@Parameter(description = "租户信息", required = true)
@RequestBody Tenant tenant) {
tenant.setTenantCode("TENANT_ID_"+tenant.getTenantCode());
tenant.setId(tenant.getTenantCode());
Map<String, Object> result = tenantService.addTenant(tenant);
Boolean success = (Boolean) result.get("success");