package org.jeecg.modules.device.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_part")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="bu_part对象", description="设备部件表")
public class Part 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;
	/**pid*/
	@Excel(name = "pid", width = 15)
    @ApiModelProperty(value = "pid")
    private java.lang.String pid;
	/**设备id*/
	@Excel(name = "设备id", width = 15)
    @ApiModelProperty(value = "设备id")
    @Dict(dictTable = "v_bu_device",dicText = "name",dicCode = "id")
    private java.lang.String device;
	/**部件编码*/
	@Excel(name = "部件编码", width = 15)
    @ApiModelProperty(value = "部件编码")
    private java.lang.String serialCode;
	/**部件名称*/
	@Excel(name = "部件名称", width = 15)
    @ApiModelProperty(value = "部件名称")
    private java.lang.String name;
	/**部件型号*/
	@Excel(name = "部件型号", width = 15)
    @ApiModelProperty(value = "部件型号")
    @Dict(dictTable = "bu_device_type",dicText = "type_name",dicCode = "id")
    private java.lang.String type;
	/**部件厂家*/
	@Excel(name = "部件厂家", width = 15)
    @ApiModelProperty(value = "部件厂家")
    private java.lang.String vender;
	/**所属生命周期*/
	@Excel(name = "所属生命周期", width = 15)
    @ApiModelProperty(value = "所属生命周期")
    @Dict(dicCode = "device_cycle")
    private java.lang.String cycle;
	/**状态*/
	@Excel(name = "状态", width = 15)
    @ApiModelProperty(value = "状态")
    @Dict(dicCode = "device_status")
    private java.lang.Integer status;
	/**数量*/
	@Excel(name = "数量", width = 15)
    @ApiModelProperty(value = "数量")
    private java.lang.Integer quantity;
	/**remark*/
	@Excel(name = "remark", width = 15)
    @ApiModelProperty(value = "remark")
    private java.lang.String remark;
	/**启用时间*/
	@Excel(name = "启用时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "启用时间")
    private java.util.Date beginTime;
	/**报废时间*/
	@Excel(name = "报废时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "报废时间")
    private java.util.Date finishTime;
	/**是否删除 1否1是*/
	@Excel(name = "是否删除 1否1是", width = 15)
    @ApiModelProperty(value = "是否删除 1否1是")
    private java.lang.Integer deleteFlag;
	/**虚拟部件*/
	@Excel(name = "虚拟部件", width = 15)
    @ApiModelProperty(value = "虚拟部件")
    private java.lang.String isVirtual;
    @Excel(name = "润滑油牌号", width = 15)
    @ApiModelProperty(value = "润滑油牌号")
    private String oilTag;
    @Excel(name = "上油量", width = 15)
    @ApiModelProperty(value = "上油量")
    private String oilNumber;
    @Excel(name = "补油周期", width = 15)
    @ApiModelProperty(value = "补油周期")
    private String fillCycle;

    @ExcelIgnore
    @TableField(exist = false)
    private List<Part> children;
}
