src/main/java/org/springblade/modules/system/mapper/RegionMapper.xml
@@ -102,4 +102,16 @@ SELECT * FROM blade_region ${ew.customSqlSegment} </select> <!--根据父编号查询所有的下级--> <select id="getTreeList" resultType="org.springblade.common.node.TreeStringNode"> SELECT code as id, parent_code as parentId, name FROM blade_region where district_code = '361102' <if test="parentCode!=null"> and parent_code = #{parentCode} </if> </select> </mapper>