package com.chinaweal.aiccs.aiccs.market.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

import java.time.LocalDate;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import com.chinaweal.youfool.framework.springboot.mybatis.plus.SuperEntity;
import com.chinaweal.youfool.framework.springboot.json.LocalDateTimeStringSerializer;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 应诉检查表
 * </p>
 *
 * @author chinaweal
 * @since 2021-10-13
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName(schema = "aiccs", value = "tssueinspect")
@ApiModel(value="TSSueInspect对象", description="应诉检查表 ")
public class TSSueInspect extends SuperEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    @ApiModelProperty(value = "主键id")
    @TableId(value = "id", type = IdType.ASSIGN_UUID)
    private String id;

    /**
     *  企业主键
     */
    @ApiModelProperty(value = "企业主键")
    @TableField("priPId")
    private String priPId;

    /**
     * 注册号
     */
    @ApiModelProperty(value = "注册号")
    @TableField("regNo")
    private String regNo;

    /**
     * 统一社会信用代码
     */
    @ApiModelProperty(value = "统一社会信用代码")
    @TableField("uscc")
    private String uscc;

    /**
     * 企业名称
     */
    @ApiModelProperty(value = "企业名称")
    @TableField("entName")
    private String entName;

    /**
     * 经营地址
     */
    @ApiModelProperty(value = "经营地址")
    @TableField("dom")
    private String dom;

    /**
     * 法人姓名
     */
    @ApiModelProperty(value = "法人姓名")
    @TableField("legalName")
    private String legalName;

    /**
     * 检查实施机关
     */
    @ApiModelProperty(value = "检查实施机关")
    @TableField("inspectOrg")
    private String inspectOrg;

    /**
     * 检查实施机关名称
     */
    @ApiModelProperty(value = "检查实施机关名称")
    @TableField("inspectOrgName")
    private String inspectOrgName;

    /**
     * 检查人Id
     */
    @ApiModelProperty(value = "检查人Id")
    @TableField("inspectorId")
    private String inspectorId;

    /**
     * 检查人
     */
    @ApiModelProperty(value = "检查人")
    @TableField("inspector")
    private String inspector;

    /**
     * 协查人
     */
    @ApiModelProperty(value = "协查人")
    @TableField("helper")
    private String helper;


    /**
     * 检查方式
     */
    @ApiModelProperty(value = "检查方式")
    @TableField("inspectType")
    private String inspectType;

    /**
     * 检查方式(中文)
     */
    @ApiModelProperty(value = "检查方式(中文)")
    @TableField(exist = false)
    private String inspectTypeStr;

    /**
     * 检查结果 (1-正常 2-未按规定公示即时信息 3-弄虚作假 4实地查无 5-不予配合情节严重)
     */
    @ApiModelProperty(value = "检查结果")
    @TableField("inspectResult")
    private String inspectResult;

    /**
     * 检查结果(中文)
     */
    @ApiModelProperty(value = "检查结果(中文)")
    @TableField(exist = false)
    private String inspectResultStr;

    /**
     * 《责令限期履行公示义务通知书》文号
     */
    @ApiModelProperty(value = "《责令限期履行公示义务通知书》文号")
    @TableField("correctWriteNo")
    private String correctWriteNo;

    /**
     * 状态（0-待检查， 1-已检查， 2-列异回退, 4-删除）
     */
    @ApiModelProperty(value = "状态", hidden = true)
    @TableField("status")
    private String status;

    /**
     * 责令改正期限
     */
    @ApiModelProperty(value = "'责令改正期限'")
    @TableField("correctDate")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDate correctDate;

    /**
     * 检查时间
     */
    @ApiModelProperty(value = "检查时间")
    @TableField("inspectDate")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime inspectDate;

    /**
     * 检查时间
     */
    @ApiModelProperty(value = "整改时间")
    @TableField("rectDate")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime rectDate;

    /**
     * 回退处理意见
     */
    @ApiModelProperty(value = "回退处理意见")
    @TableField("backOpinion")
    private String backOpinion;

}
