|
|
@@ -12,7 +12,6 @@ import io.swagger.annotations.ApiModel;
|
|
|
import io.swagger.annotations.ApiModelProperty;
|
|
|
import lombok.Data;
|
|
|
|
|
|
-
|
|
|
/**
|
|
|
* @author lifang
|
|
|
* @version 1.0.0
|
|
|
@@ -36,8 +35,9 @@ public class CommonDeviceParam<K,T> extends DeviceProperties<K,T> {
|
|
|
@TableField(updateStrategy = FieldStrategy.IGNORED)
|
|
|
private Boolean warnWillFinished;
|
|
|
|
|
|
- @ApiModelProperty(value = "镇痛不足提醒")
|
|
|
+ @ApiModelProperty(value = "镇痛不足提醒",hidden = true)
|
|
|
// @TableField(updateStrategy = FieldStrategy.IGNORED)
|
|
|
+ @JsonIgnore
|
|
|
private Boolean warnAnalgesicPoor;
|
|
|
|
|
|
@ApiModelProperty(value = "电量偏低提醒")
|
|
|
@@ -48,6 +48,10 @@ public class CommonDeviceParam<K,T> extends DeviceProperties<K,T> {
|
|
|
@TableField(updateStrategy = FieldStrategy.IGNORED)
|
|
|
private FlowStatusEnum warnFlow;
|
|
|
|
|
|
+ @ApiModelProperty("是否重设参数")
|
|
|
+ @TableField(updateStrategy = FieldStrategy.IGNORED)
|
|
|
+ private Boolean resetParams;
|
|
|
+
|
|
|
@TableField(exist = false)
|
|
|
@ApiModelProperty(value = "提醒字段",hidden = true)
|
|
|
private String warns;
|
|
|
@@ -96,8 +100,20 @@ public class CommonDeviceParam<K,T> extends DeviceProperties<K,T> {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ private void judgeResetParams() {
|
|
|
+ if(!Boolean.TRUE.equals(this.resetParams)){
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ if (CharSequenceUtil.isEmpty(this.warns)) {
|
|
|
+ this.warns="重设参数;";
|
|
|
+ }else {
|
|
|
+ this.warns=this.warns+"重设参数;";
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
public void handleWarn(){
|
|
|
judgeWarnAnalgesicPoor();
|
|
|
+ judgeResetParams();
|
|
|
judgeWarnFlow();
|
|
|
judgeWarnLowBattery();
|
|
|
judgeWarnWillFinished();
|