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

import com.cloudstore.eccom.pc.table.WeaTableType;
import com.engine.salary.annotation.SalaryTable;
import com.engine.salary.annotation.SalaryTableColumn;
import com.engine.salary.annotation.TableTitle;
import com.engine.salary.enums.salarysob.TargetTypeEnum;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 薪资账套人员范围列表
 * <p>Copyright: Copyright (c) 2022</p>
 * <p>Company: 泛微软件</p>
 *
 * @author qiantao
 * @version 1.0
 **/
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@SalaryTable(pageId = "b4f85287-e3f9-4d11-ad90-7d06e54y6rj8", tableType = WeaTableType.CHECKBOX)
public class SalarySobRangeListDTO {

    //主键id
    @SalaryTableColumn(column = "id", display = false)
    private Long id;

    //薪资账套的id
    private Long salarySobId;

    /**
     * 对象类型
     *
     * @see TargetTypeEnum
     */
    private Integer targetType;

    @SalaryTableColumn(text = "对象类型", width = "10%", column = "targetTypeName")
    @TableTitle(title = "对象类型", dataIndex = "targetTypeName", key = "targetTypeName")
    private String targetTypeName;

    @SalaryTableColumn(text = "对象", width = "10%", column = "targetName")
    @TableTitle(title = "对象", dataIndex = "targetName", key = "targetName")
    private String targetName;

    //对象
    private Long targetId;

    @SalaryTableColumn(text = "员工状态", width = "10%", column = "employeeStatus")
    @TableTitle(title = "员工状态", dataIndex = "employeeStatus", key = "employeeStatus")
    private String employeeStatus;
}
