|
|
@@ -21,27 +21,6 @@ import java.util.HashMap;
|
|
|
*/
|
|
|
@EqualsAndHashCode(callSuper = true)
|
|
|
public class AlarmTotalPieResult extends HashMap<String,PieContent> {
|
|
|
- @ApiModelProperty(value = "堵塞报警")
|
|
|
- private PieContent jam;
|
|
|
- @ApiModelProperty(value = "极限报警")
|
|
|
- private PieContent limit;
|
|
|
- @ApiModelProperty(value = "未装药盒报警")
|
|
|
- private PieContent noBox;
|
|
|
- @ApiModelProperty(value = "电机失控报警")
|
|
|
- private PieContent outOfControl;
|
|
|
- @ApiModelProperty(value = "镇痛不足报警")
|
|
|
- private PieContent analgesicPoor;
|
|
|
- @ApiModelProperty(value = "不在服务区报警")
|
|
|
- private PieContent noSignal;
|
|
|
- @ApiModelProperty(value = "机械故障报警")
|
|
|
- private PieContent machine;
|
|
|
- @ApiModelProperty(value = "电量耗尽报警")
|
|
|
- private PieContent lowBattery;
|
|
|
- @ApiModelProperty(value = "气泡无液报警")
|
|
|
- private PieContent bubble;
|
|
|
- @ApiModelProperty(value = "低输注状态")
|
|
|
- private PieContent lowInfusion;
|
|
|
-
|
|
|
@ApiModelProperty(value = "该报警集总数")
|
|
|
@Getter
|
|
|
private long total=0;
|
|
|
@@ -149,8 +128,14 @@ public class AlarmTotalPieResult extends HashMap<String,PieContent> {
|
|
|
++total;
|
|
|
}
|
|
|
|
|
|
-
|
|
|
-
|
|
|
+ public AlarmTotalPieResult() {
|
|
|
+ getJam();
|
|
|
+ getLimit();
|
|
|
+ getNoBox();
|
|
|
+ getMachine();
|
|
|
+ getOutOfControl();
|
|
|
+ getLowBattery();
|
|
|
+ }
|
|
|
|
|
|
public void handle(CombineAlarmResult alarmResult) {
|
|
|
if (Boolean.TRUE.equals(alarmResult.getIsAlarm())) {
|