| | |
| | | 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 com.wuwenze.poi.annotation.Excel; |
| | | import com.wuwenze.poi.annotation.ExcelField; |
| | | 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:EmpDimissionattend |
| | | * package:cc.mrbird.febs.server.hr.controller |
| | | * description:离职当月考勤数据表映射实体 |
| | | * |
| | | * @author luoyibo |
| | | * @date 2021-01-24 20:35:38 |
| | | * @since JDK1.8 |
| | | */ |
| | | * name:EmpDimissionattend |
| | | * package:cc.mrbird.febs.server.hr.controller |
| | | * description:离职当月考勤数据表映射实体 |
| | | * |
| | | * @author luoyibo |
| | | * @date 2021-01-31 11:26:04 |
| | | * @since JDK1.8 |
| | | */ |
| | | @Data |
| | | @TableName("t_emp_dimissionattend") |
| | | public class EmpDimissionAttend { |
| | | @Excel("离职当月考勤") |
| | | public class EmpDimissionAttend implements Serializable { |
| | | |
| | | /** |
| | | * 离职当月考勤Id |
| | | */ |
| | | @TableId(value = "dimissionAttendId", type = IdType.AUTO) |
| | | private Long dimissionAttendId; |
| | | private static final long serialVersionUID = 6080263775807562989L; |
| | | @FieldInfo(name = "dimissionAttendId", type = "bigint", explain = "离职当月考勤Id") |
| | | @TableId(value = "dimissionAttendId") |
| | | private Long dimissionAttendId = 0L; |
| | | |
| | | /** |
| | | * 员工Id |
| | | */ |
| | | @TableField("empId") |
| | | private Long empId; |
| | | @FieldInfo(name = "empId", type = "bigint", explain = "员工Id") |
| | | @TableField("empId") |
| | | private Long empId = 0L; |
| | | |
| | | /** |
| | | * 离职考勤月份 |
| | | */ |
| | | @TableField("attendMonth") |
| | | private Byte attendMonth; |
| | | @FieldInfo(name = "empNumb", type = "varchar", explain = "员工编号") |
| | | @TableField("empNumb") |
| | | @ExcelField(value = "员工编号") |
| | | private String empNumb = ""; |
| | | |
| | | /** |
| | | * 加班小时 |
| | | */ |
| | | @TableField("overtimeHour") |
| | | private BigDecimal overtimeHour; |
| | | /** |
| | | * 加班(天) |
| | | */ |
| | | @TableField("overtimeDay") |
| | | private BigDecimal overtimeDay; |
| | | /** |
| | | * 请假(天) |
| | | */ |
| | | @TableField("leaveDay") |
| | | private BigDecimal leaveDay; |
| | | /** |
| | | * 有无代扣款项 |
| | | */ |
| | | @TableField("deduct") |
| | | private BigDecimal deduct; |
| | | /** |
| | | * 旷工(天) |
| | | */ |
| | | @TableField("absenteeism") |
| | | private BigDecimal absenteeism; |
| | | /** |
| | | * 记录创建时间 |
| | | */ |
| | | @TableField("createTime") |
| | | private Date createTime; |
| | | @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 = ""; |
| | | |
| | | /** |
| | | * 记录创建人 |
| | | */ |
| | | @TableField("creator") |
| | | private String creator; |
| | | @FieldInfo(name = "sex", type = "varchar", explain = "性别码") |
| | | @TableField("sex") |
| | | @ExcelField(value = "性别", writeConverterExp = "1=男,2=女") |
| | | private String sex = ""; |
| | | |
| | | /** |
| | | * 记录最后更新时间 |
| | | */ |
| | | @TableField("modifyTime") |
| | | private Date modifyTime; |
| | | @FieldInfo(name = "certificateNumb", type = "varchar", explain = "证件号码") |
| | | @TableField("certificateNumb") |
| | | @ExcelField(value = "证件号码") |
| | | private String certificateNumb = ""; |
| | | |
| | | /** |
| | | * 记录最后更新人 |
| | | */ |
| | | @TableField("modifier") |
| | | private String modifier; |
| | | @FieldInfo(name = "deptId", type = "bigint", explain = "部门Id") |
| | | @TableField("deptId") |
| | | private Long deptId = 0L; |
| | | |
| | | /** |
| | | * 记录删除标志。0-未删除 1-已删除,默认0 |
| | | */ |
| | | @TableField("delFlag") |
| | | private Integer delFlag; |
| | | @FieldInfo(name = "deptName", type = "varchar", explain = "部门名称") |
| | | @TableField("deptName") |
| | | @ExcelField(value = "部门名称") |
| | | private String deptName = ""; |
| | | |
| | | /** |
| | | * 记录版本号,用来进行乐观锁控制 |
| | | */ |
| | | @TableField("version") |
| | | private Integer version; |
| | | @FieldInfo(name = "JobId", type = "bigint", explain = "岗位Id") |
| | | @TableField("JobId") |
| | | private Long jobId = 0L; |
| | | |
| | | /** |
| | | * 备注 |
| | | */ |
| | | @TableField("remark") |
| | | private String remark; |
| | | @FieldInfo(name = "jobName", type = "varchar", explain = "岗位名称") |
| | | @TableField("jobName") |
| | | @ExcelField(value = "岗位名称") |
| | | private String jobName = ""; |
| | | |
| | | @FieldInfo(name = "attendYear", type = "varchar", explain = "离职考勤年份") |
| | | @TableField(exist = false) |
| | | @ExcelField(value = "考勤年份") |
| | | private String attendYear = ""; |
| | | |
| | | @FieldInfo(name = "attendMonth", type = "varchar", explain = "离职考勤月份") |
| | | @TableField("attendMonth") |
| | | @ExcelField(value = "考勤月份") |
| | | private String attendMonth = ""; |
| | | |
| | | @FieldInfo(name = "attendDays", type = "decimal", explain = "出勤天数") |
| | | @TableField("attendDays") |
| | | @ExcelField(value = "出勤天数") |
| | | private BigDecimal attendDays = BigDecimal.ZERO; |
| | | |
| | | @FieldInfo(name = "overtimeHour", type = "decimal", explain = "加班小时") |
| | | @TableField("overtimeHour") |
| | | @ExcelField(value = "加班小时") |
| | | private BigDecimal overtimeHour = BigDecimal.ZERO; |
| | | |
| | | @FieldInfo(name = "overtimeDay", type = "decimal", explain = "加班(天)") |
| | | @TableField("overtimeDay") |
| | | @ExcelField(value = "加班(天)") |
| | | private BigDecimal overtimeDay = BigDecimal.ZERO; |
| | | |
| | | @FieldInfo(name = "leaveDay", type = "decimal", explain = "请假(天)") |
| | | @TableField("leaveDay") |
| | | @ExcelField(value = "请假(天)") |
| | | private BigDecimal leaveDay = BigDecimal.ZERO; |
| | | |
| | | @FieldInfo(name = "deduct", type = "varchar", explain = "有无代扣款项") |
| | | @TableField("deduct") |
| | | @ExcelField(value = "有无代扣款项") |
| | | private String deduct = ""; |
| | | |
| | | @FieldInfo(name = "absenteeism", type = "decimal", explain = "旷工(天)") |
| | | @TableField("absenteeism") |
| | | @ExcelField(value = "旷工(天)") |
| | | private BigDecimal absenteeism = BigDecimal.ZERO; |
| | | |
| | | @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; |
| | | |
| | | @FieldInfo(name = "remark", type = "varchar", explain = "备注") |
| | | @TableField("remark") |
| | | private String remark = ""; |
| | | |
| | | @TableField(exist = false) |
| | | private String deductStr; |
| | | |
| | | } |