package org.jeecg.modules.workorderTemplate.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.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.jeecg.modules.workorderGeneralStepfour.entity.WorkorderGeneralStepfour;
import org.jeecg.modules.workorderGeneralStepone.entity.WorkorderGeneralStepone;
import org.jeecg.modules.workorderParamStepone.entity.WorkorderParamStepone;
import org.jeecg.modules.workorderStatus.entity.WorkorderStatus;
import org.jeecg.modules.workorderStep.entity.WorkorderStep;
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:   2024-11-28
 * @Version: V1.0
 */
@Data
@TableName("workorder_template")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="workorder_template对象", description="工单信息表")
public class WorkorderTemplate 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;
	/**创建日期*/
    @ApiModelProperty(value = "创建日期")
    private java.util.Date createTime;
	/**更新人*/
    @ApiModelProperty(value = "更新人")
    private java.lang.String updateBy;
	/**更新日期*/
    @ApiModelProperty(value = "更新日期")
    private java.util.Date updateTime;
	/**任务号*/
	@Excel(name = "任务号", width = 15)
    @ApiModelProperty(value = "任务号")
    private java.lang.String taskNo;
	/**担当信息*/
	@Excel(name = "担当信息", width = 15)
    @ApiModelProperty(value = "担当信息")
    private java.lang.String responsibler;
	/**机型信息*/
	@Excel(name = "机型信息", width = 15)
    @ApiModelProperty(value = "机型信息")
    private java.lang.String model;
	/**数量*/
	@Excel(name = "数量", width = 15)
    @ApiModelProperty(value = "数量")
    private java.lang.Integer number;
	/**是否紧急*/
	@Excel(name = "是否紧急", width = 15, dicCode = "emergency_flag")
	@Dict(dicCode = "emergency_flag")
    @ApiModelProperty(value = "是否紧急")
    private java.lang.String isEmergency;
	/**备注*/
	@Excel(name = "备注", width = 15)
    @ApiModelProperty(value = "备注")
    private java.lang.String remark;
	/**关联状态id*/
	@Excel(name = "关联状态id", width = 15, dictTable = "workorder_status", dicText = "name", dicCode = "id")
	@Dict(dictTable = "workorder_status", dicText = "name", dicCode = "id")
    @ApiModelProperty(value = "关联状态id")
    private java.lang.String statusId;

	//工单状态描述
    @TableField(exist = false)
    private java.lang.String statusDescribe;

    //工序卡列表
    @TableField(exist = false)
    private List<WorkorderStep> workorderStepList;


}
