From ae60ad1dd19a86dd9723b199111bc3e2fb45f126 Mon Sep 17 00:00:00 2001
From: yubo <autumnal_wind@yeah.net>
Date: 星期五, 03 四月 2026 20:58:59 +0800
Subject: [PATCH] refactor(hr): 移除保险提醒相关冗余代码并调整退休延迟计算

---
 febs-server/febs-server-hr/src/main/java/cc/mrbird/febs/server/hr/entity/EmpInsurance.java |  139 +++++++++++++++++++++++++---------------------
 1 files changed, 76 insertions(+), 63 deletions(-)

diff --git a/febs-server/febs-server-hr/src/main/java/cc/mrbird/febs/server/hr/entity/EmpInsurance.java b/febs-server/febs-server-hr/src/main/java/cc/mrbird/febs/server/hr/entity/EmpInsurance.java
index bd0836a..b224015 100644
--- a/febs-server/febs-server-hr/src/main/java/cc/mrbird/febs/server/hr/entity/EmpInsurance.java
+++ b/febs-server/febs-server-hr/src/main/java/cc/mrbird/febs/server/hr/entity/EmpInsurance.java
@@ -1,24 +1,24 @@
 package cc.mrbird.febs.server.hr.entity;
 
-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.baomidou.mybatisplus.annotation.TableField;
+import com.baomidou.mybatisplus.annotation.TableId;
+import com.baomidou.mybatisplus.annotation.TableName;
+import com.baomidou.mybatisplus.annotation.Version;
 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;
-import com.baomidou.mybatisplus.annotation.TableName;
-import com.baomidou.mybatisplus.annotation.Version;
 import org.springframework.format.annotation.DateTimeFormat;
