package org.jeecg.modules.newWarning.entity;

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 java.io.Serializable;
import java.time.LocalDateTime;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import javax.naming.Name;

/**
 * <p>
 * 报警历史数据表
 * </p>
 *
 * @author zrj
 * @since 2022-12-09
 */
@Getter
@Setter
@TableName("warn_history")
public class NewWarnHistory implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.ASSIGN_ID)
    private String id;

    /**
     * 井号
     */
    @TableField("jh")
    private String jh;

    /**
     * 大钩位置
     */
    @TableField("warn_hkh")
    private Float warnHkh;

    /**
     * 报警钻头位置
     */
    @TableField("warn_bitdepth")
    private Float warnBitdepth;
    /**
     * 大钩负荷
     */
    @TableField("warn_woh")
    private Float warnWoh;

    /**
     * 报警类型
     */
    @TableField("warn_type")
    private String warnType;

    /**
     * 报警点时间
     */
    @TableField("warn_time")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private java.util.Date warnTime;

    /**
     * 报警点工况
     */
    @TableField("warn_condition")
    private String warnCondition;

    /**
     * 整体工况
     */
    @TableField("whole_condition")
    private String wholeCondition;

    /**
     * 正常柱起始时间
     */
    @TableField("normal_startime")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private java.util.Date normalStarttime;

    /**
     * 正常柱结束时间
     */
    @TableField("normal_endtime")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private java.util.Date normalEndtime;

    /**
     * 正常柱钩载最值
     */
    @TableField("normal_woh")
    private Float normalWoh;

    /**
     * 间隔正常柱数量
     */
    @TableField("normal_num")
    private Integer normalNum;

    /**
     * 报警阈值
     */
    @TableField("warn_threshold")
    private Float warnThreshold;

    /**
     * 钻头监测阈值
     */
    @TableField("bitdepth")
    private Float bitdepth;

    /**
     * 钻杆重量
     */
    @TableField("column_weight")
    private Float columnWeight;

    /**
     * 报警阈值
     */
    @TableField("warn_value")
    private Float warnValue;

    /**
     * 大钩变化
     */
    @TableField("hkh_rang")
    private Float hkhRang;

    /**
     *
     */
    @TableField("loop_drilling_pump")
    private Float loopDrillingPump;

    @TableField("loop_drilling_spp")
    private Float loopDrillingSpp;

    @TableField("per_spp")
    private Float perSpp;

    @TableField(exist = false)
    private String tag;

    /**
     * 扭矩上一点井深
     */
    @TableField("torquepreviousjs")
    private Float torquepreviousjs;

    /**
     * 波动取值时间范围
     */
    @TableField("torguetimes")
    private Integer torguetimes;

    /**
     * 扭矩变化量阈值
     */
    @TableField("torgue_variation_threshold")
    private Float torgueVariationThreshold;

    /**
     * 扭矩波动阈值
     */
    @TableField("torgue_wave_threshold")
    private Float torgueWaveThreshold;

    @TableField("warn_des")
    private String warnDes;

    /**
     * 扭矩变化量上一点时间
     */
    @TableField("njbhl_per_time")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private java.util.Date njbhlPerTime;

    /**
     * 上一点扭矩
     */
    @TableField("njbhl_per_torBig")
    private Float njbhlPerTorBig;


    @TableField("pit_start_time")
    private java.util.Date pitStartTime;

    @TableField("pit_start")
    private Float pitStart;

    @TableField("pit_sub")
    private Float pitSub;

    @TableField("pit_value")
    private Float pitValue;

    @TableField(exist = false)
    private String ycms;
}
