bool类型的值输出为null

This commit is contained in:
luozhun 2024-10-31 16:30:56 +08:00
parent 9f6ad39528
commit 3f23e56f50
2 changed files with 1 additions and 9 deletions

View File

@ -88,8 +88,6 @@ public class FastJson2Config {
JSONWriter.Feature.WriteNullListAsEmpty, JSONWriter.Feature.WriteNullListAsEmpty,
//将String类型字段的空值序列化输出为空字符串 //将String类型字段的空值序列化输出为空字符串
JSONWriter.Feature.WriteNullStringAsEmpty, JSONWriter.Feature.WriteNullStringAsEmpty,
//将Boolean类型字段的空值序列化输出为false
JSONWriter.Feature.WriteNullBooleanAsFalse,
//在大范围超过JavaScript支持的整数输出为字符串格式 //在大范围超过JavaScript支持的整数输出为字符串格式
JSONWriter.Feature.BrowserCompatible, JSONWriter.Feature.BrowserCompatible,
//保留map空的字段 //保留map空的字段

View File

@ -12,13 +12,7 @@
<if test="level!=null">and level &lt;= #{level}</if> <if test="level!=null">and level &lt;= #{level}</if>
order by code order by code
</select> </select>
<resultMap id="administrativeDivisionByParentCodeVoResultMap" type="com.changhu.common.pojo.vo.TreeNodeVo"> <select id="administrativeDivisionByParentCode" resultType="com.changhu.common.pojo.vo.TreeNodeVo">
<result
column="extData"
typeHandler="com.baomidou.mybatisplus.extension.handlers.Fastjson2TypeHandler"
property="extData"/>
</resultMap>
<select id="administrativeDivisionByParentCode" resultMap="administrativeDivisionByParentCodeVoResultMap">
select ad1.code as 'value', select ad1.code as 'value',
ad1.name as 'label', ad1.name as 'label',
ad1.parent_code as 'parentValue', ad1.parent_code as 'parentValue',