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

import com.engine.hrmelog.annotation.ElogTransform;
import com.engine.salary.enums.push.PushItemFieldEnum;
import com.engine.salary.enums.salaryformula.SalarySQLReferenceEnum;
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 PushSettingItemPO {


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

    /**
     * 设置id
     */
    @ElogTransform(name = "设置id")
    private Long settingId;

    /**
     * 项目
     */
    @ElogTransform(name = "项目")
    private String item;

    /**
     * 项目名
     */
    @ElogTransform(name = "项目名")
    private String itemName;

    /**
     * 项目类型
     * @see SalarySQLReferenceEnum
     */
    @ElogTransform(name = "项目类型")
    private String source;

    /**
     * 数据库字段
     */
    @ElogTransform(name = "数据库字段")
    private String fieldName;

    /**
     * 字段类型
     * @see PushItemFieldEnum
     */
    @ElogTransform(name = "字段类型")
    private Integer fieldType;


    @ElogTransform(name = "排序")
    private Integer sortedIndex;

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

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

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

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

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


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

}