refactor 支持更多数据库布尔类型

Signed-off-by: 辣肉拌饭 <loptr7@foxmail.com>
This commit is contained in:
辣肉拌饭 2026-05-22 07:58:28 +00:00 committed by Gitee
parent 7a93c3fe05
commit 3e549e3604
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 4 additions and 6 deletions

View File

@ -48,9 +48,8 @@ public class ChainRead extends AbstractSqlRead<ChainVO> {
@Override
public boolean getEnableFiledValue(ResultSet rs) throws SQLException {
String chainEnableField = super.config.getChainEnableField();
byte enable = rs.getByte(chainEnableField);
return enable == 1;
return rs.getBoolean(chainEnableField);
}
@Override

View File

@ -48,9 +48,8 @@ public class ScriptRead extends AbstractSqlRead<ScriptVO> {
@Override
public boolean getEnableFiledValue(ResultSet rs) throws SQLException {
String scriptEnableField = super.config.getScriptEnableField();
byte enable = rs.getByte(scriptEnableField);
return enable == 1;
return rs.getBoolean(scriptEnableField);
}
@Override