package com.bonus.material.purchase.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 * @author : 阮世耀
 * @version : 1.0
 * @PackagePath: com.bonus.material.purchase.domain
 * @CreateTime: 2025-01-17  16:45
 * @Description: 新购会签记录表
 */
@Data
@Accessors(chain = true)
public class PurchaseSignRecord {

    private Long id;

    private Long taskId;

    private Long userId;

    private Long orgId;

    private String signUrl;

    private String signType;

    private String userName;

    private String deptName;

    /**
     * 审核状态(1 通过，2 驳回)
     */
    private String auditStatus;

    /**
     * 审核状态名称(1 通过，2 驳回)
     */
    private String auditStatusName;

    private String auditRemark;

    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    public PurchaseSignRecord(Long taskId, Long userId, Long orgId, String auditRemark) {
        this.taskId = taskId;
        this.userId = userId;
        this.orgId = orgId;
        this.auditRemark = auditRemark;
    }

    public PurchaseSignRecord() {
    }

    public PurchaseSignRecord(Long id, Long taskId, Long userId, Long orgId, String signUrl, String signType) {
        this.id = id;
        this.taskId = taskId;
        this.userId = userId;
        this.orgId = orgId;
        this.signUrl = signUrl;
        this.signType = signType;
    }

}
