package com.coffee.bus.entity; import com.baomidou.mybatisplus.annotation.FieldFill; import com.baomidou.mybatisplus.annotation.TableField; import com.baomidou.mybatisplus.annotation.TableLogic; import com.baomidou.mybatisplus.annotation.TableName; import com.coffee.common.config.mybatis.DateToBigIntHandler; import com.coffee.common.entity.GenericEntity; import com.coffee.common.entity.TenantGenericEntity; import com.fasterxml.jackson.annotation.JsonFormat; import io.swagger.annotations.ApiModelProperty; import lombok.Data; import org.apache.poi.hpsf.Decimal; import java.math.BigDecimal; import java.util.Date; /** * @author 龙三郎 * @version 1.0.0 * @ClassName BusDeviceUseEntity.java * @Description TODO * @createTime 2022年03月30日 11:01:00 */ @Data @TableName("bus_device_used") public class BusDeviceUsedEntity extends TenantGenericEntity { @ApiModelProperty("临床id") private String clinicId; @ApiModelProperty("设备id") private String deviceId; private String patientId; private Short useStatus; @TableField(typeHandler = DateToBigIntHandler.class) @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss") private Date startTime; @TableField(typeHandler = DateToBigIntHandler.class) @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss") private Date endTime; @TableField(typeHandler = DateToBigIntHandler.class) @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss") private Date startUseTime; @TableField(typeHandler = DateToBigIntHandler.class) @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss") private Date endUseTime; private String classification; private Integer dataNumber; private Integer dataTotal; @TableField(typeHandler = DateToBigIntHandler.class) @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss") private Date lastReceiveTime; private String pumpType; private String patientCode; private String ward; private String bedNo; private Integer totalDose; private BigDecimal finishedDose; private BigDecimal flow; private Integer firstDose; private BigDecimal singleDose; private Integer lockTime; private Integer pcaValid; private Integer pcaInvalid; private BigDecimal maxDose; private Integer electricQuantity; private Double maxFlow; private Double minFlow; private Integer flowAdjustRate; private Integer flowUpPcaValid; private Double flowUpTime; private Double flowDownTime; private Integer warnFlow; private Integer pluseDose; private Integer pluseLockTime; private Integer pluseFirstLockTime; private Integer runStatus; private Integer alarmStatus; private Short warnWillFinished; private Short warnAnalgesicPoor; private Short warnLowBattery; @TableField(typeHandler = DateToBigIntHandler.class,fill = FieldFill.INSERT) @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss") private Date createTime; @TableField(fill = FieldFill.INSERT) private String createBy; @TableField(typeHandler = DateToBigIntHandler.class,fill = FieldFill.UPDATE) @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss") private Date updateTime; @TableField(fill = FieldFill.INSERT_UPDATE) private String updateBy; @TableField(fill = FieldFill.INSERT) @TableLogic(value = "0",delval = "1") private Integer isDelete; }