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

import com.engine.salary.annotation.TableTitle;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * 薪资项目调整记录列表
 * <p>Copyright: Copyright (c) 2022</p>
 * <p>Company: 泛微软件</p>
 *
 * @author qiantao
 * @version 1.0
 **/
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
//薪资项目调整记录列表")
//@TableOperates(value = {
//        @Operates(index = 0, text = "编辑" ,labelId = 59943),
//        @Operates(index = 1, text = "删除" ,labelId = 59942)
//}, tableType = WeaTableTypeEnum.NONE)
public class SingleSalaryItemAdjustRecordListDTO {

//    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;
    //
    @TableTitle(title = "调整项目", dataIndex = "adjustItem", key = "adjustItem")
    private String adjustItem;

    @TableTitle(title = "调整前", dataIndex = "adjustBefore", key = "adjustBefore")
    private String adjustBefore;

    @TableTitle(title = "调整后", dataIndex = "adjustAfter", key = "adjustAfter")
    private String adjustAfter;

    @TableTitle(title = "调整原因", dataIndex = "adjustReason", key = "adjustReason")
    private String adjustReason;

    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @TableTitle(title = "生效日期", dataIndex = "effectiveTime", key = "effectiveTime")
    private Date effectiveTime;

    @TableTitle(title = "操作人", dataIndex = "operator", key = "operator")
    private String operator;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @TableTitle(title = "操作时间", dataIndex = "operateTime", key = "operateTime")
    private Date operateTime;

    @TableTitle(title = "备注", dataIndex = "description", key = "description")
    private String description;

//    @JsonIgnore
    private Long salaryArchiveId;

//    @JsonIgnore
    private Long salaryItemId;


    /**
     * 是否能操作
     */
    private Boolean canOperator;
}
