package org.jeecg.modules.apply.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.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-02-21
 * @Version: V1.0
 */
@Data
@TableName("bu_apply_record")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="bu_apply_record对象", description="工器具/物资申请记录")
public class ApplyRecord implements Serializable {
    private static final long serialVersionUID = 1L;

	/**主键*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private java.lang.String id;
	/**创建人*/
    @ApiModelProperty(value = "创建人")
    private java.lang.String createBy;
	/**创建日期*/
	@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 createTime;
	/**更新人*/
    @ApiModelProperty(value = "更新人")
    private java.lang.String updateBy;
	/**更新日期*/
	@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 updateTime;
	/**所属部门*/
    @ApiModelProperty(value = "所属部门")
    private java.lang.String sysOrgCode;
	/**工单*/
	@Excel(name = "工单", width = 15)
    @ApiModelProperty(value = "工单")
    private java.lang.String workOrder;
	/**设备*/
	@Excel(name = "设备", width = 15)
    @ApiModelProperty(value = "设备")
    @Dict(dictTable = "v_bu_device",dicText = "name",dicCode = "id")
    private java.lang.String deviceId;
	/**申请类型*/
	@Excel(name = "申请类型", width = 15)
    @ApiModelProperty(value = "申请类型")
    @Dict(dicCode = "apply_type")
    private java.lang.Integer applyType;
	/**修程*/
	@Excel(name = "修程", width = 15)
    @ApiModelProperty(value = "修程")
    @Dict(dictTable = "bu_regular",dicText = "rapair_range",dicCode = "id")
    private java.lang.String regularId;
	/**申请状态*/
	@Excel(name = "申请状态", width = 15)
    @ApiModelProperty(value = "申请状态")
    @Dict(dicCode = "apply_status")
    private java.lang.Integer status;
	/**审批人*/
	@Excel(name = "审批人", width = 15)
    @ApiModelProperty(value = "审批人")
    @Dict(dictTable = "sys_user",dicText = "realname",dicCode = "id")
    private java.lang.String aduitBy;
	/**驳回理由*/
	@Excel(name = "驳回理由", width = 15)
    @ApiModelProperty(value = "驳回理由")
    private java.lang.String rejectReson;
    /**作业人*/
    @Excel(name = "作业人", width = 15)
    @ApiModelProperty(value = "作业人")
    @Dict(dictTable = "sys_user",dicText = "realname",dicCode = "id")
    private String operateBy;

    @TableField(exist = false)
    private List<ApplyDetails> details;
}
