@@ -219,7 +219,7 @@
and a.level = #{level}
</if>
<if test="type != null and type != ''">
- and b.type = #{type}
+ and a.type = #{type}
<if test="parentId != null and parentId != ''">
AND ((a.parent_id = #{parentId} AND a.parent_id IS NOT NULL)