package com.ruoyi.oa.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.domain.BaseEntity;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 薪资管理业务对象 oa_salary
 *
 * @author hdka
 * @date 2025-03-06
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class OaSalaryBo extends BaseEntity {

    /**
     * 主键id
     */
    private Long salaryId;

    /**
     * 用户id
     */
    private Long userId;

    /**
     * 实际工资
     */
    private Double realSalary;

    /**
     * 涉及时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @NotBlank(message = "发放时间不能为空")
    private Date payTime;

    /**
     * 基础日薪
     */
    private Double baseSalary;

    /**
     * 备注
     */
    private String remark;

    /** 以下二参数是用来分析材料并且计算的 */
    private String monthStr;

    private String filePath;

    private Double insure;


}
