巡检分析 异常巡检统计补充
正在显示
1 个修改的文件
包含
12 行增加
和
0 行删除
... | @@ -34,4 +34,16 @@ public class InspectionAbnormalItemsTrendVO { | ... | @@ -34,4 +34,16 @@ public class InspectionAbnormalItemsTrendVO { |
34 | private Integer notCheckedItemsCount; | 34 | private Integer notCheckedItemsCount; |
35 | @ApiModelProperty(value = "异常项数量") | 35 | @ApiModelProperty(value = "异常项数量") |
36 | private Integer abnormalItemsCount; | 36 | private Integer abnormalItemsCount; |
37 | |||
38 | public Integer getNotCheckedItemsCount() { | ||
39 | if (totalCount != null && checkedItemsCount != null) { | ||
40 | if (totalCount - checkedItemsCount < 0) { | ||
41 | return checkedItemsCount - totalCount; | ||
42 | } else { | ||
43 | return totalCount - checkedItemsCount; | ||
44 | } | ||
45 | } else { | ||
46 | return 0; | ||
47 | } | ||
48 | } | ||
37 | } | 49 | } | ... | ... |
-
请 注册 或 登录 后发表评论