/*
 * Copyright (c) 2024 codvision.com All Rights Reserved.
 */

package com.codvision.basic.entity.inspection;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * @author codvision
 */
@Data
@ApiModel
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TableName("tbl_inspection_target")
public class InspectionTarget implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value = "主键id")
    private Integer id;

    @ApiModelProperty("对象地址")
    private String targetAddress;

    @ApiModelProperty("对象编码")
    private String targetCode;

    @ApiModelProperty("名称")
    private String targetName;

    @ApiModelProperty("经度")
    private Float lng;

    @ApiModelProperty("监管部门")
    private String superviseDept;

    @ApiModelProperty("负责人联系电话")
    private String legalPersonPhone;

    @ApiModelProperty("备注")
    private String remark;

    @ApiModelProperty("所属村社")
    private Integer oid;

    @ApiModelProperty("对象标签")
    private String tagIdList;

    @ApiModelProperty("别名")
    private String targetAlias;

    @ApiModelProperty("日常管理人姓名")
    private String managerName;

    @ApiModelProperty("日常管理人电话")
    private String managerPhone;

    @ApiModelProperty("负责人")
    private String legalPersonName;

    @ApiModelProperty("启用状态")
    private Integer flagActive;

    @ApiModelProperty("纬度")
    private Float lat;

    @ApiModelProperty("类型(字典：INSPECTION_CATEGORY)")
    private String category;

    @ApiModelProperty("联系方式")
    private String mobile;

    @ApiModelProperty("数据来源：0-系统录入；1-基础信息自动添加")
    private String dataSource;

    @ApiModelProperty("检查任务id")
    private Integer taskId;

    @TableField(fill = FieldFill.INSERT)
    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    @ApiModelProperty(value = "更新时间")
    private Date updateTime;
}
