bool类型的值输出为null
This commit is contained in:
parent
9f6ad39528
commit
3f23e56f50
|
@ -88,8 +88,6 @@ public class FastJson2Config {
|
|||
JSONWriter.Feature.WriteNullListAsEmpty,
|
||||
//将String类型字段的空值序列化输出为空字符串””
|
||||
JSONWriter.Feature.WriteNullStringAsEmpty,
|
||||
//将Boolean类型字段的空值序列化输出为false
|
||||
JSONWriter.Feature.WriteNullBooleanAsFalse,
|
||||
//在大范围超过JavaScript支持的整数,输出为字符串格式
|
||||
JSONWriter.Feature.BrowserCompatible,
|
||||
//保留map空的字段
|
||||
|
|
|
@ -12,13 +12,7 @@
|
|||
<if test="level!=null">and level <= #{level}</if>
|
||||
order by code
|
||||
</select>
|
||||
<resultMap id="administrativeDivisionByParentCodeVoResultMap" type="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 id="administrativeDivisionByParentCode" resultType="com.changhu.common.pojo.vo.TreeNodeVo">
|
||||
select ad1.code as 'value',
|
||||
ad1.name as 'label',
|
||||
ad1.parent_code as 'parentValue',
|
||||
|
|
Loading…
Reference in New Issue