Эх сурвалжийг харах

fix 修改店铺返回id为string,解决精度丢失问题

chenchen 5 сар өмнө
parent
commit
3ccce9be70

+ 4 - 4
common/common-core/src/main/java/com/tourism/common/core/config/CommonWebMvcConfig.java

@@ -57,10 +57,10 @@ public class CommonWebMvcConfig implements WebMvcConfigurer {
         fastJsonConfig.setSerializerFeatures(
                 SerializerFeature.PrettyFormat,
                 SerializerFeature.DisableCircularReferenceDetect,
-                SerializerFeature.IgnoreNonFieldGetter
-//                SerializerFeature.WriteMapNullValue,
-//                SerializerFeature.WriteNullListAsEmpty,
-//                SerializerFeature.WriteNullStringAsEmpty
+//                SerializerFeature.IgnoreNonFieldGetter,
+                SerializerFeature.WriteMapNullValue,
+                SerializerFeature.WriteNullListAsEmpty,
+                SerializerFeature.WriteNullStringAsEmpty
                 );
         fastJsonConfig.setDateFormat(MyDateUtil.COMMON_SHORT_DATETIME_FORMAT);
         fastConverter.setFastJsonConfig(fastJsonConfig);