|
@@ -4,6 +4,7 @@ package com.coffee.bus.entity;
|
|
|
import com.baomidou.mybatisplus.annotation.FieldStrategy;
|
|
import com.baomidou.mybatisplus.annotation.FieldStrategy;
|
|
|
import com.baomidou.mybatisplus.annotation.TableField;
|
|
import com.baomidou.mybatisplus.annotation.TableField;
|
|
|
import com.baomidou.mybatisplus.annotation.TableName;
|
|
import com.baomidou.mybatisplus.annotation.TableName;
|
|
|
|
|
+import com.coffee.aliyun.utils.*;
|
|
|
import com.coffee.bus.enums.DeviceAlarmEnum;
|
|
import com.coffee.bus.enums.DeviceAlarmEnum;
|
|
|
import com.coffee.bus.enums.DeviceStatusEnum;
|
|
import com.coffee.bus.enums.DeviceStatusEnum;
|
|
|
import com.coffee.bus.enums.DeviceTypeEnum;
|
|
import com.coffee.bus.enums.DeviceTypeEnum;
|
|
@@ -169,11 +170,13 @@ public class BusDeviceRunningEntity extends TenantGenericEntity<String,String> {
|
|
|
|
|
|
|
|
|
|
|
|
|
@ApiModelProperty(value = "泵运行状态",readOnly = true)
|
|
@ApiModelProperty(value = "泵运行状态",readOnly = true)
|
|
|
- @TableField(typeHandler = EnumTypeHandler.class,javaType = true,updateStrategy = FieldStrategy.IGNORED)
|
|
|
|
|
|
|
+// @TableField(typeHandler = EnumTypeHandler.class,javaType = true,updateStrategy = FieldStrategy.IGNORED)
|
|
|
|
|
+ @TableField(updateStrategy = FieldStrategy.IGNORED)
|
|
|
private DeviceStatusEnum runState;
|
|
private DeviceStatusEnum runState;
|
|
|
|
|
|
|
|
@ApiModelProperty(value = "报警信息",readOnly = true)
|
|
@ApiModelProperty(value = "报警信息",readOnly = true)
|
|
|
- @TableField(typeHandler = EnumTypeHandler.class,javaType = true,updateStrategy = FieldStrategy.IGNORED)
|
|
|
|
|
|
|
+// @TableField(typeHandler = EnumTypeHandler.class,javaType = true,updateStrategy = FieldStrategy.IGNORED)
|
|
|
|
|
+ @TableField(updateStrategy = FieldStrategy.IGNORED)
|
|
|
private DeviceAlarmEnum alarm;
|
|
private DeviceAlarmEnum alarm;
|
|
|
|
|
|
|
|
@ApiModelProperty(value = "输注即将结束提醒",readOnly = true)
|
|
@ApiModelProperty(value = "输注即将结束提醒",readOnly = true)
|
|
@@ -221,4 +224,38 @@ public class BusDeviceRunningEntity extends TenantGenericEntity<String,String> {
|
|
|
@TableField(exist = false)
|
|
@TableField(exist = false)
|
|
|
@JsonIgnoreProperties
|
|
@JsonIgnoreProperties
|
|
|
private String infusionModifyId;
|
|
private String infusionModifyId;
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
|
|
+ * @author 龙三郎
|
|
|
|
|
+ * 根据阿里云传回数据的items,设置输注的属性
|
|
|
|
|
+ * @param deviceName
|
|
|
|
|
+ * @param items
|
|
|
|
|
+ */
|
|
|
|
|
+ public void setFiledsByItems(String deviceName, Items items) {
|
|
|
|
|
+ this.deviceId = deviceName;
|
|
|
|
|
+ this.classification = items.getString(PumpParams.classification);
|
|
|
|
|
+// this.dataNumber = items.getString(PumpParams.dataNumber);
|
|
|
|
|
+ this.patientCode = items.getString(PumpParams.patientCode);
|
|
|
|
|
+ this.ward = items.getString(PumpParams.ward);
|
|
|
|
|
+ this.bedNo = items.getString(PumpParams.bedNo);
|
|
|
|
|
+ this.totalDose = items.getInteger(PumpParams.totalDose);
|
|
|
|
|
+ this.inputDose = items.getBigDecimal(PumpParams.finishedDose);
|
|
|
|
|
+ this.firstDose = items.getInteger(PumpParams.firstDosis);
|
|
|
|
|
+ this.maxDose = items.getBigDecimal(PumpParams.maxDose);
|
|
|
|
|
+ this.appendLockTime = items.getBigDecimal(PumpParams.lockTime);
|
|
|
|
|
+ this.continueDose = items.getBigDecimal(PumpParams.flow);
|
|
|
|
|
+ this.type = DeviceTypeUtils.getDeviceType(items.getInteger(PumpParams.pumpType));
|
|
|
|
|
+ this.appendDose = items.getBigDecimal(PumpParams.singleDosis);
|
|
|
|
|
+ this.pcaValidCount = items.getInteger(PumpParams.pcaValid);
|
|
|
|
|
+ this.pcaInvalidCount = items.getInteger(PumpParams.pcaInvalid);
|
|
|
|
|
+ this.pcaTotalCount = this.pcaInvalidCount + this.pcaValidCount;
|
|
|
|
|
+// this.electricQuantity = items.getInteger(PumpParams.electricQuantity);
|
|
|
|
|
+
|
|
|
|
|
+ // 运行状态
|
|
|
|
|
+ this.runState = DeviceRunStatusUtils.getRunStatus(items.getInteger(PumpParams.runStatus));
|
|
|
|
|
+ // 报警
|
|
|
|
|
+ this.alarm = DeviceAlarmUtils.getAlarm(items.getInteger(PumpParams.alarmStatus));
|
|
|
|
|
+
|
|
|
|
|
+ // 预报
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|