| | |
| | | package cc.mrbird.febs.server.hr.entity; |
| | | |
| | | import java.util.Date; |
| | | import java.math.BigDecimal; |
| | | import java.io.Serializable; |
| | | import java.util.Date; |
| | | |
| | | import cc.mrbird.febs.common.core.annotation.FieldInfo; |
| | | import cc.mrbird.febs.common.core.utils.DateDeSerializer; |
| | | import cc.mrbird.febs.common.core.utils.DateSerializer; |
| | | import cc.mrbird.febs.common.core.utils.DateTimeDeserializer; |
| | | import cc.mrbird.febs.common.core.utils.DateTimeSerializer; |
| | | import com.fasterxml.jackson.databind.annotation.JsonDeserialize; |
| | | import com.fasterxml.jackson.databind.annotation.JsonSerialize; |
| | | |
| | | import java.math.BigDecimal; |
| | | |
| | | import lombok.Data; |
| | | import com.baomidou.mybatisplus.annotation.IdType; |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import com.baomidou.mybatisplus.annotation.Version; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | |
| | | /** |
| | | * |
| | | * name:EmpAccidentcases |
| | | * package:cc.mrbird.febs.server.hr.controller |
| | | * description:员工意外险案件数据表映射实体 |
| | | * |
| | | * @author luoyibo |
| | | * @date 2021-01-24 20:36:10 |
| | | * @since JDK1.8 |
| | | */ |
| | | * name:EmpAccidentcases |
| | | * package:cc.mrbird.febs.server.hr.controller |
| | | * description:员工意外险案件数据表映射实体 |
| | | * |
| | | * @author luoyibo |
| | | * @date 2021-01-31 11:26:27 |
| | | * @since JDK1.8 |
| | | */ |
| | | @Data |
| | | @TableName("t_emp_accidentcases") |
| | | public class EmpAccidentCases { |
| | | public class EmpAccidentCases implements Serializable { |
| | | |
| | | /** |
| | | * 案件Id |
| | | */ |
| | | @TableId(value = "accidentId", type = IdType.AUTO) |
| | | private Long accidentId; |
| | | private static final long serialVersionUID = 3423747469056866015L; |
| | | @FieldInfo(name = "accidentId", type = "bigint", explain = "案件Id") |
| | | @TableId(value = "accidentId") |
| | | private Long accidentId = 0L; |
| | | |
| | | /** |
| | | * 员工Id |
| | | */ |
| | | @TableField("empId") |
| | | private Long empId; |
| | | @FieldInfo(name = "empId", type = "bigint", explain = "员工Id") |
| | | @TableField("empId") |
| | | private Long empId = 0L; |
| | | |
| | | /** |
| | | * |
| | | */ |
| | | @TableField("injuredTime") |
| | | private Date injuredTime; |
| | | @FieldInfo(name = "empNumb", type = "varchar", explain = "员工编号") |
| | | @TableField("empNumb") |
| | | private String empNumb = ""; |
| | | |
| | | /** |
| | | * 受伤地点 |
| | | */ |
| | | @TableField("injuredAddress") |
| | | private String injuredAddress; |
| | | @FieldInfo(name = "empName", type = "varchar", explain = "员工姓名") |
| | | @TableField("empName") |
| | | private String empName = ""; |
| | | |
| | | /** |
| | | * 受伤部位 |
| | | */ |
| | | @TableField("injuredPart") |
| | | private String injuredPart; |
| | | @FieldInfo(name = "sex", type = "varchar", explain = "性别码") |
| | | @TableField("sex") |
| | | private String sex = ""; |
| | | |
| | | /** |
| | | * |
| | | */ |
| | | @TableField("injuredDiacrisis") |
| | | private String injuredDiacrisis; |
| | | @FieldInfo(name = "certificateNumb", type = "varchar", explain = "证件号码") |
| | | @TableField("certificateNumb") |
| | | private String certificateNumb = ""; |
| | | |
| | | /** |
| | | * 受伤经过描述 |
| | | */ |
| | | @TableField("injuredDescribe") |
| | | private String injuredDescribe; |
| | | @FieldInfo(name = "deptId", type = "bigint", explain = "部门Id") |
| | | @TableField("deptId") |
| | | private Long deptId = 0L; |
| | | |
| | | /** |
| | | * 就诊医院 |
| | | */ |
| | | @TableField("hospitalName") |
| | | private String hospitalName; |
| | | @FieldInfo(name = "deptName", type = "varchar", explain = "部门名称") |
| | | @TableField("deptName") |
| | | private String deptName = ""; |
| | | |
| | | /** |
| | | * 就诊科室 |
| | | */ |
| | | @TableField("treatmentName") |
| | | private String treatmentName; |
| | | @FieldInfo(name = "JobId", type = "bigint", explain = "岗位Id") |
| | | @TableField("JobId") |
| | | private Long jobId = 0L; |
| | | |
| | | /** |
| | | * 是否住院 |
| | | */ |
| | | @TableField("hospitalizatioFlag") |
| | | private Integer hospitalizatioFlag; |
| | | @FieldInfo(name = "jobName", type = "varchar", explain = "岗位名称") |
| | | @TableField("jobName") |
| | | private String jobName = ""; |
| | | |
| | | /** |
| | | * 床号 |
| | | */ |
| | | @TableField("bedNumb") |
| | | private Byte bedNumb; |
| | | @FieldInfo(name = "injuredTime", type = "datetime", explain = "受伤时间") |
| | | @TableField("injuredTime") |
| | | @JsonSerialize(using = DateTimeSerializer.class) |
| | | @JsonDeserialize(using = DateTimeDeserializer.class) |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private Date injuredTime; |
| | | |
| | | /** |
| | | * 报案时间 |
| | | */ |
| | | @TableField("reprotTime") |
| | | private Date reprotTime; |
| | | @FieldInfo(name = "injuredAddress", type = "varchar", explain = "受伤地点") |
| | | @TableField("injuredAddress") |
| | | private String injuredAddress = ""; |
| | | |
| | | /** |
| | | * |
| | | */ |
| | | @TableField("submitTime") |
| | | private Date submitTime; |
| | | @FieldInfo(name = "injuredPart", type = "varchar", explain = "受伤部位") |
| | | @TableField("injuredPart") |
| | | private String injuredPart = ""; |
| | | |
| | | /** |
| | | * 递交人 |
| | | */ |
| | | @TableField("sbumitBy") |
| | | private String sbumitBy; |
| | | @FieldInfo(name = "injuredDiacrisis", type = "varchar", explain = "意外险诊断") |
| | | @TableField("injuredDiacrisis") |
| | | private String injuredDiacrisis = ""; |
| | | |
| | | /** |
| | | * 医疗总费用 |
| | | */ |
| | | @TableField("expensesFee") |
| | | private BigDecimal expensesFee; |
| | | /** |
| | | * 报单号 |
| | | */ |
| | | @TableField("expenseReport") |
| | | private String expenseReport; |
| | | @FieldInfo(name = "injuredDescribe", type = "varchar", explain = "受伤经过描述") |
| | | @TableField("injuredDescribe") |
| | | private String injuredDescribe = ""; |
| | | |
| | | /** |
| | | * |
| | | */ |
| | | @TableField("innsureFee") |
| | | private BigDecimal innsureFee; |
| | | /** |
| | | * 人事处理时间 |
| | | */ |
| | | @TableField("hrDoDate") |
| | | private Date hrDoDate; |
| | | @FieldInfo(name = "hospitalName", type = "varchar", explain = "就诊医院") |
| | | @TableField("hospitalName") |
| | | private String hospitalName = ""; |
| | | |
| | | /** |
| | | * 案结日期 |
| | | */ |
| | | @TableField("settleDate") |
| | | private Date settleDate; |
| | | @FieldInfo(name = "treatmentName", type = "varchar", explain = "就诊科室") |
| | | @TableField("treatmentName") |
| | | private String treatmentName = ""; |
| | | |
| | | /** |
| | | * 结案状态 0-未结案 1-已结案 |
| | | */ |
| | | @TableField("settleStatus") |
| | | private Integer settleStatus; |
| | | @FieldInfo(name = "hospitalizatioFlag", type = "bit", explain = "是否住院") |
| | | @TableField("hospitalizatioFlag") |
| | | private Integer hospitalizatioFlag = 0; |
| | | |
| | | /** |
| | | * 记录创建人 |
| | | */ |
| | | @TableField("creator") |
| | | private String creator; |
| | | @FieldInfo(name = "bedNumb", type = "tinyint", explain = "床号") |
| | | @TableField("bedNumb") |
| | | private Integer bedNumb = 0; |
| | | |
| | | /** |
| | | * 记录最后更新时间 |
| | | */ |
| | | @TableField("modifyTime") |
| | | private Date modifyTime; |
| | | @FieldInfo(name = "reprotTime", type = "date", explain = "报案时间") |
| | | @TableField("reprotTime") |
| | | @JsonSerialize(using = DateSerializer.class) |
| | | @JsonDeserialize(using = DateDeSerializer.class) |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd") |
| | | private Date reprotTime; |
| | | |
| | | /** |
| | | * 记录最后更新人 |
| | | */ |
| | | @TableField("modifier") |
| | | private String modifier; |
| | | @FieldInfo(name = "submitTime", type = "datetime", explain = "资料提交日期") |
| | | @TableField("submitTime") |
| | | @JsonSerialize(using = DateSerializer.class) |
| | | @JsonDeserialize(using = DateDeSerializer.class) |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd") |
| | | private Date submitTime; |
| | | |
| | | /** |
| | | * 记录删除标志。0-未删除 1-已删除,默认0 |
| | | */ |
| | | @TableField("delFlag") |
| | | private Integer delFlag; |
| | | @FieldInfo(name = "sbumitBy", type = "varchar", explain = "递交人") |
| | | @TableField("sbumitBy") |
| | | private String sbumitBy = ""; |
| | | |
| | | /** |
| | | * 记录版本号,用来进行乐观锁控制 |
| | | */ |
| | | @TableField("version") |
| | | private Integer version; |
| | | @FieldInfo(name = "expensesFee", type = "decimal", explain = "医疗总费用") |
| | | @TableField("expensesFee") |
| | | private BigDecimal expensesFee = BigDecimal.ZERO; |
| | | |
| | | /** |
| | | * 备注 |
| | | */ |
| | | @TableField("remark") |
| | | private String remark; |
| | | @FieldInfo(name = "expenseReport", type = "varchar", explain = "报单号") |
| | | @TableField("expenseReport") |
| | | private String expenseReport = ""; |
| | | |
| | | @FieldInfo(name = "innsureFee", type = "decimal", explain = "保险赔付费用") |
| | | @TableField("innsureFee") |
| | | private BigDecimal innsureFee = BigDecimal.ZERO; |
| | | |
| | | @FieldInfo(name = "hrDoDate", type = "date", explain = "人事处理时间") |
| | | @TableField("hrDoDate") |
| | | @JsonSerialize(using = DateSerializer.class) |
| | | @JsonDeserialize(using = DateDeSerializer.class) |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd") |
| | | private Date hrDoDate; |
| | | |
| | | @FieldInfo(name = "settleDate", type = "date", explain = "案结日期") |
| | | @TableField("settleDate") |
| | | @JsonSerialize(using = DateSerializer.class) |
| | | @JsonDeserialize(using = DateDeSerializer.class) |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd") |
| | | private Date settleDate; |
| | | |
| | | @FieldInfo(name = "settleStatus", type = "bit", explain = "结案状态 0-未结案 1-已结案") |
| | | @TableField("settleStatus") |
| | | private Integer settleStatus = 0; |
| | | |
| | | @FieldInfo(name = "remark", type = "varchar", explain = "备注") |
| | | @TableField("remark") |
| | | private String remark = ""; |
| | | |
| | | @FieldInfo(name = "createTime", type = "datetime", explain = "记录创建时间") |
| | | @TableField("createTime") |
| | | @JsonSerialize(using = DateTimeSerializer.class) |
| | | @JsonDeserialize(using = DateTimeDeserializer.class) |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private Date createTime; |
| | | |
| | | @FieldInfo(name = "creator", type = "varchar", explain = "记录创建人") |
| | | @TableField("creator") |
| | | private String creator = ""; |
| | | |
| | | @FieldInfo(name = "modifyTime", type = "datetime", explain = "记录最后更新时间") |
| | | @TableField("modifyTime") |
| | | @JsonSerialize(using = DateTimeSerializer.class) |
| | | @JsonDeserialize(using = DateTimeDeserializer.class) |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private Date modifyTime; |
| | | |
| | | @FieldInfo(name = "modifier", type = "varchar", explain = "记录最后更新人") |
| | | @TableField("modifier") |
| | | private String modifier = ""; |
| | | |
| | | @FieldInfo(name = "delFlag", type = "bit", explain = "记录删除标志。0-未删除 1-已删除,默认0") |
| | | @TableField("delFlag") |
| | | private Integer delFlag = 0; |
| | | |
| | | @FieldInfo(name = "version", type = "int", explain = "记录版本号,用来进行乐观锁控制") |
| | | @TableField("version") |
| | | @Version |
| | | private Integer version = 0; |
| | | |
| | | } |