package com.sifang.modules.sunshine.SystemSetting.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

@Entity
@Table(name = "crm_trader_contract")
public class CrmTraderContract implements Serializable {

    private String id;

    private String traderId;

    private String status;

    private String contractNumber;

    @JsonFormat(pattern="yyyy-MM-dd")
    private Date startTime;
    @JsonFormat(pattern="yyyy-MM-dd")
    private Date endTime;

    private Date signFinishTime;

    private String traderKeyword;

    private String nhKeyword;

    private String contractUrl;

    private String contractFileName;

    private String contractId;

    private String contractSignedPath;

    private Date createTime;

    private String createName;

    private Date updateTime;

    private String updateName;

    @Id
    @GeneratedValue(generator = "idGenerator")
    @GenericGenerator(name = "idGenerator", strategy = "uuid")
    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }


    public String getTraderId() {
        return traderId;
    }

    public void setTraderId(String traderId) {
        this.traderId = traderId;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getContractNumber() {
        return contractNumber;
    }

    public void setContractNumber(String contractNumber) {
        this.contractNumber = contractNumber;
    }

    public Date getStartTime() {
        return startTime;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public Date getSignFinishTime() {
        return signFinishTime;
    }

    public void setSignFinishTime(Date signFinishTime) {
        this.signFinishTime = signFinishTime;
    }

    public String getTraderKeyword() {
        return traderKeyword;
    }

    public void setTraderKeyword(String traderKeyword) {
        this.traderKeyword = traderKeyword;
    }

    public String getNhKeyword() {
        return nhKeyword;
    }

    public void setNhKeyword(String nhKeyword) {
        this.nhKeyword = nhKeyword;
    }

    public String getContractUrl() {
        return contractUrl;
    }

    public void setContractUrl(String contractUrl) {
        this.contractUrl = contractUrl;
    }

    public String getContractId() {
        return contractId;
    }

    public void setContractId(String contractId) {
        this.contractId = contractId;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getCreateName() {
        return createName;
    }

    public void setCreateName(String createName) {
        this.createName = createName;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String getUpdateName() {
        return updateName;
    }

    public void setUpdateName(String updateName) {
        this.updateName = updateName;
    }


    public String getContractSignedPath() {
        return contractSignedPath;
    }

    public void setContractSignedPath(String contractSignedPath) {
        this.contractSignedPath = contractSignedPath;
    }

    public String getContractFileName() {
        return contractFileName;
    }

    public void setContractFileName(String contractFileName) {
        this.contractFileName = contractFileName;
    }
}
