Bläddra i källkod

增加返回实体

dos 8 månader sedan
förälder
incheckning
5a5d5a3c2c

+ 1 - 1
game-common/src/main/java/com/game/common/core/domain/HttpRetPageArr.java

@@ -77,7 +77,7 @@ public class HttpRetPageArr<T> implements Serializable {
 
 	public static <T> HttpRetPageArr<T> genResultPage(int code, String msg, TableDataInfo<T> tableDataInfo) {
 		HttpRetPageArr<T> result = new HttpRetPageArr<T>(code, msg, tableDataInfo.getRows());
-		result.outTotalCount = tableDataInfo.getTotal().intValue();
+		result.outTotalCount = Integer.parseInt(String.valueOf(tableDataInfo.getTotal()));
 		return result;
 	}
 

+ 2 - 2
game-common/src/main/java/com/game/common/core/page/TableDataInfo.java

@@ -42,10 +42,10 @@ public class TableDataInfo<T> implements Serializable
      * @param list 列表数据
      * @param total 总记录数
      */
-    public TableDataInfo(List<T> list, int total)
+    public TableDataInfo(List<T> list, Integer total)
     {
         this.rows = list;
-        this.total = total;
+        this.total = total.longValue();
     }
 
 }