From 3f23e56f50379a5e07fad9fda5cf728fffe62d69 Mon Sep 17 00:00:00 2001 From: luozhun <2025254074@qq.com> Date: Thu, 31 Oct 2024 16:30:56 +0800 Subject: [PATCH] =?UTF-8?q?bool=E7=B1=BB=E5=9E=8B=E7=9A=84=E5=80=BC?= =?UTF-8?q?=E8=BE=93=E5=87=BA=E4=B8=BAnull?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/changhu/support/fastjson2/FastJson2Config.java | 2 -- .../resources/mapper/AdministrativeDivisionMapper.xml | 8 +------- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/policeSecurityServer/src/main/java/com/changhu/support/fastjson2/FastJson2Config.java b/policeSecurityServer/src/main/java/com/changhu/support/fastjson2/FastJson2Config.java index c6f6ed8..13fc834 100644 --- a/policeSecurityServer/src/main/java/com/changhu/support/fastjson2/FastJson2Config.java +++ b/policeSecurityServer/src/main/java/com/changhu/support/fastjson2/FastJson2Config.java @@ -88,8 +88,6 @@ public class FastJson2Config { JSONWriter.Feature.WriteNullListAsEmpty, //将String类型字段的空值序列化输出为空字符串”” JSONWriter.Feature.WriteNullStringAsEmpty, - //将Boolean类型字段的空值序列化输出为false - JSONWriter.Feature.WriteNullBooleanAsFalse, //在大范围超过JavaScript支持的整数,输出为字符串格式 JSONWriter.Feature.BrowserCompatible, //保留map空的字段 diff --git a/policeSecurityServer/src/main/resources/mapper/AdministrativeDivisionMapper.xml b/policeSecurityServer/src/main/resources/mapper/AdministrativeDivisionMapper.xml index 256a042..20ca9d1 100644 --- a/policeSecurityServer/src/main/resources/mapper/AdministrativeDivisionMapper.xml +++ b/policeSecurityServer/src/main/resources/mapper/AdministrativeDivisionMapper.xml @@ -12,13 +12,7 @@ and level <= #{level} order by code - - - - select ad1.code as 'value', ad1.name as 'label', ad1.parent_code as 'parentValue',