101captain
2021-12-23 11c9f6c502c6ff7cd24fd1b45af801c7bd3c3e08
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
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;
 
/**
 * @author zzj
 */
@ApiModel("返攀登记居家隔离数据标题数量")
public class IndexReserveSub {
    @ApiModelProperty("标题值")
    private Integer key;
    @ApiModelProperty("数量")
    private Integer num;
    @ApiModelProperty("总数")
    private Integer allCount;
    @ApiModelProperty("占比")
    private int percent;
 
    public int getPercent() {
        this.percent=this.num*100/this.allCount;
        return this.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(int percent) {
        this.percent = percent;
    }
 
 
}