package com.eleadmin.oa.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

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

/**
 * 资产
 *
 * @author gxwebsoft.com
 * @since 2020-03-14 11:29:04
 */
@Data
@ApiModel(description = "资产")
@TableName("oa_assets")
public class Assets implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty("ID")
    @TableId(type = IdType.AUTO)
    private Integer assetsId;

    @ApiModelProperty(value = "资产名称")
    private String name;

    @ApiModelProperty(value = "资产标识")
    private String code;

    @ApiModelProperty(value = "资产类型")
    private String type;

    @ApiModelProperty(value = "品牌厂商")
    private String brand;

    @ApiModelProperty(value = "购买时间")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date startTime;

    @ApiModelProperty(value = "到期时间")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date endTime;

    @ApiModelProperty(value = "宝塔面板")
    private String panel;

    @ApiModelProperty(value = "宝塔账号")
    private String panelAccount;

    @ApiModelProperty(value = "宝塔面板密码")
    private String panelPassword;

    @ApiModelProperty(value = "服务器root账号")
    private String account;

    @ApiModelProperty(value = "服务器root密码")
    private String password;

    @ApiModelProperty(value = "(阿里云/腾讯云)登录账号")
    private String brandAccount;

    @ApiModelProperty(value = "(阿里云/腾讯云)登录密码")
    private String brandPassword;

    @ApiModelProperty(value = "开发端口")
    private String openPort;

    @ApiModelProperty(value = "服务器配置")
    private String configuration;

    @ApiModelProperty(value = "合同金额")
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private BigDecimal financeAmount;

    @ApiModelProperty(value = "购买年限")
    private String financeYears;

    @ApiModelProperty(value = "续费金额")
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private BigDecimal financeRenew;

    @ApiModelProperty(value = "客户Id")
    private Integer customerId;

    @ApiModelProperty(value = "客户名称")
    private String customerName;

    @ApiModelProperty(value = "客户名称")
    @TableField(exist = false)
    private String financeCustomerName;

    @ApiModelProperty(value = "客户联系人")
    private String financeCustomerContact;

    @ApiModelProperty(value = "客户联系电话")
    private String financeCustomerPhone;

    @ApiModelProperty(value = "备注")
    private String comments;

    @ApiModelProperty(value = "状态, 0正常, 1过期, 2废弃")
    private String status;

    @ApiModelProperty(value = "排序号")
    private Integer sortNumber;

    @ApiModelProperty(value = "是否删除, 0否, 1是")
    @TableLogic
    private Integer deleted;

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

    @ApiModelProperty(value = "修改时间")
    private Date updateTime;

}
