package jnpf.model.personnels.req.employment;

import jnpf.util.JsonUtil;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;

/**
 * todo
 *
 * @author Flynn Chan
 * @create 2024-05-10
 */
@NoArgsConstructor
@Data
public class AddStaffEmploymentApplySalaryDTO implements Serializable {

    /**
     * userId
     */
    private String userId;
    /**
     * userName
     */
    private String userName;
    /**
     * fCardId
     */
    private String fCardId;
    /**
     * rankId
     */
    private String rankId;
    /**
     * afterSalaryJson
     */
    private String afterSalaryJson;

    /**
     * 修改后的薪资项数组
     */
    private List<AddStaffEmploymentApplySalaryItemDTO> afterSalary;

    /**
     * fTotalMoney
     */
    private String fTotalMoney;
    /**
     * changeDate
     */
    private String changeDate;
    /**
     * remark
     */
    private String remark;
    /**
     * updateType
     */
    private String updateType;
    /**
     * updateUserName
     */
    private String updateUserName;
    /**
     * updateUserId
     */
    private String updateUserId;

    public String getAfterSalaryJson() {
        return JsonUtil.getObjectToString(afterSalary);
    }
}
