From 0c51780582797cc003d59fe483c4e2754b2af577 Mon Sep 17 00:00:00 2001
From: java110 <928255095@qq.com>
Date: 星期四, 04 三月 2021 14:33:05 +0800
Subject: [PATCH] 优化公摊

---
 java110-bean/src/main/java/com/java110/vo/ResultVo.java |   23 +++++++++++++++++++++++
 1 files changed, 23 insertions(+), 0 deletions(-)

diff --git a/java110-bean/src/main/java/com/java110/vo/ResultVo.java b/java110-bean/src/main/java/com/java110/vo/ResultVo.java
index 06c4976..8d4c337 100644
--- a/java110-bean/src/main/java/com/java110/vo/ResultVo.java
+++ b/java110-bean/src/main/java/com/java110/vo/ResultVo.java
@@ -64,6 +64,9 @@
     //鐢ㄦ潵瀛樻斁澶ц銆佸皬璁¢噾棰�
     private Object sumTotal;
 
+    //鎵�闇�鏁版嵁
+    private Object rep;
+
     public ResultVo() {
     }
 
@@ -93,6 +96,16 @@
         this.total = total;
         this.data = data;
         this.sumTotal = sumTotal;
+    }
+
+    public ResultVo(int records, int total, Object data, Object sumTotal, Object rep) {
+        this.code = CODE_OK;
+        this.msg = MSG_OK;
+        this.records = records;
+        this.total = total;
+        this.data = data;
+        this.sumTotal = sumTotal;
+        this.rep = rep;
     }
 
     public ResultVo(int code, String msg, Object data) {
@@ -171,6 +184,14 @@
 
     public void setSumTotal(Object sumTotal) {
         this.sumTotal = sumTotal;
+    }
+
+    public Object getRep() {
+        return rep;
+    }
+
+    public void setRep(Object rep) {
+        this.rep = rep;
     }
 
     @Override
@@ -308,4 +329,6 @@
         ResponseEntity<String> responseEntity = new ResponseEntity<String>(resultVo.toString(), HttpStatus.OK);
         return responseEntity;
     }
+
+
 }

--
Gitblit v1.8.0