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 | 21 +++++++++++++++++++++
1 files changed, 21 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 bf12ff5..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) {
@@ -173,6 +186,14 @@
this.sumTotal = sumTotal;
}
+ public Object getRep() {
+ return rep;
+ }
+
+ public void setRep(Object rep) {
+ this.rep = rep;
+ }
+
@Override
public String toString() {
return JSONObject.toJSONString(this, SerializerFeature.DisableCircularReferenceDetect, SerializerFeature.WriteDateUseDateFormat);
--
Gitblit v1.8.0