Skip to content

Conversation

@PengyuDeng
Copy link
Contributor

  • 新增 BooleanConverter 类处理布尔值的读写转换

- 新增 BooleanConverter 类处理布尔值的读写转换
if (val == null) {
return null;
}
return val instanceof Boolean ? ((Boolean) val) ? "是" : "否" : String.valueOf(val);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

是否能支持国际化? 或者配置化?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

包支持的

@zhou-hao zhou-hao merged commit bfb6154 into jetlinks:2.11 Oct 31, 2025
2 of 3 checks passed
@PengyuDeng PengyuDeng deleted the bool_convert branch November 1, 2025 05:35
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

Successfully merging this pull request may close these issues.

2 participants