package com.engine.salary.entity;

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

    /**
     * 主键id
     */
    private Long id;
    /**
     * 账套id
     */
    private Long salarySobId;
    /**
     * 对象id
     */
    private Long targetId;
    /**
     * 对象类型。1：外部人员
     */
    private Integer targetType;
    /**
     * 租户ID
     */
    private String tenantKey;
    /**
     * 更新时间
     */
    private Date updateTime;

    /**
     * 创建时间
     */
    private Date createTime;
    /**
     * 创建人
     */
    private Long creator;
    /**
     * 是否已删除。0：未删除、1：已删除
     */
    private Integer deleteType;

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

    @TableTitle(title = "名称", dataIndex = "targetName", key = "targetName")
    private String targetName;

}