package com.engine.salary.entity.push.po;

import com.engine.hrmelog.annotation.ElogTransform;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Collection;
import java.util.Date;

/**
 * 数据推送配置
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class PushRecordDetailPO {


    @ElogTransform(name = "id")
    private Long id;

    /**
     * 推送记录id
     */
    @ElogTransform(name = "推送记录id")
    private Long recordId;

    /**
     * 核算人员id
     */
    @ElogTransform(name = "核算人员id")
    private Long acctEmpId;

    /**
     * 核算人员id
     */
    private Long dataId;

    /**
     * 执行状态
     * @see com.engine.salary.enums.push.PushRecordDetailStatusEnum
     */
    @ElogTransform(name = "执行状态")
    private Integer status;

    /**
     * 失败原因
     */
    @ElogTransform(name = "失败原因")
    private String failReason;

    /**
     * 执行sql
     */
    @ElogTransform(name = "执行sql")
    private String formula;

    /**
     * 创建时间
     */
    @ElogTransform(name = "创建时间")
    private Date createTime;

    /**
     * 创建人
     */
    @ElogTransform(name = "创建人")
    private Long creator;

    /**
     * 是否已删除。0：未删除、1：已删除
     */
    @ElogTransform(name = "是否已删除。0：未删除、1：已删除")
    private Integer deleteType;


    /**
     * 租户ID
     */
    @ElogTransform(name = "租户ID")
    private String tenantKey;

    /**
     * 更新时间
     */
    @ElogTransform(name = "更新时间")
    private Date updateTime;


    //主键id集合
    private Collection<Long> ids;

}