| 12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- 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.entity.TenantGenericEntity;
- import com.coffee.common.enums.SexEnum;
- import io.swagger.annotations.ApiModel;
- import io.swagger.annotations.ApiModelProperty;
- import lombok.Data;
- import lombok.EqualsAndHashCode;
- import org.apache.ibatis.type.EnumOrdinalTypeHandler;
- import org.hibernate.validator.constraints.Length;
- /**
- * @author lifang
- * @version 1.0.0
- * @ClassName BusDoctorEntity.java
- * @Description TODO
- * @createTime 2022年03月21日 11:17:00
- */
- @EqualsAndHashCode(callSuper = true)
- @Data
- @TableName(value = "bus_patient",autoResultMap = true)
- @ApiModel(value="住院病人基本信息", description="住院病人基本信息实体类")
- public class BusPatientEntity extends TenantGenericEntity<String,String> {
- @ApiModelProperty(value = "病号")
- @Length(max = 255,message = "病号长度不得超过255个字节")
- private String code;
- @ApiModelProperty(value = "病人名称")
- @Length(max = 255,message = "医生岗位长度不得超过255个字节")
- private String name;
- @TableField(typeHandler = EnumOrdinalTypeHandler.class)
- @ApiModelProperty(value = "性别")
- private SexEnum gender;
- @TableField(fill = FieldFill.INSERT)
- @TableLogic(value = "0",delval = "1")
- private Integer isDelete;
- }
|