package com.izouma.zhirongip.domain.demand;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.izouma.zhirongip.annotations.Searchable;
import com.izouma.zhirongip.domain.BaseEntity;
import com.izouma.zhirongip.enums.ApplyStatus;
import com.izouma.zhirongip.enums.TradingMethod;
import com.izouma.zhirongip.utils.excel.EnumExcelConverter;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.annotations.Where;

import javax.persistence.*;
import java.math.BigDecimal;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@Entity
@ApiModel(value = "商标")
@Where(clause = "del = 0")
public class LogoDemand extends BaseEntity {
    @ExcelIgnore
    private Long userId;

    @ApiModelProperty(value = "包含文字")
    private String containText;

    @ApiModelProperty(value = "包含字母")
    private String containLetter;

    @ApiModelProperty(value = "包含图形")
    private String containGraphic;

    /**
     *setting
     */
    @ExcelIgnore
    @ApiModelProperty(value = "所属分类")
    private Long category;

    @Searchable
    @ExcelIgnore
    @Column(columnDefinition = "TEXT")
    @ApiModelProperty(value = "需求描述")
    private String description;


    @ApiModelProperty(value = "转移转化方式")
    private String mode;
    @ApiModelProperty(value = "转移转化方式")
    private Long modeId;

    /**
     *（万元）
     */
    @ApiModelProperty(value = "预算（万元）")
    private BigDecimal expectedPrice;

    @ApiModelProperty(value = "面议")
    private Boolean negotiateDirectly;

    @ApiModelProperty(value = "联系人")
    private String contact;

    @ApiModelProperty(value = "电话")
    private String phone;

    @ApiModelProperty(value = "邮箱")
    private String email;

    @ApiModelProperty(value = "所在地区")
    private String address;

    @Transient
    private String categoryName;

    @ApiModelProperty(value = "浏览量")
    private long view;

    @Enumerated(EnumType.STRING)
    private ApplyStatus status;
}