-
Notifications
You must be signed in to change notification settings - Fork 550
Closed
Labels
bugSomething isn't workingSomething isn't working
Milestone
Description
问题描述
简要描述您碰到的问题。
升级兼容版本 2.0.9 出现 转换实体 时间类型空串 默认1970 数据值
1.2.83 没这默认
环境信息
请填写以下信息:
- OS信息: [e.g.:CentOS 8.4.2105 4Core 3.10GHz 16 GB]
- JDK信息: [e.g.:Openjdk 1.8.0_201]
- 版本信息:[e.g.:Fastjson 2.0.9]
重现步骤
如何操作可以重现该问题:
- 使用 JSON.parseObject方法
- 输入{"ieFlag":"I","isIgnore":"0","status":0,"ciqStatus":"","bizDate":"2022-07-12","ciqCommitType":"0","customMaster":"4732","cusType":"1","seqNo":"","preEntryId":"","entryId":"","iePort":"4732","manualNo":"E534118A0032","ieDate":"2022-07-12","ddate":""} 数据
- 出现 对应实体 ddate 属性 不是null 而是默认 1970-01-01 08:00:00 错误
//可在此输入示例代码JSON.parseObject({"ieFlag":"I","isIgnore":"0","status":0,"ciqStatus":"","bizDate":"2022-07-12","ciqCommitType":"0","customMaster":"4732","cusType":"1","seqNo":"","preEntryId":"","entryId":"","iePort":"4732","manualNo":"E534118A0032","ieDate":"2022-07-12","ddate":""} , 实体.class);
期待的正确结果
对您期望发生的结果进行清晰简洁的描述。
对应实体 ddate 属性 应该是null 而不是默认1970 这样得数据 因为是空串
相关日志输出
请复制并粘贴任何相关的日志输出。
如图 调试 信息
附加信息
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working




