From 341147c079523c492749f48431d16fc9d6313535 Mon Sep 17 00:00:00 2001
From: Alan <1124498879@qq.com>
Date: 星期五, 19 二月 2021 17:44:20 +0800
Subject: [PATCH] 提交调岗查询

---
 febs-server/febs-server-hr/src/main/java/cc/mrbird/febs/server/hr/entity/EmpPhysicalExam.java |  168 +++++++++++++++++++++++++++++++++-----------------------
 1 files changed, 99 insertions(+), 69 deletions(-)

diff --git a/febs-server/febs-server-hr/src/main/java/cc/mrbird/febs/server/hr/entity/EmpPhysicalExam.java b/febs-server/febs-server-hr/src/main/java/cc/mrbird/febs/server/hr/entity/EmpPhysicalExam.java
index b474184..0bdb925 100644
--- a/febs-server/febs-server-hr/src/main/java/cc/mrbird/febs/server/hr/entity/EmpPhysicalExam.java
+++ b/febs-server/febs-server-hr/src/main/java/cc/mrbird/febs/server/hr/entity/EmpPhysicalExam.java
@@ -1,120 +1,150 @@
 package cc.mrbird.febs.server.hr.entity;
 
-    import java.util.Date;
+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 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:EmpPhysicalexam
+* name:EmpPhysicalExam
 * package:cc.mrbird.febs.server.hr.controller
 * description:员工体检信息数据表映射实体
 *
 * @author luoyibo
-* @date 2021-01-24 20:35:19
+* @date 2021-01-31 09:11:00
 * @since JDK1.8
 */
 @Data
 @TableName("t_emp_physicalexam")
-public class EmpPhysicalExam {
+public class EmpPhysicalExam implements Serializable{
 
-        /**
-        * 体检Id
-        */
-            @TableId(value = "physicalExamId", type = IdType.AUTO)
-            private Long physicalExamId;
+            @FieldInfo(name = "physicalExamId",type = "bigint",explain = "体检Id")
+            @TableId(value = "physicalExamId")
+            private Long physicalExamId=0L;
 
-        /**
-        * 员工Id
-        */
+            @FieldInfo(name = "empId",type = "bigint",explain = "员工Id")
             @TableField("empId")
-            private Long empId;
+            private Long empId=0L;
 
-        /**
-        * 体检医院
-        */
-            @TableField("hosptial")
-            private String hosptial;
+            @FieldInfo(name = "empNumb",type = "varchar",explain = "员工编号")
+            @TableField("empNumb")
+            private String empNumb="";
 
-        /**
-        * 体检日期
-        */
+            @FieldInfo(name = "empName",type = "varchar",explain = "员工姓名")
+            @TableField("empName")
+            private String empName="";
+            
+            @FieldInfo(name = "empStatus", type = "varchar", explain = "员工状态")
+            @TableField("empStatus")
+            private String empStatus = "";
+
+            @FieldInfo(name = "certificateNumb",type = "varchar",explain = "证件号码")
+            @TableField("certificateNumb")
+            private String certificateNumb="";
+
+            @FieldInfo(name = "sex",type = "varchar",explain = "性别码")
+            @TableField("sex")
+            private String sex="";
+
+            @FieldInfo(name = "deptId",type = "bigint",explain = "部门Id")
+            @TableField("deptId")
+            private Long deptId=0L;
+
+            @FieldInfo(name = "deptName",type = "varchar",explain = "部门名称")
+            @TableField("deptName")
+            private String deptName="";
+
+            @FieldInfo(name = "JobId",type = "bigint",explain = "岗位Id")
+            @TableField("JobId")
+            private Long jobId=0L;
+
+            @FieldInfo(name = "jobName",type = "varchar",explain = "岗位名称")
+            @TableField("jobName")
+            private String jobName="";
+
+            @FieldInfo(name = "hospital",type = "varchar",explain = "体检医院")
+            @TableField("hospital")
+            private String hospital="";
+
+            @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 = "physicalExamType",type = "varchar",explain = "体检类型")
             @TableField("physicalExamType")
-            private String physicalExamType;
+            private String physicalExamType="";
 
-        /**
-        * 血压
-        */
+            @FieldInfo(name = "bloodPressure",type = "varchar",explain = "血压")
             @TableField("bloodPressure")
-            private String bloodPressure;
+            private String bloodPressure="";
 
-        /**
-        * 转氨酶
-        */
+            @FieldInfo(name = "transaminase",type = "varchar",explain = "转氨酶")
             @TableField("transaminase")
-            private String transaminase;
+            private String transaminase="";
 
-        /**
-        * 心电图
-        */
+            @FieldInfo(name = "ecg",type = "varchar",explain = "心电图")
             @TableField("ecg")
-            private String ecg;
+            private String ecg="";
 
-        /**
-        * 体检结论
-        */
+            @FieldInfo(name = "conclusion",type = "varchar",explain = "体检结论")
             @TableField("conclusion")
-            private String conclusion;
+            private String conclusion="";
 
-        /**
-        * 复查记录
-        */
+            @FieldInfo(name = "reviewRecord",type = "varchar",explain = "复查记录")
             @TableField("reviewRecord")
-            private String reviewRecord;
+            private String reviewRecord="";
 
-        /**
-        * 备注
-        */
+            @FieldInfo(name = "remark",type = "varchar",explain = "备注")
             @TableField("remark")
-            private String 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;
+            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;
+            private String modifier="";
 
-        /**
-        * 记录删除标志。0-未删除 1-已删除,默认0
-        */
+            @FieldInfo(name = "delFlag",type = "bit",explain = "记录删除标志。0-未删除 1-已删除,默认0")
             @TableField("delFlag")
-            private Integer delFlag;
+            private Integer delFlag=0;
 
-        /**
-        * 记录版本号,用来进行乐观锁控制
-        */
+            @FieldInfo(name = "version",type = "int",explain = "记录版本号,用来进行乐观锁控制")
             @TableField("version")
-            private Integer version;
+            @Version
+            private Integer version=0;
+            
+            @TableField(exist = false)
+        	private String physicalExamDateStr= "";
 
 }
\ No newline at end of file

--
Gitblit v1.8.0