package com.yh.saas.plugin.yiliangyiyun.entity;

import java.util.Date;
import com.baomidou.mybatisplus.activerecord.Model;
import java.io.Serializable;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.annotations.Version;

import com.baomidou.mybatisplus.enums.IdType;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.yh.saas.common.support.entity.BaseModel;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 入驻公司发布动态
 * </p>
 *
 * @author Gongdc
 * @since 2021-08-28
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("settled_company_dynamics")
public class SettledCompanyDynamics extends BaseModel<SettledCompanyDynamics> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(type = IdType.UUID)
    private String id;
    /**
     * 发布手机号
     */
    private String phone;
    /**
     * 公司名称
     */
    private String compName;
    /**
     * 城市
     */
    private String city;
    /**
     * 标题
     */
    private String title;
    /**
     * 动态内容
     */
    private String content;
    /**
     * 附件
     */
    private String address;
    /**
     * 发布日期
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date dynamicsDate;
    /**
     * 状态flag
     */
    private String statusFlag;
    /**
     * 状态
     */
    private String status;
    /**
     * 审核状态
     */
    private String approveStatus;
    /**
     * 审核流id
     */
    private String workflowId;
    /**
     * 是否显示
     */
    private String showFlag;
    /**
     * pc 标识
     */
    @TableField(exist = false)
    private String pcFlag;
    /**
     * 查询类型
     */
    @TableField(exist = false)
    private String searchType;

    /**
     * 通过1驳回2
     */
    @TableField(exist = false)
    private Integer flag;
    /**
     * 昵称
     */
    @TableField(exist = false)
    private String userName;
    /**
     * 头像
     */
    @TableField(exist = false)
    private String avatarUrl;



    /**
     * 模糊查询
     */
    @TableField(exist = false)
    private String searchKeyWord;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
