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

import com.engine.hrmelog.annotation.ElogTransform;
import com.engine.salary.enums.push.PushRecordStatusEnum;
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 PushRecordPO {

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

    /**
     * 记录名
     */
    @ElogTransform(name = "记录名")
    private String name;


    /**
     * 核算记录id
     */
    @ElogTransform(name = "核算记录id")
    private Long acctRecordId;


    /**
     * 推送配置id
     */
    @ElogTransform(name = "推送配置id")
    private Long settingId;

    /**
     * 建模id
     */
    private Integer modeId;

    /**
     * 数据库表名
     */
    private String tableName;


    /**
     * 推送状态
     * @see PushRecordStatusEnum
     */
    @ElogTransform(name = "推送状态")
    private Integer status;

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

    /**
     * 开始时间
     */
    @ElogTransform(name = "开始时间")
    private Date startTime;

    /**
     *
     */
    @ElogTransform(name = "结束时间")
    private Date endTime;



    /**
     * 推送类型
     */
    @ElogTransform(name = "推送类型")
    private Integer type;

    /**
     * 创建时间
     */
    @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;

}