package org.jeecg.modules.fbsBasedate.entity;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
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.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;

/**
 * @Description: 工艺流程档案
 * @author: jeecg-boot
 * @date:   2021-01-14
 * @version: V1.0
 */
@Data
@TableName("fbs_technological_process")
public class FbsTechnologicalProcess implements Serializable {
    private static final long serialVersionUID = 1L;
    
	/**工艺流程主键*/
	@TableId(type = IdType.UUID)
	private String id;
	/**名称*/
	@Excel(name = "名称", width = 15)
	private String name;
	/**排序*/
	@Excel(name = "排序", width = 15)
	private Integer sort;
	/**备注*/
	@Excel(name = "备注", width = 15)
	private String memo;
	/**删除标记0正常1删除*/
	@Excel(name = "删除标记0正常1删除", width = 15)
	private String delFlag;
	/**创建人*/
	@Excel(name = "创建人", width = 15)
	private String createBy;
	/**创建时间*/
	@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")
	private Date createTime;
	/**最后修改人*/
	@Excel(name = "最后修改人", width = 15)
	private String updateBy;
	/**最后修改时间*/
	@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")
	private Date updateTime;
	/**自定义字段1*/
	@Excel(name = "自定义字段1", width = 15)
	private String def1;
	/**自定义字段2*/
	@Excel(name = "自定义字段2", width = 15)
	private String def2;
	/**自定义字段3*/
	@Excel(name = "自定义字段3", width = 15)
	private String def3;
	/**自定义字段4*/
	@Excel(name = "自定义字段4", width = 15)
	private String def4;
	/**自定义字段5*/
	@Excel(name = "自定义字段5", width = 15)
	private String def5;

	/**拉取时间*/
	private String pullDate;

	//存货名称
	@TableField(exist = false)
	private String cinvCName;

	//子表工艺名称
	@TableField(exist = false)
	private String itemName;

	//标准工时
	@TableField(exist = false)
	private BigDecimal standardWorkingHours;

	//明细
	@TableField(exist = false)
	private List<FbsTechnologicalProcessItem> fbsTechnologicalProcessItemList;
}