From f57c00c77d80d2fb495fd78ce20f668daf7b182d Mon Sep 17 00:00:00 2001
From: 101captain <237651143@qq.com>
Date: 星期四, 23 十二月 2021 16:32:45 +0800
Subject: [PATCH] 12/23 大屏修改
---
springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/model/vos/community/bigscreen/IndexReserveSub.java | 46 +++++++++++++++++++++++++++++++++++++++++++---
1 files changed, 43 insertions(+), 3 deletions(-)
diff --git a/springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/model/vos/community/bigscreen/IndexReserveSub.java b/springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/model/vos/community/bigscreen/IndexReserveSub.java
index 401945a..45b9306 100644
--- a/springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/model/vos/community/bigscreen/IndexReserveSub.java
+++ b/springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/model/vos/community/bigscreen/IndexReserveSub.java
@@ -1,5 +1,6 @@
package com.panzhihua.common.model.vos.community.bigscreen;
+import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
@@ -7,11 +8,50 @@
/**
* @author zzj
*/
-@Data
@ApiModel("返攀登记居家隔离数据标题数量")
public class IndexReserveSub {
- @ApiModelProperty("标题")
- private String sub;
+ @ApiModelProperty("标题值")
+ private Integer key;
@ApiModelProperty("数量")
private Integer num;
+ @ApiModelProperty("总数")
+ private Integer allCount;
+ @ApiModelProperty("占比")
+ @JsonIgnoreProperties
+ private Integer percent;
+
+ public Integer getPercent() {
+ percent=num*100/allCount;
+ return percent;
+ }
+
+ public Integer getKey() {
+ return key;
+ }
+
+ public void setKey(Integer key) {
+ this.key = key;
+ }
+
+ public Integer getNum() {
+ return num;
+ }
+
+ public void setNum(Integer num) {
+ this.num = num;
+ }
+
+ public Integer getAllCount() {
+ return allCount;
+ }
+
+ public void setAllCount(Integer allCount) {
+ this.allCount = allCount;
+ }
+
+ public void setPercent(Integer percent) {
+ this.percent = percent;
+ }
+
+
}
--
Gitblit v1.7.1