BusHospitalEntity.java 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  1. package com.coffee.bus.entity;
  2. import com.baomidou.mybatisplus.annotation.*;
  3. import com.baomidou.mybatisplus.extension.handlers.FastjsonTypeHandler;
  4. import com.coffee.bus.bean.Script;
  5. import com.coffee.bus.his.strategy.HisStrategyEnum;
  6. import com.coffee.common.entity.RecordCreationEntity;
  7. import com.coffee.common.entity.RecordModifierEntity;
  8. import io.swagger.annotations.ApiModel;
  9. import io.swagger.annotations.ApiModelProperty;
  10. import lombok.Data;
  11. import org.hibernate.validator.constraints.Length;
  12. import java.util.Date;
  13. /**
  14. * @author lifang
  15. * @version 1.0.0
  16. * @ClassName BusHospitalEntity.java
  17. * @Description TODO
  18. * @createTime 2022年03月19日 09:15:00
  19. */
  20. @Data
  21. @TableName(value = "bus_hospital",autoResultMap = true)
  22. @ApiModel(value="医院", description="医院实体类")
  23. public class BusHospitalEntity implements RecordModifierEntity, RecordCreationEntity {
  24. @TableId(type = IdType.ASSIGN_ID,value = "tenant_id")
  25. @ApiModelProperty(value = "tenant_id")
  26. private String id;
  27. /**
  28. * 医院所在区域编码
  29. */
  30. @ApiModelProperty(value = "区域编码(详情见各个行政区域行政编码)")
  31. @Length(max = 255,message = "区域编码名称长度不得超过255个字节")
  32. private String areaCode;
  33. /**
  34. * 医院地址
  35. */
  36. @ApiModelProperty(value = "医院地址")
  37. @Length(max = 255,message = "医院地址长度不得超过255个字节")
  38. private String address;
  39. /**
  40. * 医院名称
  41. */
  42. @ApiModelProperty(value = "医院名称")
  43. @Length(max = 255,message = "医院名称长度不得超过255个字节")
  44. private String name;
  45. /**
  46. * 联系电话
  47. */
  48. @ApiModelProperty(value = "联系电话")
  49. @Length(max = 255,message = "联系电话长度不得超过255个字节")
  50. private String telephone;
  51. /**
  52. * 邮箱联系地址
  53. */
  54. @ApiModelProperty(value = "邮箱联系地址")
  55. @Length(max = 255,message = "邮箱联系地址长度不得超过255个字节")
  56. private String email;
  57. private String remark;
  58. /**
  59. * 经纬度坐标
  60. */
  61. @TableField(typeHandler = FastjsonTypeHandler.class )
  62. private GeoPoint coordinate;
  63. @TableField(typeHandler = FastjsonTypeHandler.class)
  64. private Script script;
  65. @ApiModelProperty("设备数量")
  66. private Integer deviceCount;
  67. @ApiModelProperty("气泡报警数量")
  68. private Integer bubbleCount;
  69. @ApiModelProperty("堵塞报警数量")
  70. private Integer jamCount;
  71. @ApiModelProperty("极限报警数量")
  72. private Integer limitCount;
  73. @ApiModelProperty("未装药盒报警数量")
  74. private Integer noBoxCount;
  75. @ApiModelProperty("电机失控报警数量")
  76. private Integer outOfControlCount;
  77. @ApiModelProperty("镇痛不足提醒数量")
  78. private Integer warnAnalgesicPoorCount;
  79. @ApiModelProperty(" 不在服务区数量")
  80. private Integer noSignalCount;
  81. @ApiModelProperty(" 机械报警数量")
  82. private Integer machineCount;
  83. @ApiModelProperty("电量耗尽报警数量")
  84. private Integer lowBatteryCount;
  85. @ApiModelProperty("低输注报警数量")
  86. private Integer lowestCount;
  87. @ApiModelProperty("返厂维护报警数量")
  88. private Integer maintainCount;
  89. @TableField(fill = FieldFill.INSERT)
  90. private String createBy;
  91. @ApiModelProperty("接受his数据的策略, 1(默认)、获取病人全部信息 2、获取病人部分信息 3、获取病人最新信息")
  92. private HisStrategyEnum strategy;
  93. @TableField(fill = FieldFill.INSERT_UPDATE)
  94. private String updateBy;
  95. @TableField(fill = FieldFill.INSERT)
  96. private Date createTime;
  97. @TableField(fill = FieldFill.UPDATE)
  98. private Date updateTime;
  99. @TableField(fill = FieldFill.INSERT)
  100. @TableLogic(value = "0",delval = "1")
  101. private Integer isDelete;
  102. @Data
  103. public static class GeoPoint{
  104. private String lon;
  105. private String lat;
  106. }
  107. }