Skip to content

Commit

Permalink
build: 升级版本
Browse files Browse the repository at this point in the history
  • Loading branch information
[email protected] committed May 12, 2024
1 parent 26bdeba commit 407d207
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 12 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

<properties>
<!-- 版本信息 -->
<revision>2.3.13-RELEASE</revision>
<revision>2.3.14-RELEASE</revision>

<!-- 默认仓库地址 -->
<repository.nexus.url>https://maven.aliyun.com/repository/public</repository.nexus.url>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -203,17 +203,15 @@ private void printResult(Object result, Parse parse) {
data.add(d);
}
}
} else {
if (result != null) {
Field[] fields = ReflectUtil.getFields(result.getClass());
columnNames = generateColumnNames(fields);
data = new ArrayList<>(1);
for (int i = 0; i < fields.length; i++) {
String[] d = new String[fields.length];
Object v = ReflectUtil.getFieldValue(result, fields[i]);
d[i] = StrUtil.toString(v);
data.add(d);
}
} else if (!(result instanceof List<?>) && result != null) {
Field[] fields = ReflectUtil.getFields(result.getClass());
columnNames = generateColumnNames(fields);
data = new ArrayList<>(1);
for (int i = 0; i < fields.length; i++) {
String[] d = new String[fields.length];
Object v = ReflectUtil.getFieldValue(result, fields[i]);
d[i] = StrUtil.toString(v);
data.add(d);
}
}

Expand Down

0 comments on commit 407d207

Please sign in to comment.