package com.ruoyi.frequency.enterprise.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.CreateTime;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import com.ruoyi.vo.UserInfo;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 企业信息对象 t_enterprise
 *
 * @author liwenlong
 * @date 2023-10-26
 */
@Data
@Accessors(chain = true)
@TableName("t_enterprise")
public class Enterprise extends BaseEntity
{
    private static final long serialVersionUID = 1L;


    @ApiModelProperty("租户号")
    private Long id;

    @ApiModelProperty("删除标志;1 正常 2 删除 3 禁用")
    private Integer delFlag;

    @ApiModelProperty("类型 1施工图 2景观 3 设计")
    private Integer type;

    @ApiModelProperty("企业名称")
    @Excel(name = "企业名称")
    private String name;

    @ApiModelProperty("头像")
    @Excel(name = "头像")
    private String avatar;

    @ApiModelProperty("企业简介")
    @Excel(name = "企业简介")
    private String sketch;

    @ApiModelProperty("企业地址")
    @Excel(name = "企业地址")
    private String address;

    @ApiModelProperty("经度")
    @Excel(name = "经度")
    private String longitude;

    @ApiModelProperty("纬度")
    @Excel(name = "纬度")
    private String latitude;

    @ApiModelProperty("企业微信号")
    @Excel(name = "企业微信号")
    private String wecom;

    @ApiModelProperty("擅长")
    @Excel(name = "擅长")
    private String goodAt;

    @ApiModelProperty("累计服务金额")
    @Excel(name = "累计服务金额")
    private BigDecimal serviceAmount;

    @ApiModelProperty("服务单数")
    @Excel(name = "服务单数")
    private Integer serviceOrderNum;

    @ApiModelProperty("好评率")
    @Excel(name = "好评率")
    private BigDecimal star;

    @ApiModelProperty("系统用户ID")
    @Excel(name = "系统用户ID")
    private Long sysUserId;

    @ApiModelProperty("本月服务单数")
    private Integer monthServiceOrderNum;

    /** 在线状态;1:在线,2离线 */
    @Excel(name = "在线状态;1:在线,2离线")
    private Integer onlineStatus;

    /** 在线时长;分钟 */
    @Excel(name = "在线时长;分钟")
    private Integer onlineDuration;

    @ApiModelProperty(value = "区域")
    private String area;

    @ApiModelProperty(value = "报价单图片")
    private String quotationImage;

    @ApiModelProperty(value = "制作周期")
    private String productionCycle;

    @ApiModelProperty(value = "人数")
    private String numberPeople;

    @ApiModelProperty(value = "价格定位")
    private String pricePosition;

    @ApiModelProperty(value = "保证金额")
    private BigDecimal bondAmount;

    @ApiModelProperty(value = "当月服务金额")
    private BigDecimal monthServiceAmount;

    /** 企业创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date enterpriseCreateTime;

    @TableField(exist = false)
    private UserInfo userInfo;

    @TableField(exist = false)
    private Integer userType;

    @TableField(exist = false)
    private Long userId;

    @TableField(exist = false)
    @ApiModelProperty("后台登录账号")
    private String account;

    @TableField(exist = false)
    @ApiModelProperty("后台登录密码")
    private String loginPwd;

    @TableField(exist = false)
    @ApiModelProperty("作品数量")
    private Integer worksNum;



}
