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

import com.engine.salary.annotation.TableTitle;
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;

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


    private Long id;

    /**
     * 设置id
     */
    private Long settingId;

    /**
     * 项目
     */
    private String item;

    /**
     * 项目名
     */
    @TableTitle(title = "项目名", dataIndex = "itemName", key = "itemName")
    private String itemName;

    /**
     * 项目类型
     * @see SalarySQLReferenceEnum
     */
    private String source;

    private String sourceName;

    /**
     * 数据库字段
     */
    @TableTitle(title = "数据库字段", dataIndex = "fieldName", key = "fieldName")
    private String fieldName;

    /**
     * 字段类型
     * @see PushItemFieldEnum
     */
    private PushItemFieldEnum fieldType;

    @TableTitle(title = "字段类型", dataIndex = "fieldTypeName", key = "fieldTypeName")
    private String fieldTypeName;

    @TableTitle(title = "排序", dataIndex = "sortedIndex", key = "sortedIndex")
    private Integer sortedIndex;

}