package com.engine.salary.entity.salaryBill.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.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@SalaryTable(pageId = "a4fa2487-d36a82d0dc050a5465f1252f9ecaa107",
        tableType = WeaTableType.CHECKBOX)
public class SalarySendRangeListDTO {
    @JsonSerialize(using = ToStringSerializer.class)
    @SalaryTableColumn(column = "id", display = false)
    private Long id;

    private String grantType;

    @SalaryTableColumn(text = "对象", width = "50%", column = "includeObj")
    @TableTitle(title = "对象", key = "includeObj", dataIndex = "includeObj")
    private List<SalarySendRangeObjDTO> includeObj;

    @SalaryTableColumn(text = "对象中排除", width = "50%", column = "excludeObj")
    @TableTitle(title = "对象中排除", key = "excludeObj", dataIndex = "excludeObj")
    private List<SalarySendRangeObjDTO> excludeObj;
}
