package com.bonus.material.lease.domain;

import com.bonus.common.biz.domain.BmFileInfo;
import com.bonus.common.core.annotation.Excel;
import com.bonus.common.core.web.domain.BaseEntity;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

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

/**
 * 租赁信息表(MaLeaseInfo)实体类
 *
 * @author makejava
 * @since 2024-11-26 10:48:29
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class MaLeaseInfo extends BaseEntity implements Serializable {
    private static final long serialVersionUID = -66749132523394415L;

    /**
     * 是否提交，决定不同状态
     */
    private Boolean isSubmit;

    @ApiModelProperty(value = "true:出租方  false:承租方")
    private boolean flag;

    /**
     * 主键ID
     */
    private Integer id;

    /**
     * 需求名称
     */
    private String leaseName;

    /**
     * 需求编号
     */
    private String leaseCode;

    /**
     * 需求状态
     */
    private Integer leaseStatus;

    @ApiModelProperty(value = "需求租赁总数量")
    private Integer leaseTotalNum;

    @ApiModelProperty(value = "需求总天数")
    private Integer leaseDay;

    @ApiModelProperty(value = "租赁开始时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date leaseStartTime;

    @ApiModelProperty(value = "租赁结束时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date leaseEndTime;

    /**
     * 需求发布时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date startTime;

    /**
     * 需求发布人
     */
    private String publishUser;

    @ApiModelProperty(value = "需求发布公司")
    private String publishCompany;

    /**
     * 需求截止日期(年月日)
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date endTime;

    /**
     * 联系人
     */
    private String person;

    /**
     * 联系电话
     */
    private String personPhone;

    /**
     * 需求描述
     */
    private String description;

    /**
     * 接单人
     */
    private String orderUser;

    @ApiModelProperty(value = "接单公司")
    private String orderCompany;

    @ApiModelProperty(value = "接单公司名称")
    private String orderCompanyName;


    @ApiModelProperty(value = "需求发布公司名称")
    private String publishCompanyName;

    /**
     * 接单时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date orderTime;

    @ApiModelProperty(value = "省id")
    private Long provinceCode;

    @ApiModelProperty(value = "省名称")
    private String provinceName;

    @ApiModelProperty(value = "市id")
    private Long cityCode;

    @ApiModelProperty(value = "市名称")
    private String cityName;

    @ApiModelProperty(value = "区域id")
    private Long areaCode;

    @ApiModelProperty(value = "区域名称")
    private String areaName;

    @ApiModelProperty(value = "详细地址")
    private String address;

    /**
     * 同意人
     */
    private String agreeUser;

    /**
     * 驳回人
     */
    private String rejectUser;

    @ApiModelProperty(value = "需求详情")
    private List<MaLeaseDetails> detailsList;

    private Integer leaseCount;

    /**
     * 是否短信通知(0 是，1 否)
     */
    private String isSms;

    /**
     * 组织id
     */
    private Long deptId;

    /**
     * 角色id
     */
    private Long roleId;

}

