郑根木 2 anni fa
parent
commit
cf03655647
1 ha cambiato i file con 3 aggiunte e 3 eliminazioni
  1. +3
    -3
      smtweb-framework/sw-framework-core/src/main/java/cc/smtweb/framework/core/mvc/service/SwListData.java

+ 3
- 3
smtweb-framework/sw-framework-core/src/main/java/cc/smtweb/framework/core/mvc/service/SwListData.java Vedi File

@@ -10,12 +10,12 @@ import java.util.List;
public class SwListData {
public static final SwListData EMPTY = new SwListData(new ArrayList<>(), 0);

private final List<SwMap> listRow;
private final List<SwMap> rows;
// 总数, -1 表示需要异步获取数量, >=0 表示总数
private int total;

private SwListData(List<SwMap> rows, int total) {
this.listRow = rows;
this.rows = rows;
this.total = total;
}

@@ -32,6 +32,6 @@ public class SwListData {
}

public boolean isEmpty() {
return listRow == null || listRow.isEmpty();
return this.rows == null || this.rows.isEmpty();
}
}

Caricamento…
Annulla
Salva