package com.ruoyi.oa.domain;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.io.Serializable;
import java.util.Date;
import java.math.BigDecimal;

import java.math.BigDecimal;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 薪资模板明细对象 oa_salary_template_detail
 *
 * @author ruoyi
 * @date 2025-06-23
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("oa_salary_template_detail")
public class OaSalaryTemplateDetail extends BaseEntity {

    private static final long serialVersionUID=1L;

    /**
     * 明细ID
     */
    @TableId(value = "salary_detail_id")
    private Long salaryDetailId;
    /**
     * 模板ID → oa_salary_template.salary_template_id
     */
    private Long salaryTemplateId;
    /**
     * 项目代码，如 basic_salary…
     */
    private String salaryItem;
    /**
     * 固定金额，仅针对金额项
     */
    private BigDecimal amount;
    /**
     * 费率，仅针对费率项
     */
    private BigDecimal rate;
    /**
     * 删除标志
     */
    @TableLogic
    private Integer delFlag;
    /**
     * 备注
     */
    private String remark;

}
