package com.eleadmin.oa.entity;

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

import javax.xml.soap.Text;
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_items")
public class Items implements Serializable {
    private static final long serialVersionUID = 1L;

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

    @ApiModelProperty(value = "项目名称")
    private String itemsName;

    @ApiModelProperty(value = "项目标识")
    private String itemsCode;

    @ApiModelProperty(value = "项目分类")
    private String itemsCategory;

    @ApiModelProperty(value = "项目类型")
    @TableField(exist = false)
    private String itemsType;

    @ApiModelProperty(value = "项目图标")
    private String itemsAvatar;

    @ApiModelProperty(value = "项目链接")
    private String url;

    @ApiModelProperty(value = "开发环境地址")
    private String urlDev;

    @ApiModelProperty(value = "后台管理地址")
    private String urlAdmin;

    @ApiModelProperty(value = "默认登录账号密码")
    private String account;

    @ApiModelProperty(value = "项目金额")
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private BigDecimal money;

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

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

    @ApiModelProperty(value = "项目详情")
    private String content;

    @ApiModelProperty(value = "开发参数")
    private String param;

    @ApiModelProperty(value = "二维码")
    private String qrcode;

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

    @ApiModelProperty(value = "项目进度")
    private String progress;

    @ApiModelProperty(value = "项目浏览数")
    private String views;

    @ApiModelProperty(value = "是否精选")
    private Number isCase;

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

    @ApiModelProperty(value = "用户ID")
    private Integer userId;

    @ApiModelProperty(value = "状态, 0上架, 1下架")
    private String status;

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

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

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

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

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

}
