package com.coffee.bus.entity; import com.baomidou.mybatisplus.annotation.TableField; import com.baomidou.mybatisplus.annotation.TableName; import com.coffee.bus.enums.ConstantMixEnum; import com.coffee.common.entity.TenantGenericEntity; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import lombok.Data; import lombok.EqualsAndHashCode; import lombok.ToString; import org.apache.ibatis.type.EnumTypeHandler; import org.hibernate.validator.constraints.Length; /** * @author lifang * @version 1.0.0 * @ClassName BusConMixEntity.java * @Description TODO * @createTime 2022年04月14日 10:09:00 */ @EqualsAndHashCode(callSuper = true) @Data @TableName(value = "bus_con_mix",autoResultMap = true) @ApiModel(value="常量设置的混合类", description="包括:病区、手术、ASA、镇痛、麻醉、药品分类、医嘱") @ToString public class BusConMixEntity extends TenantGenericEntity { @ApiModelProperty(value = "常量名称") @Length(max = 255,message = "名称长度不得超过255个字节") private String name; @ApiModelProperty(value = "备注") @Length(max = 255,message = "备注长度不得超过255个字节") private String remark; @ApiModelProperty(value = "混合常量类型",example = "ward,surgery,asa,anaesthesia,anal,drugCate,entrust") @TableField(javaType = true,typeHandler = EnumTypeHandler.class) private ConstantMixEnum type; }