package com.bohuikeji.delivery.backstage.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.bohuikeji.frame.module.admin.annotation.TableNewField;
import com.bohuikeji.frame.module.admin.annotation.TableQueryField;
import com.bohuikeji.frame.module.admin.annotation.TableShowField;
import com.bohuikeji.frame.module.admin.base.EntityBase;
import com.bohuikeji.frame.module.admin.constant.RegEx;
import com.bohuikeji.frame.module.admin.entity.web.block.DateBlock;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * <p>
 * 招商加盟入驻信息表
 * </p>
 * @author 10552
 * @since 2019-08-22
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@ApiModel(value="TInviteJoin对象", description="招商加盟入驻信息表")
@TableName("t_invite_join")
public class TInviteJoin extends EntityBase<TInviteJoin> {

    @ApiModelProperty(value="招商加盟id")
    @TableId(value = "join_id", type = IdType.AUTO)
    @TableShowField(value = "ID",id = true)
    @TableNewField(show = false)
    private Integer joinId;

    @ApiModelProperty(value = "加入姓名")
    @TableField("join_name")
    @TableQueryField(like = false)
    @TableShowField(value = "加入姓名")
    private String joinName;

    @ApiModelProperty(value = "联系电话")
    @TableField("join_phone")
    @TableQueryField(show = false)
    @TableShowField(value = "联系电话")
    @TableNewField(required = false)
    private String joinPhone;

    @ApiModelProperty(value = "公司名称")
    @TableField("corporate_name")
    @TableShowField(value = "公司名称")
    @TableNewField(required = false)
    @TableQueryField(like = false)
    private String corporateName;

    @ApiModelProperty(value = "品牌名称")
    @TableField("brand_name")
    @TableShowField(value = "品牌名称")
    @TableNewField(required = false)
    @TableQueryField(like = false)
    private String brandName;

    @ApiModelProperty(value = "城市区域")
    @TableField("urban_area")
    @TableShowField(value = "城市区域")
    @TableNewField(required = false)
    @TableQueryField(like = false)
    private String urbanArea;

    @ApiModelProperty(value = "合作内容（广告内容）")
    @TableField("content")
    @TableShowField(value = "合作内容/广告内容")
    @TableNewField(required = false)
    private String content;

    @ApiModelProperty(value = "功能备注")
    @TableField("func_remark")
    @TableShowField(value = "功能备注")
    @TableNewField(edit = false,required = false)
    @TableQueryField(like = false)
    private String funcRemark;

    @ApiModelProperty(value = "加入状态")
    @TableField("join_sate")
    @TableShowField(value = "加入状态")
    @TableNewField(options = {"已申请","处理中","已处理"})
    private String joinSate="已申请";

    @ApiModelProperty(value = "处理说明")
    @TableField("handle_explain")
    @TableShowField(value = "处理说明")
    @TableNewField(required = false)
    private String handleExplain;


    @ApiModelProperty(value = "创建时间")
    @TableField("create_time")
    @TableShowField(value = "创建时间")
    @TableNewField(edit = false)
    @TableQueryField(like = false)
    private LocalDateTime createTime=LocalDateTime.now();

}
