From 3433d1cc8e42218bba14343a143e209c1997626f Mon Sep 17 00:00:00 2001
From: lidongdong <1459917685@qq.com>
Date: 星期二, 15 十一月 2022 16:39:51 +0800
Subject: [PATCH] 修改办事指南所属部门集合
---
flower_city/src/main/java/com/dg/core/util/TableDataInfo.java | 12 +++++++-----
1 files changed, 7 insertions(+), 5 deletions(-)
diff --git a/flower_city/src/main/java/com/dg/core/util/TableDataInfo.java b/flower_city/src/main/java/com/dg/core/util/TableDataInfo.java
index 653f869..1b827d3 100644
--- a/flower_city/src/main/java/com/dg/core/util/TableDataInfo.java
+++ b/flower_city/src/main/java/com/dg/core/util/TableDataInfo.java
@@ -1,5 +1,7 @@
package com.dg.core.util;
+import com.dg.core.ResultData;
+
import java.io.Serializable;
import java.util.List;
@@ -8,7 +10,7 @@
*
* @author ruoyi
*/
-public class TableDataInfo implements Serializable
+public class TableDataInfo<T> implements Serializable
{
private static final long serialVersionUID = 1L;
@@ -16,7 +18,7 @@
private long total;
/** 列表数据 */
- private List<?> rows;
+ private List<T> rows;
/** 消息状态码 */
private int result;
@@ -37,7 +39,7 @@
* @param list 列表数据
* @param total 总记录数
*/
- public TableDataInfo(List<?> list, long total)
+ public TableDataInfo(List<T> list, long total)
{
this.rows = list;
this.total = total;
@@ -53,12 +55,12 @@
this.total = total;
}
- public List<?> getRows()
+ public List<T> getRows()
{
return rows;
}
- public void setRows(List<?> rows)
+ public void setRows(List<T> rows)
{
this.rows = rows;
}
--
Gitblit v1.7.1