|
|
@@ -0,0 +1,133 @@
|
|
|
+package com.coffee.bus.entity;
|
|
|
+
|
|
|
+import com.baomidou.mybatisplus.annotation.TableField;
|
|
|
+import com.baomidou.mybatisplus.annotation.TableName;
|
|
|
+import com.coffee.bus.enums.NetPumpWarnEnum;
|
|
|
+import com.coffee.bus.enums.NetPumpStatusEnum;
|
|
|
+import com.coffee.common.config.mybatis.DateToBigIntHandler;
|
|
|
+import com.coffee.common.entity.TenantGenericEntity;
|
|
|
+import com.coffee.common.enums.SexEnum;
|
|
|
+import io.swagger.annotations.ApiModel;
|
|
|
+import io.swagger.annotations.ApiModelProperty;
|
|
|
+import lombok.Data;
|
|
|
+import lombok.EqualsAndHashCode;
|
|
|
+import lombok.experimental.Accessors;
|
|
|
+import org.apache.ibatis.type.EnumOrdinalTypeHandler;
|
|
|
+
|
|
|
+import java.math.BigDecimal;
|
|
|
+import java.util.Date;
|
|
|
+
|
|
|
+/**
|
|
|
+ * <p>
|
|
|
+ *
|
|
|
+ * </p>
|
|
|
+ *
|
|
|
+ * @author fanfan
|
|
|
+ * @since 2020-07-03
|
|
|
+ */
|
|
|
+@Data
|
|
|
+@EqualsAndHashCode(callSuper = false)
|
|
|
+@Accessors(chain = true)
|
|
|
+@TableName(value = "bus_netpump_history",autoResultMap = true)
|
|
|
+@ApiModel(value="网络泵历史数据", description="")
|
|
|
+public class BusNetPumpHistoryEntity extends TenantGenericEntity<String,String> {
|
|
|
+
|
|
|
+ @ApiModelProperty(value = "网络泵id")
|
|
|
+ private String deviceId;
|
|
|
+
|
|
|
+ @ApiModelProperty(value = "临床id")
|
|
|
+ private String clinicId;
|
|
|
+
|
|
|
+ @ApiModelProperty(value = "病号")
|
|
|
+ private String patientCode;
|
|
|
+
|
|
|
+ @ApiModelProperty(value = "病人名称")
|
|
|
+ private String patientName;
|
|
|
+
|
|
|
+ @ApiModelProperty(value = "别名")
|
|
|
+ private String alias;
|
|
|
+
|
|
|
+ @ApiModelProperty(value = "病人性别")
|
|
|
+ @TableField(typeHandler = EnumOrdinalTypeHandler.class)
|
|
|
+ private SexEnum patientSex;
|
|
|
+
|
|
|
+ @ApiModelProperty(value = "科室")
|
|
|
+ private String dept;
|
|
|
+
|
|
|
+ @ApiModelProperty(value = "病区")
|
|
|
+ private String ward;
|
|
|
+
|
|
|
+ @ApiModelProperty(value = "床号")
|
|
|
+ private String bedNo;
|
|
|
+
|
|
|
+ @ApiModelProperty(value = "剩余量")
|
|
|
+ private BigDecimal remainQuantity;
|
|
|
+
|
|
|
+ @ApiModelProperty(value = "持续量")
|
|
|
+ private BigDecimal continueQuantity;
|
|
|
+
|
|
|
+ @ApiModelProperty(value = "自控锁时")
|
|
|
+ private BigDecimal selfControlLockTime;
|
|
|
+
|
|
|
+ @ApiModelProperty(value = "已输入量")
|
|
|
+ private BigDecimal inputQuantity;
|
|
|
+
|
|
|
+ @ApiModelProperty(value = "有效次数")
|
|
|
+ private Integer validTime;
|
|
|
+
|
|
|
+ @ApiModelProperty(value = "无效次数")
|
|
|
+ private Integer invalidTime;
|
|
|
+
|
|
|
+ @ApiModelProperty(value = "极限量")
|
|
|
+ private BigDecimal maxQuantity;
|
|
|
+
|
|
|
+ @ApiModelProperty(value = "首次量")
|
|
|
+ private Integer firstQuantity;
|
|
|
+
|
|
|
+ @ApiModelProperty(value = "追加量")
|
|
|
+ private BigDecimal singleQuantity;
|
|
|
+
|
|
|
+ @ApiModelProperty(value = "总量")
|
|
|
+ private Integer totalQuantity;
|
|
|
+
|
|
|
+ @ApiModelProperty(value = "总按次数")
|
|
|
+ private Integer totalCount;
|
|
|
+
|
|
|
+
|
|
|
+ @ApiModelProperty(value = "镇痛泵运行状态")
|
|
|
+ @TableField(typeHandler = EnumOrdinalTypeHandler.class)
|
|
|
+ private NetPumpStatusEnum runState;
|
|
|
+
|
|
|
+ @ApiModelProperty(value = "提醒信息")
|
|
|
+ @TableField(typeHandler = EnumOrdinalTypeHandler.class)
|
|
|
+ private NetPumpWarnEnum warn;
|
|
|
+
|
|
|
+ @ApiModelProperty(value = "开始时间")
|
|
|
+ @TableField(typeHandler = DateToBigIntHandler.class)
|
|
|
+ private Date startTime;
|
|
|
+
|
|
|
+ @ApiModelProperty(value = "是否已撤泵,0、未撤泵1、已撤泵")
|
|
|
+ private Boolean isUndo;
|
|
|
+
|
|
|
+ @ApiModelProperty(value = "备注")
|
|
|
+ private String remark;
|
|
|
+
|
|
|
+ @ApiModelProperty(value = "最后上传时间")
|
|
|
+ @TableField(typeHandler = DateToBigIntHandler.class)
|
|
|
+ private Date lastUploadTime;
|
|
|
+
|
|
|
+ @TableField(typeHandler = DateToBigIntHandler.class)
|
|
|
+ private Date registerTime;
|
|
|
+
|
|
|
+ @ApiModelProperty(value = "撤泵人")
|
|
|
+ private String undoBy;
|
|
|
+
|
|
|
+ @ApiModelProperty(value = "销毁人")
|
|
|
+ private String destroyer;
|
|
|
+
|
|
|
+ @ApiModelProperty(value = "见证人")
|
|
|
+ private String witnesses;
|
|
|
+
|
|
|
+ @TableField(typeHandler = DateToBigIntHandler.class)
|
|
|
+ private Date undoTime;
|
|
|
+}
|