add: multi-tenant phase III

This commit is contained in:
2024-06-27 17:22:05 +08:00
parent 040a3b1bad
commit 38f34ba0c2
8 changed files with 74 additions and 20 deletions

View File

@@ -429,3 +429,14 @@ func (r *SysTenantImpl) DeleteTenantById(tenantId string) int64 {
}
return results
}
// DeleteTenantById 删除租户管理信息
func (r *SysTenantImpl) UpdateUDMSubTenantID(tenantId, assetKey string) int64 {
sql := "update u_sub_user set tenant_id = ? where imsi like ?"
results, err := datasource.ExecDB("", sql, []any{tenantId, assetKey})
if err != nil {
logger.Errorf("update err: %v", err)
return 0
}
return results
}