王佳豪
2021-03-25 960d4eff85f99f138eda0ac360d2870882156a47
src/main/resources/mapper/LocAreaMapper.xml
@@ -18,6 +18,13 @@
    <select id="queryAllLocArea" resultMap="BaseResultMap">
        select * from asr_loc_area
        <choose>
            <when test="areaType == 1">
                select * from asr_loc_area where area_type = '1'
            </when>
            <otherwise>
                select * from asr_loc_area where area_type != '1' or area_type is null
            </otherwise>
        </choose>
    </select>
</mapper>