Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

when serialize HJ212 data to string, some Integer fields missing, such as PNO, PNUM... #15

Open
laoLiangLoveProgram opened this issue Sep 27, 2019 · 2 comments

Comments

@laoLiangLoveProgram
Copy link

When serializing HJ212 data to string, some Integer properties of the Data type are missing, such as CpData. And I simply add edif to the code to determine whether value instanceof Integer, also set key value. In addition, the check of the validate EL does not seem to work in serialization, for example: I will cpData.setRtd Interval (0); According to the check should be false, but not.
(机翻, 抱歉哈, 英文不太好)
At last, Thank you very much to open source your idea and code.

序列化一组数据到字符串时, Data类型的一些Integer属性丢失, CpData同样也是, 我在代码上 简单的又加了 if 判断, 当 instanceof Integer , 同样设置 key value.
另外, validate 的 校验 好像在序列化时不起作用, 例如: 我将 cpData.setRtdInterval(0); 按照校验应该是报错的, 但是并没有. 请问如何设置, 才能使校验起到效果

非常感谢作者能够开源自己的想法和代码, 再次感谢

@xiaoyao9184
Copy link
Owner

@laoLiangLoveProgram 可以提供一下你的代码吗?

@laoLiangLoveProgram
Copy link
Author

laoLiangLoveProgram commented Oct 5, 2019 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants