package com.hdkj.lt.core.bizms.modle.po.operationAbnormality;


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.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 运行异常转供-转供方案分析-开关动作顺序信息表
 *
 * @author lihao
 * @since 2025-07-05
 */
@TableName("fhzg_operation_abnormality_switching_sequence")
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class FhzgOperationAbnormalitySwitchingSequence implements Serializable {

    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value = "主键ID")
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long id;

    @ApiModelProperty(value = "运行异常ID")
    @TableField("oa_id")
    private Long oaId;

    @ApiModelProperty(value = "动作顺序")
    @TableField("switching_seq")
    private Integer switchingSeq;

    @ApiModelProperty(value = "开关编号")
    @TableField("switch_id")
    private String switchId;

    @ApiModelProperty(value = "开关名称")
    @TableField("switch_name")
    private String switchName;

    @ApiModelProperty(value = "是否三遥开关")
    @TableField("is_auto_switch")
    private String isAutoSwitch;

    @ApiModelProperty(value = "动作内容")
    @TableField("operation_type")
    private String operationType;

    @ApiModelProperty(value = "动作时间")
    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField("operation_time")
    private LocalDateTime operationTime;

    @ApiModelProperty(value = "创建人")
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    @TableField("creator")
    private Long creator;

    @ApiModelProperty(value = "创建时间")
    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField("create_time")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "最后一次修改人")
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    @TableField("last_editor")
    private Long lastEditor;

    @ApiModelProperty(value = "最后一次修改时间")
    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField("last_time")
    private LocalDateTime lastTime;
}
