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

对于mysql数据库中为null的字段,接口返回时没有对应的字段 #794

Closed
fw-fw opened this issue Feb 7, 2025 · 2 comments
Closed

Comments

@fw-fw
Copy link

fw-fw commented Feb 7, 2025

Description

1.表中某些字段为null
Image
2.查询时结果没有返回对应的字段
Image
3.我看源码在AbstractSQLExecutor类中做了如下处理(不知道我找的对不对)
Image
4.我是用的依赖版本为apijson-framework 4.7.2,请问作者大大在后续版本中有没有兼容这个点呢?谢谢

@TommyLemon
Copy link
Collaborator

升级到 7.1.0 + ,AbstractSQLExecutor.ENABLE_OUTPUT_NULL_COLUMN = true

感谢 @calmcc 的贡献:
#770

@fw-fw
Copy link
Author

fw-fw commented Feb 10, 2025

升级到 7.1.0 + ,AbstractSQLExecutor.ENABLE_OUTPUT_NULL_COLUMN = true

感谢 的贡献: #770

非常感谢!

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

No branches or pull requests

2 participants