+
+import java.io.Serializable;
+import java.util.Date;
 
 /**
  * name:EmpInsurance
@@ -35,63 +35,45 @@
 public class EmpInsurance implements Serializable {
 
     private static final long serialVersionUID = 208703298339870887L;
-    @FieldInfo(name = "insuranceId", type = "bigint", explain = "社保Id")
+    //@FieldInfo(name = "insuranceId", type = "bigint", explain = "社保Id")
     @TableId(value = "insuranceId")
     private Long insuranceId = 0L;
 
-    @FieldInfo(name = "empId", type = "bigint", explain = "员工Id")
+    //@FieldInfo(name = "empId", type = "bigint", explain = "员工Id")
     @TableField("empId")
     private Long empId = 0L;
 
-    @FieldInfo(name = "empNumb", type = "varchar", explain = "员工编号")
+    @FieldInfo(name = "empNumb", type = "varchar", explain = "编号")
     @TableField("empNumb")
-    @ExcelField(value = "员工编号")
+    @ExcelField(value = "编号")
     private String empNumb = "";
 
-    @FieldInfo(name = "empName", type = "varchar", explain = "员工姓名")
-    @TableField("empName")
-    @ExcelField(value = "员工姓名")
-    private String empName = "";
-    
-    @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")
-    @ExcelField(value = "性别", writeConverterExp = "1=男,2=女")
-    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 = "deptName", type = "varchar", explain = "部门名称")
-    @TableField("deptName")
-    @ExcelField(value = "部门名称")
-    private String deptName = "";
-
-    @FieldInfo(name = "JobId", type = "bigint", explain = "岗位Id")
-    @TableField("JobId")
-    private Long jobId = 0L;
+    @FieldInfo(name = "allDeptName", type = "bit", explain = "部门(护卫点)")
+    @ExcelField(value = "部门(护卫点)")
+    @TableField(exist = false)
+    private String allDeptName = "";
 
     @FieldInfo(name = "jobName", type = "varchar", explain = "岗位名称")
     @TableField("jobName")
-    @ExcelField(value = "岗位名称")
+    @ExcelField(value = "岗位")
     private String jobName = "";
+
+    @FieldInfo(name = "empName", type = "varchar", explain = "姓名")
+    @TableField("empName")
+    @ExcelField(value = "姓名")
+    private String empName = "";
+
+    @FieldInfo(name = "certificateNumb", type = "varchar", explain = "身份证号码")
+    @TableField("certificateNumb")
+    @ExcelField(value = "身份证号码")
+    private String certificateNumb = "";
 
     @FieldInfo(name = "applayDate", type = "date", explain = "申请日期")
     @TableField("applayDate")
     @JsonSerialize(using = DateSerializer.class)
     @JsonDeserialize(using = DateDeSerializer.class)
     @DateTimeFormat(pattern = "yyyy-MM-dd")
-    @ExcelField(value = "申请日期", writeConverter = TimeConverter.class)
+    @ExcelField(value = "社保申请日期", writeConverter = TimeConverter.class)
     private Date applayDate;
 
     @FieldInfo(name = "proposer", type = "varchar", explain = "申请人")
@@ -101,17 +83,20 @@
 
     @FieldInfo(name = "insuranceGaers", type = "varchar", explain = "社保档位")
     @TableField("insuranceGaers")
-    @ExcelField(value = "社保档位")
     private String insuranceGaers = "";
 
-    @FieldInfo(name = "reportStatus", type = "bit", explain = "是否已报告 0-未报告 1-已报告")
+    @ExcelField(value = "社保档位")
+    @TableField(exist = false)
+    private String insuranceGaersName = "";
+
+    @FieldInfo(name = "reportStatus", type = "bit", explain = "是否已报告1-未报告 2-已报告")
     @TableField("reportStatus")
-    @ExcelField(value = "是否已报告", writeConverterExp = "0=未报告,1=已报告")
+    @ExcelField(value = "是否已报告", writeConverterExp = "1=未报告,2=已报告")
     private Integer reportStatus = 0;
 
-    @FieldInfo(name = "applayStatus", type = "bit", explain = "申请状态 0-未申请 1-已申请")
+    @FieldInfo(name = "applayStatus", type = "bit", explain = "申请状态 1-未申请 2-已申请")
     @TableField("applayStatus")
-    @ExcelField(value = "申请状态", writeConverterExp = "0=未申请,1=已申请")
+    @ExcelField(value = "状态", writeConverterExp = "1=未申请,2=已申请")
     private Integer applayStatus = 0;
 
     @FieldInfo(name = "auditor", type = "varchar", explain = "审核人")
@@ -119,42 +104,70 @@
     @ExcelField(value = "审核人")
     private String auditor = "";
 
-    @FieldInfo(name = "createTime", type = "datetime", explain = "记录创建时间")
+    @FieldInfo(name = "remark", type = "varchar", explain = "备注")
+    @TableField("remark")
+    @ExcelField(value = "备注")
+    private String remark = "";
+
+    @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")
+//    @ExcelField(value = "性别", writeConverterExp = "1=男,2=女")
+    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;
+
+    @TableField(exist = false)
+    private String reportStatusName ;
+
+    @TableField(exist = false)
+    private String applayStatusName ;
+
+    //@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 = "记录创建人")
+    //@FieldInfo(name = "creator", type = "varchar", explain = "记录创建人")
     @TableField("creator")
     private String creator = "";
 
-    @FieldInfo(name = "modifyTime", type = "datetime", explain = "记录最后更新时间")
+    //@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 = "记录最后更新人")
+    //@FieldInfo(name = "modifier", type = "varchar", explain = "记录最后更新人")
     @TableField("modifier")
     private String modifier = "";
 
-    @FieldInfo(name = "delFlag", type = "bit", explain = "记录删除标志。0-未删除 1-已删除,默认0")
+    //@FieldInfo(name = "delFlag", type = "bit", explain = "记录删除标志。0-未删除 1-已删除,默认0")
     @TableField("delFlag")
     private Integer delFlag = 0;
 
-    @FieldInfo(name = "version", type = "int", explain = "记录版本号,用来进行乐观锁控制")
+    //@FieldInfo(name = "version", type = "int", explain = "记录版本号,用来进行乐观锁控制")
     @TableField("version")
-    @Version
+    // @Version
     private Integer version = 0;
 
-    @FieldInfo(name = "remark", type = "varchar", explain = "备注")
-    @TableField("remark")
-    private String remark = "";
-    
     @TableField(exist = false)
     private String applayDateStr;
-
-}
\ No newline at end of file
+}

--
Gitblit v1.8.0