package org.jeecg.modules.regular.entity;

import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.util.Date;
import java.math.BigDecimal;
import java.util.List;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.jeecgframework.poi.excel.annotation.ExcelIgnore;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @Description: 检修规程
 * @Author: jeecg-boot
 * @Date:   2025-01-16
 * @Version: V1.0
 */
@Data
@TableName("bu_regular")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="bu_regular对象", description="检修规程")
public class Regular implements Serializable {
    private static final long serialVersionUID = 1L;

	/**id*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "id")
    private java.lang.String id;
	/**createDept*/
	@Excel(name = "createDept", width = 15)
    @ApiModelProperty(value = "createDept")
    private java.lang.String createDept;
	/**createBy*/
    @ApiModelProperty(value = "createBy")
    private java.lang.String createBy;
	/**createTime*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "createTime")
    private java.util.Date createTime;
	/**updateBy*/
    @ApiModelProperty(value = "updateBy")
    private java.lang.String updateBy;
	/**updateTime*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "updateTime")
    private java.util.Date updateTime;
    /**设备（类型）*/
    @Excel(name = "设备（类型）", width = 15, dictTable = "bu_device_type", dicText = "type_name", dicCode = "id")
    @Dict(dictTable = "bu_device_type", dicText = "type_name", dicCode = "id")
    @ApiModelProperty(value = "设备（类型）")
    private java.lang.String deviceTypeId;
	/**修程*/
	@Excel(name = "修程", width = 15, dicCode = "repair_range")
	@Dict(dicCode = "repair_range")
    @ApiModelProperty(value = "修程")
    private java.lang.Integer rapairRange;
	/**定义*/
	@Excel(name = "定义", width = 15)
    @ApiModelProperty(value = "定义")
    private java.lang.String ramark;
	/**检修周期*/
	@Excel(name = "检修周期", width = 15)
    @ApiModelProperty(value = "检修周期")
    private java.lang.Integer maintenanceCycle;
	/**允许偏差*/
	@Excel(name = "允许偏差", width = 15)
    @ApiModelProperty(value = "允许偏差")
    private java.lang.Integer bias;
	/**作业时长*/
	@Excel(name = "作业时长", width = 15)
    @ApiModelProperty(value = "作业时长")
    private java.lang.Integer duration;
    @Excel(name = "审核员1", width = 15)
    @ApiModelProperty(value = "审核员1")
    private java.lang.String review1;
    @Excel(name = "审核员2", width = 15)
    @ApiModelProperty(value = "审核员2")
    private java.lang.String review2;
    @Excel(name = "审核员3", width = 15)
    @ApiModelProperty(value = "审核员3")
    private java.lang.String review3;
    @Excel(name = "审核员4", width = 15)
    @ApiModelProperty(value = "审核员4")
    private java.lang.String review4;

    @ExcelIgnore
    @TableField(exist = false)
    private List<RegularDetail> regularDetailList;

    @ExcelIgnore
    @TableField(exist = false)
    private List<BaseItem> tools;

    @ExcelIgnore
    @TableField(exist = false)
    private List<BaseItem> materials;

    @TableField(exist = false)
    private String deviceId;

}
