package com.bonus.sgzb.app.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
* Description: 协议管理bm_agreement_info
* @Author 阮世耀
* @Create 2023/12/13 14:47
* @Version 1.0
*/

@ApiModel(description = "协议管理bm_agreement_info")
@Data
public class BmAgreementInfo implements Serializable {
    /**
     * 协议ID
     */
    @ApiModelProperty(value = "协议ID")
    private Integer agreementId;

    /**
     * 协议编号
     */
    @ApiModelProperty(value = "协议编号")
    private String agreementCode;

    /**
     * 签订日期
     */
    @ApiModelProperty(value = "签订日期")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date signTime;

    /**
     * 往来单位id
     */
    @ApiModelProperty(value = "往来单位id")
    private Integer unitId;

    /**
     * 工程标段ID
     */
    @ApiModelProperty(value = "工程标段ID")
    private Integer projectId;

    /**
     * 创建者
     */
    @ApiModelProperty(value = "创建者")
    private String createBy;

    /**
     * 租赁天数
     */
    @ApiModelProperty(value = "租赁天数")
    private Integer leaseDay;

    /**
     * 计划开始时间
     */
    @ApiModelProperty(value = "计划开始时间")
    private Date planStartTime;

    /**
     * 合同
     */
    @ApiModelProperty(value = "合同")
    private String contractCode;

    /**
     * 授权人
     */
    @ApiModelProperty(value = "授权人")
    private String authPerson;

    /**
     * 联系方式
     */
    @ApiModelProperty(value = "联系方式")
    private String phone;

    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    /**
     * 更新者
     */
    @ApiModelProperty(value = "更新者")
    private String updateBy;

    /**
     * 更新时间
     */
    @ApiModelProperty(value = "更新时间")
    private Date updateTime;

    /**
     * 备注
     */
    @ApiModelProperty(value = "备注")
    private String remark;

    /**
     * 数据所属组织
     */
    @ApiModelProperty(value = "数据所属组织")
    private Integer companyId;

    /**
     * 人员id
     */
    private Integer userId;
    /**
     * 单位名称
     */
    private String  unitName;
    /**
     * 工程id
     */
    private Integer lotId;
    /**
     * 工程名称
     */
    private String  lotName;

    private static final long serialVersionUID = 1L;

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getUnitName() {
        return unitName;
    }

    public void setUnitName(String unitName) {
        this.unitName = unitName;
    }

    public Integer getLotId() {
        return lotId;
    }

    public void setLotId(Integer lotId) {
        this.lotId = lotId;
    }

    public String getLotName() {
        return lotName;
    }

    public void setLotName(String lotName) {
        this.lotName = lotName;
    }
}