101captain
2021-12-23 11c9f6c502c6ff7cd24fd1b45af801c7bd3c3e08
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;
@@ -16,7 +17,12 @@
    @ApiModelProperty("总数")
    private Integer allCount;
    @ApiModelProperty("占比")
    private Integer percent;
    private int percent;
    public int getPercent() {
        this.percent=this.num*100/this.allCount;
        return this.percent;
    }
    public Integer getKey() {
        return key;
@@ -42,11 +48,9 @@
        this.allCount = allCount;
    }
    public void setPercent(Integer percent) {
    public void setPercent(int percent) {
        this.percent = percent;
    }
    public Integer getPercent() {
        return  this.percent = num*100/allCount;
    }
}