package com.hzs.system.index.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.hzs.common.core.annotation.Excel;
import com.hzs.common.core.annotation.Transaction;
import com.hzs.common.core.constant.EnumsPrefixConstants;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @Description: 审核接收返回VO
 * @Author: jiang chao
 * @Time: 2023/5/5 10:18
 * @Classname: ReceiveApprovalVO
 * @PackageName: com.hzs.system.index.vo
 */
@NoArgsConstructor
@AllArgsConstructor
@Builder
@Data
public class ReceiveApprovalVO {

    /**
     * 签呈ID
     */
    private Long pkId;
    /**
     * 审批业务单号
     */
    private String approvalCode;

    /**
     * 发起人
     */
    @Excel(name = "发起人")
    private String userName;

    /**
     * 业务类型（EApprovalBusiness）
     */
    @Transaction(transactionKey = EnumsPrefixConstants.APPROVAL_BUSINESS)
    private Integer approvalBusiness;
    /**
     * 业务类型显示
     */
    @Excel(name = "业务类型")
    private String approvalBusinessVal;

    /**
     * 是否已读（0=已读，1=未读）
     */
    @Transaction(transactionKey = EnumsPrefixConstants.READ_STATE)
    private Integer receiveStatus;
    /**
     * 是否已读显示
     */
    @Excel(name = "是否已读")
    private String receiveStatusVal;

    /**
     * 创建时间
     */
    @Excel(name = "创建时间", dateFormat = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date creationTime;

    /**
     * 终审时间
     */
    @Excel(name = "终审时间", dateFormat = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date sendTime;


    /**
     * 接收时间
     */
    @Excel(name = "接收时间", dateFormat = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date receiveTime;

}
