Эх сурвалжийг харах

fix 修改没数据时row为null

Administrator 4 жил өмнө
parent
commit
a7d16a86db

+ 1 - 1
boman-web-core/src/main/java/com/boman/web/core/service/TableServiceCmdService.java

@@ -261,7 +261,7 @@ public class TableServiceCmdService {
         rows.put(FormDataConstant.PAGE_TOTAL, total);
         rows.put(TABLE_HEAD_LIST, getTableHeadList(genTable));
         if (total <= 0) {
-            rows.put(FormDataConstant.PAGE_ROWS, null);
+            rows.put(FormDataConstant.PAGE_ROWS, new ArrayList<>());
             return AjaxResult.success(rows);
         }