package com.ruoyi.oa.domain;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;

/**
 * 员工模板绑定及月度发放记录对象 oa_employee_template_binding
 *
 * @author ruoyi
 * @date 2025-06-23
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("oa_employee_template_binding")
public class OaEmployeeTemplateBinding extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 记录ID
     */
    @TableId(value = "binding_id")
    private Long bindingId;
    /**
     * 员工ID → oa_employee.employee_id
     */
    private Long employeeId;
    //    /**
//     * 保险模板ID → oa_insurance_template.insurance_template_id
//     */
//    private Long insuranceTemplateId;
    private Long personalInsuranceTemplateId;
    private Long companyInsuranceTemplateId;
    /**
     * 薪资模板ID → oa_salary_template.salary_template_id
     */
    private Long salaryTemplateId;
    /**
     * 发放年度
     */
    private Long payYear;
    /**
     * 发放月份
     */
    private Long payMonth;
    /**
     * 实发工资
     */
    private BigDecimal netSalary;
    /**
     * 单位总支出
     */
    private BigDecimal totalCompanyCost;
    /**
     * 状态（已发/待发）
     */
    private String status;
    /**
     * 删除标志
     */
    @TableLogic
    private Integer delFlag;
    /**
     * 备注
     */
    private String remark;

}
