src/main/java/org/springblade/modules/system/mapper/RegionMapper.xml
@@ -107,4 +107,10 @@ <select id="selRegionDetail" resultType="org.springblade.modules.system.entity.Region"> SELECT * FROM blade_region where district_name = #{districtName} and city_name = #{cityName} </select> <!--查询为当前父编码的个数--> <select id="getByParentCodeCount" resultType="java.lang.Integer"> select ifnull(count(*),0) num from blade_region where parent_code = #{parentCode} </select> </mapper>