BusConMixEntity.java 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. package com.coffee.bus.entity;
  2. import com.baomidou.mybatisplus.annotation.TableField;
  3. import com.baomidou.mybatisplus.annotation.TableName;
  4. import com.coffee.bus.enums.ConstantMixEnum;
  5. import com.coffee.common.entity.TenantGenericEntity;
  6. import io.swagger.annotations.ApiModel;
  7. import io.swagger.annotations.ApiModelProperty;
  8. import lombok.Data;
  9. import lombok.EqualsAndHashCode;
  10. import lombok.ToString;
  11. import org.apache.ibatis.type.EnumTypeHandler;
  12. import org.hibernate.validator.constraints.Length;
  13. /**
  14. * @author lifang
  15. * @version 1.0.0
  16. * @ClassName BusConMixEntity.java
  17. * @Description TODO
  18. * @createTime 2022年04月14日 10:09:00
  19. */
  20. @EqualsAndHashCode(callSuper = true)
  21. @Data
  22. @TableName(value = "bus_con_mix",autoResultMap = true)
  23. @ApiModel(value="常量设置的混合类", description="包括:病区、手术、ASA、镇痛、麻醉、药品分类、医嘱")
  24. @ToString
  25. public class BusConMixEntity extends TenantGenericEntity<String,String> {
  26. @ApiModelProperty(value = "常量名称")
  27. @Length(max = 255,message = "名称长度不得超过255个字节")
  28. private String name;
  29. @ApiModelProperty(value = "备注")
  30. @Length(max = 255,message = "备注长度不得超过255个字节")
  31. private String remark;
  32. @ApiModelProperty(value = "混合常量类型",example = "ward,surgery,asa,anaesthesia,anal,drugCate,entrust")
  33. @TableField(javaType = true,typeHandler = EnumTypeHandler.class)
  34. private ConstantMixEnum type;
  35. }