Skip to content

Commit

Permalink
优化判断。
Browse files Browse the repository at this point in the history
  • Loading branch information
wangliang181230 committed Nov 24, 2023
1 parent 0acdbf3 commit 4b5e888
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -259,8 +259,7 @@ private static void loadFieldValue(Field field, ResultSet resultSet, int i) thro
field.setValue(new SerialDatalink(url));
}
} else if (dataType == Types.TINYINT) {
Object object = resultSet.getObject(i);
if (object != null) {
if (!resultSet.wasNull()) {
field.setValue(resultSet.getInt(i));
}
} else if (dataType == Types.JAVA_OBJECT) {
Expand Down

0 comments on commit 4b5e888

Please sign in to comment.