MapDatabaseResult.java
1.2 KB
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
57
58
59
60
package com.skua.modules.emergency.vo;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.util.List;
import java.util.Map;
/**
* 风险库对象
* @author 11389
*/
@Data
public class MapDatabaseResult {
/**厂站ID*/
@ApiModelProperty(value = "厂站ID")
private String departId;
/**厂站名称*/
@ApiModelProperty(value = "厂站名称")
private String departName;
/**经度*/
@ApiModelProperty(value = "经度")
private String longitude;
/**纬度*/
@ApiModelProperty(value = "纬度")
private String latitude;
@ApiModelProperty(value = "隐患未处理数量")
private Integer yhNum;
@ApiModelProperty(value = "已处理数量")
private Integer yclNum;
/**隐患排查事件*/
@ApiModelProperty(value = "隐患排查事件")
private List<DangerDatabaseResult> yhList;
public Integer getYhNum() {
yhNum = 0 ;
if(yhList != null ){
for( DangerDatabaseResult result: yhList){
if("1".equals(result.getStatus())){
yhNum ++ ;
}
}
}
return yhNum;
}
public Integer getYclNum() {
yclNum = 0 ;
if(yhList != null ){
for( DangerDatabaseResult result: yhList){
if("2".equals(result.getStatus())){
yclNum ++ ;
}
}
}
return yclNum;
}
}