xx
孔祥富
2021-03-10 67abd83ce5d31a6dde9d744a80350c9c05fbb6dd
febs-server/febs-server-hr/src/main/java/cc/mrbird/febs/server/hr/entity/EmpPhysicalExam.java
@@ -2,13 +2,17 @@
import java.io.Serializable;
import java.util.Date;
import cc.mrbird.febs.common.core.annotation.FieldInfo;
import cc.mrbird.febs.common.core.converter.TimeConverter;
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 com.wuwenze.poi.annotation.Excel;
import com.wuwenze.poi.annotation.ExcelField;
import lombok.Data;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
@@ -17,127 +21,158 @@
import org.springframework.format.annotation.DateTimeFormat;
/**
*
* name:EmpPhysicalExam
* package:cc.mrbird.febs.server.hr.controller
* description:员工体检信息数据表映射实体
*
* @author luoyibo
* @date 2021-01-31 09:11:00
* @since JDK1.8
*/
 * name:EmpPhysicalExam
 * package:cc.mrbird.febs.server.hr.controller
 * description:员工体检信息数据表映射实体
 *
 * @author luoyibo
 * @date 2021-01-31 09:11:00
 * @since JDK1.8
 */
@Data
@TableName("t_emp_physicalexam")
public class EmpPhysicalExam implements Serializable{
@Excel("员工体检信息")
public class EmpPhysicalExam implements Serializable {
            @FieldInfo(name = "physicalExamId",type = "bigint",explain = "体检Id")
            @TableId(value = "physicalExamId")
            private Long physicalExamId=0L;
    //@FieldInfo(name = "physicalExamId", type = "bigint", explain = "体检Id")
    @TableId(value = "physicalExamId")
    private Long physicalExamId = 0L;
            @FieldInfo(name = "empId",type = "bigint",explain = "员工Id")
            @TableField("empId")
            private Long empId=0L;
    //@FieldInfo(name = "empId", type = "bigint", explain = "员工Id")
    @TableField("empId")
    private Long empId = 0L;
            @FieldInfo(name = "empNumb",type = "varchar",explain = "员工编号")
            @TableField("empNumb")
            private String empNumb="";
    @FieldInfo(name = "empNumb", type = "varchar", explain = "员工编号")
    @TableField("empNumb")
    @ExcelField(value = "员工编号")
    private String empNumb = "";
            @FieldInfo(name = "empName",type = "varchar",explain = "员工姓名")
            @TableField("empName")
            private String empName="";
    @FieldInfo(name = "empName", type = "varchar", explain = "员工姓名")
    @TableField("empName")
    @ExcelField(value = "员工姓名")
    private String empName = "";
            @FieldInfo(name = "certificateNumb",type = "varchar",explain = "证件号码")
            @TableField("certificateNumb")
            private String certificateNumb="";
    @FieldInfo(name = "empStatus", type = "varchar", explain = "员工状态")
    @TableField("empStatus")
    @ExcelField(value = "员工状态",writeConverterExp = "0=在职,1=离职,2=退休" )
    private String empStatus = "";
            @FieldInfo(name = "sex",type = "varchar",explain = "性别码")
            @TableField("sex")
            private String sex="";
    @FieldInfo(name = "certificateNumb", type = "varchar", explain = "证件号码")
    @TableField("certificateNumb")
    @ExcelField(value = "证件号码")
    private String certificateNumb = "";
            @FieldInfo(name = "deptId",type = "bigint",explain = "部门Id")
            @TableField("deptId")
            private Long deptId=0L;
    @FieldInfo(name = "sex", type = "varchar", explain = "性别码")
    @TableField("sex")
    @ExcelField(value = "性别", writeConverterExp = "1=男,2=女")
    private String sex = "";
            @FieldInfo(name = "deptName",type = "varchar",explain = "部门名称")
            @TableField("deptName")
            private String deptName="";
    //@FieldInfo(name = "deptId", type = "bigint", explain = "部门Id")
    @TableField("deptId")
    private Long deptId = 0L;
            @FieldInfo(name = "JobId",type = "bigint",explain = "岗位Id")
            @TableField("JobId")
            private Long jobId=0L;
    @FieldInfo(name = "deptName", type = "varchar", explain = "部门名称")
    @TableField("deptName")
    @ExcelField(value = "部门名称")
    private String deptName = "";
            @FieldInfo(name = "jobName",type = "varchar",explain = "岗位名称")
            @TableField("jobName")
            private String jobName="";
    //@FieldInfo(name = "JobId", type = "bigint", explain = "岗位Id")
    @TableField("JobId")
    private Long jobId = 0L;
            @FieldInfo(name = "hospital",type = "varchar",explain = "体检医院")
            @TableField("hospital")
            private String hospital="";
    @FieldInfo(name = "jobName", type = "varchar", explain = "岗位名称")
    @TableField("jobName")
    @ExcelField(value = "岗位名称")
    private String jobName = "";
            @FieldInfo(name = "physicalExamDate",type = "date",explain = "体检日期")
            @TableField("physicalExamDate")
            @JsonSerialize(using = DateSerializer.class)
            @JsonDeserialize(using = DateDeSerializer.class)
            @DateTimeFormat(pattern="yyyy-MM-dd")
            private Date physicalExamDate;
    @FieldInfo(name = "hospital", type = "varchar", explain = "体检医院")
    @TableField("hospital")
    @ExcelField(value = "体检医院")
    private String hospital = "";
            @FieldInfo(name = "physicalExamType",type = "varchar",explain = "体检类型")
            @TableField("physicalExamType")
            private String physicalExamType="";
    @FieldInfo(name = "physicalExamDate", type = "date", explain = "体检日期")
    @TableField("physicalExamDate")
    @JsonSerialize(using = DateSerializer.class)
    @JsonDeserialize(using = DateDeSerializer.class)
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @ExcelField(value = "体检日期", writeConverter = TimeConverter.class)
    private Date physicalExamDate;
            @FieldInfo(name = "bloodPressure",type = "varchar",explain = "血压")
            @TableField("bloodPressure")
            private String bloodPressure="";
    @FieldInfo(name = "physicalExamType", type = "varchar", explain = "体检类型")
    @TableField("physicalExamType")
    @ExcelField(value = "体检类型", writeConverterExp = "1=入职体检,2=员工体检")
    private String physicalExamType = "";
            @FieldInfo(name = "transaminase",type = "varchar",explain = "转氨酶")
            @TableField("transaminase")
            private String transaminase="";
    @FieldInfo(name = "bloodPressure", type = "varchar", explain = "血压")
    @TableField("bloodPressure")
    @ExcelField(value = "血压")
    private String bloodPressure = "";
            @FieldInfo(name = "ecg",type = "varchar",explain = "心电图")
            @TableField("ecg")
            private String ecg="";
    @FieldInfo(name = "transaminase", type = "varchar", explain = "转氨酶")
    @TableField("transaminase")
    @ExcelField(value = "转氨酶")
    private String transaminase = "";
            @FieldInfo(name = "conclusion",type = "varchar",explain = "体检结论")
            @TableField("conclusion")
            private String conclusion="";
    @FieldInfo(name = "ecg", type = "varchar", explain = "心电图")
    @TableField("ecg")
    @ExcelField(value = "心电图")
    private String ecg = "";
            @FieldInfo(name = "reviewRecord",type = "varchar",explain = "复查记录")
            @TableField("reviewRecord")
            private String reviewRecord="";
    @FieldInfo(name = "conclusion", type = "varchar", explain = "体检结论")
    @TableField("conclusion")
    @ExcelField(value = "体检结论")
    private String conclusion = "";
            @FieldInfo(name = "remark",type = "varchar",explain = "备注")
            @TableField("remark")
            private String remark="";
    @FieldInfo(name = "reviewRecord", type = "varchar", explain = "复查记录")
    @TableField("reviewRecord")
    @ExcelField(value = "复查记录")
    private String reviewRecord = "";
            @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 = "remark", type = "varchar", explain = "备注")
    @TableField("remark")
    @ExcelField(value = "备注")
    private String remark = "";
            @FieldInfo(name = "creator",type = "varchar",explain = "记录创建人")
            @TableField("creator")
            private String creator="";
    //@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 = "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 = "creator", type = "varchar", explain = "记录创建人")
    @TableField("creator")
    private String creator = "";
            @FieldInfo(name = "modifier",type = "varchar",explain = "记录最后更新人")
            @TableField("modifier")
            private String modifier="";
    //@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 = "delFlag",type = "bit",explain = "记录删除标志。0-未删除 1-已删除,默认0")
            @TableField("delFlag")
            private Integer delFlag=0;
    //@FieldInfo(name = "modifier", type = "varchar", explain = "记录最后更新人")
    @TableField("modifier")
    private String modifier = "";
            @FieldInfo(name = "version",type = "int",explain = "记录版本号,用来进行乐观锁控制")
            @TableField("version")
            @Version
            private Integer version=0;
    //@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;
    @TableField(exist = false)
    private String physicalExamDateStr = "";
    @FieldInfo(name = "physicalExamTypeName", type = "varchar", explain = "体检类型")
    @TableField(exist = false)
    private String physicalExamTypeName = "";
    @FieldInfo(name = "ecgName", type = "varchar", explain = "心电图")
    @TableField(exist = false)
    private String ecgName = "";
}