BusDeviceUsedEntity.java 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. package com.coffee.bus.entity;
  2. import com.baomidou.mybatisplus.annotation.FieldFill;
  3. import com.baomidou.mybatisplus.annotation.TableField;
  4. import com.baomidou.mybatisplus.annotation.TableLogic;
  5. import com.baomidou.mybatisplus.annotation.TableName;
  6. import com.coffee.common.config.mybatis.DateToBigIntHandler;
  7. import com.coffee.common.entity.GenericEntity;
  8. import com.coffee.common.entity.TenantGenericEntity;
  9. import com.fasterxml.jackson.annotation.JsonFormat;
  10. import io.swagger.annotations.ApiModelProperty;
  11. import lombok.Data;
  12. import org.apache.poi.hpsf.Decimal;
  13. import java.math.BigDecimal;
  14. import java.util.Date;
  15. /**
  16. * @author 龙三郎
  17. * @version 1.0.0
  18. * @ClassName BusDeviceUseEntity.java
  19. * @Description TODO
  20. * @createTime 2022年03月30日 11:01:00
  21. */
  22. @Data
  23. @TableName("bus_device_used")
  24. public class BusDeviceUsedEntity extends TenantGenericEntity<String,String> {
  25. @ApiModelProperty("临床id")
  26. private String clinicId;
  27. @ApiModelProperty("设备id")
  28. private String deviceId;
  29. private String patientId;
  30. private Short useStatus;
  31. @TableField(typeHandler = DateToBigIntHandler.class)
  32. @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
  33. private Date startTime;
  34. @TableField(typeHandler = DateToBigIntHandler.class)
  35. @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
  36. private Date endTime;
  37. @TableField(typeHandler = DateToBigIntHandler.class)
  38. @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
  39. private Date startUseTime;
  40. @TableField(typeHandler = DateToBigIntHandler.class)
  41. @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
  42. private Date endUseTime;
  43. private String classification;
  44. private Integer dataNumber;
  45. private Integer dataTotal;
  46. @TableField(typeHandler = DateToBigIntHandler.class)
  47. @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
  48. private Date lastReceiveTime;
  49. private String pumpType;
  50. private String patientCode;
  51. private String ward;
  52. private String bedNo;
  53. private Integer totalDose;
  54. private BigDecimal finishedDose;
  55. private BigDecimal flow;
  56. private Integer firstDose;
  57. private BigDecimal singleDose;
  58. private Integer lockTime;
  59. private Integer pcaValid;
  60. private Integer pcaInvalid;
  61. private BigDecimal maxDose;
  62. private Integer electricQuantity;
  63. private Double maxFlow;
  64. private Double minFlow;
  65. private Integer flowAdjustRate;
  66. private Integer flowUpPcaValid;
  67. private Double flowUpTime;
  68. private Double flowDownTime;
  69. private Integer warnFlow;
  70. private Integer pluseDose;
  71. private Integer pluseLockTime;
  72. private Integer pluseFirstLockTime;
  73. private Integer runStatus;
  74. private Integer alarmStatus;
  75. private Short warnWillFinished;
  76. private Short warnAnalgesicPoor;
  77. private Short warnLowBattery;
  78. @TableField(typeHandler = DateToBigIntHandler.class,fill = FieldFill.INSERT)
  79. @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
  80. private Date createTime;
  81. @TableField(fill = FieldFill.INSERT)
  82. private String createBy;
  83. @TableField(typeHandler = DateToBigIntHandler.class,fill = FieldFill.UPDATE)
  84. @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
  85. private Date updateTime;
  86. @TableField(fill = FieldFill.INSERT_UPDATE)
  87. private String updateBy;
  88. @TableField(fill = FieldFill.INSERT)
  89. @TableLogic(value = "0",delval = "1")
  90. private Integer isDelete;
  91. }