linwei
2024-01-24 bdc5d99198b06b9e3fd5e6794d2efea36398b60a
src/main/java/org/springblade/modules/system/mapper/RegionMapper.xml
@@ -130,7 +130,7 @@
        sort
        FROM blade_region
        where 1=1
        and district_code = '361102000000'
        and district_code = '361102'
        <if test="region.parentCode!=null and region.parentCode!=''">
            and parent_code = #{region.parentCode}
        </if>
@@ -155,7 +155,7 @@
        code as id,
        parent_code as parentId,
        name
        FROM blade_region where district_code = '361102000000'
        FROM blade_region where district_code = '361102'
        and region_level = 4
        <if test="regionCode!=null  and regionCode!=''">
            and code = #{regionCode}
@@ -165,7 +165,7 @@
        code as id,
        parent_code as parentId,
        name
        FROM blade_region where district_code = '361102000000'
        FROM blade_region where district_code = '361102'
        and region_level = 4
        <if test="regionCode!=null  and regionCode!=''">
            and parent_code = #{regionCode}