<sqlMap> <sql id="get_org_by_userid"> select sys_org.* from sys_user, sys_org where sys_user.org_id = sys_org.id and sys_user.id = ? </sql> </sqlMap>