Browse Source

fix: 解决代码规范问题

fbp/release
lemon 3 months ago
parent
commit
afdbf158bf
  1. 20
      designer-base/src/main/java/com/fr/design/data/tabledata/wrapper/ServerTableDataWrapper.java

20
designer-base/src/main/java/com/fr/design/data/tabledata/wrapper/ServerTableDataWrapper.java

@ -27,13 +27,10 @@ public final class ServerTableDataWrapper extends AbstractTableDataWrapper {
@Override
public Icon getIcon() {
if (tabledata instanceof DBTableData) {
if (StringUtils.isBlank(((DBTableData) tabledata).getQuery())) {
return new LazyIcon("server_database_warning");
}
else {
return new LazyIcon("server_database");
}
} else if (tabledata instanceof ClassTableData) {
return getDBTableDataIcon();
}
if (tabledata instanceof ClassTableData) {
return new LazyIcon("class_table_data");
} else if (tabledata instanceof EmbeddedTableData) {
return new LazyIcon("data_table");
@ -49,6 +46,15 @@ public final class ServerTableDataWrapper extends AbstractTableDataWrapper {
return new LazyIcon("server_database");
}
private Icon getDBTableDataIcon() {
if (StringUtils.isBlank(((DBTableData) tabledata).getQuery())) {
return new LazyIcon("server_database_warning");
}
else {
return new LazyIcon("server_database");
}
}
/**
* 是否异常
* @return

Loading…
Cancel
Save