package io.renren.modules.business.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 员工出勤表
 *
 * @author jiaqiao
 * @email jiaqiao@163.com
 * @date 2022-09-20 11:26:31
 */
@Data
@TableName("business_worker_cq")
public class BusinessWorkerCqEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId
    private Integer id;
    /**
     * 员工id
     */
    private Integer userId;
    /**
     * 日期
     */
    @JsonFormat(pattern = "yyyy-MM", timezone = "GMT+8")
    private Date dateDay;
    /**
     * 出勤天数（需要计算，这个字段不用了）
     */
    private String workDay;
    /**
     * 备注
     */
    private String remark;
    /**
     * 审批
     */
    private Integer approval;

    /**
     * 修正天数
     */
    private String fixDay;

    /**
     * 已发工资
     */
    private String salaried;

    //	关联字段
    //工人姓名
    @TableField(exist = false)
    private String name;
    //工资
    @TableField(exist = false)
    private String outMoney;
    //状态天数
    @TableField(exist = false)
    private String statusDay;
    //出勤天数（计算的，不存数据库）
    @TableField(exist = false)
    private String outWorkDay;
}
