package com.ltgk.port.domain.entity;


import com.baomidou.mybatisplus.annotation.*;
import com.ltgk.common.annotation.Excel;
import com.ltgk.common.core.page.BasePage;
import com.ltgk.common.validation.groups.Detail;
import com.ltgk.common.validation.groups.Update;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;
import java.util.Date;

/**
 * 督察表 (DsPortInspector)实体类
 *
 * @author Qi ChengBin
 * @date 2025-03-27
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName(value = "ds_port_inspector")
@ApiModel(value = "督察表对象", description = "DsPortInspector表")
public class DsPortInspector extends BasePage implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    @NotBlank(message = "主键信息不能为空", groups = {Detail.class, Update.class})
    private String id;

    @ApiModelProperty(value = "被检查单位")
    @TableField(value = "units_to_be_inspected", condition = SqlCondition.LIKE)
    @Excel(name = "被检查单位")
    private String unitsToBeInspected;

    @ApiModelProperty(value = "督察类型【0-大风督察;使用枚举类】")
    @TableField(value = "inspector_type")
    private Integer inspectorType;

    @ApiModelProperty(value = "督察内容")
    @TableField(value = "inspector_content", condition = SqlCondition.LIKE)
    @Excel(name = "督察内容")
    private String inspectorContent;

    @ApiModelProperty(value = "检查开始时间")
    @TableField(value = "inspector_start_time")
    @Excel(name = "检查开始时间", dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date inspectorStartTime;

    @ApiModelProperty(value = "检查结束时间")
    @TableField(value = "inspector_end_time")
    @Excel(name = "检查结束时间", dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date inspectorEndTime;

    @ApiModelProperty(value = "整改要求")
    @TableField(value = "rectification_requirements", condition = SqlCondition.LIKE)
    @Excel(name = "整改要求")
    private String rectificationRequirements;

    @ApiModelProperty(value = "现场检查情况及存在的隐患和问题")
    @TableField(value = "situation_pitfall_problem", condition = SqlCondition.LIKE)
    @Excel(name = "检查情况")
    private String situationPitfallProblem;

    @ApiModelProperty(value = "检查组长签字")
    @TableField(value = "inspector_leader_sign")
    private String inspectorLeaderSign;

    @ApiModelProperty(value = "被检查单位负责人签字")
    @TableField(value = "units_leader_sign")
    private String unitsLeaderSign;

    @ApiModelProperty(value = "删除标志: 0-未删除, 1-已删除")
    @TableField(value = "del_flag")
    @TableLogic(delval = "1", value = "0")
    private Integer delFlag;

    @ApiModelProperty(value = "行政区域编码")
    @TableField(value = "area_code")
    private String areaCode;

    @ApiModelProperty(value = "行政区域名称")
    @TableField(value = "area_name")
    private String areaName;

    @ApiModelProperty(value = "创建人")
    @TableField(value = "create_by")
    private String createBy;

    @ApiModelProperty(value = "创建时间")
    @TableField(value = "create_at")
    private Date createAt;

    @ApiModelProperty(value = "更新人")
    @TableField(value = "update_by")
    private String updateBy;

    @ApiModelProperty(value = "更新时间")
    @TableField(value = "update_at")
    private Date updateAt;

    @ApiModelProperty(value = "备注")
    @TableField(value = "remark")
    private String remark;

    @ApiModelProperty(value = "开始时间")
    @TableField(exist = false)
    private String startTime;

    @ApiModelProperty(value = "结束时间")
    @TableField(exist = false)
    private String endTime;
}

