Select("so.organization_code, so.name, so.created_time, t3.count as platform_users_number, so.description, (case when so.name <> '平台用户组织' then '政务机构' else '平台用户组织' end) as organization_type").
Join("LEFT","(SELECT count(id),su.organization_id from system_user as su where su.is_deleted = 0 and su.state = 1 GROUP BY su.organization_id) t3","t3.organization_id = so.organization_id").
Where("so.organization_id = ? and is_deleted = 0",input.OrganizationId).Get(&orgInfo);err!=nil{
Select("so.organization_code, so.name, so.created_time, t3.count as platform_users_number, so.description, (case when so.name <> '平台用户组织' then '政务机构' else '平台用户组织' end) as organization_type").
Join("LEFT","(SELECT count(id),su.organization_id from system_user as su where su.is_deleted = 0 and su.state = 1 GROUP BY su.organization_id) t3","t3.organization_id = so.organization_id").
Where("so.organization_id = ? and is_deleted = 0",input.OrganizationId).Get(&orgInfo);err!=nil{