add: multi-tenant phase III
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user