SELECT q.Name FROM OrganizationServiceTemplateGroup p LEFT JOIN Organization q on p.OrganizationID=q.ID WHERE p.TemplateGroupID=#{templateGroupDtoID,jdbcType=VARCHAR} AND q.IsActive=1
SELECT
q.Name
FROM
organization_service_template_group p
LEFT JOIN
Organization q ON p.organization_id = q.ID
WHERE
p.template_group_id = #{templateGroupDtoID,jdbcType=VARCHAR} AND q.IsActive = 1