package org.jeecg.modules.appInterface.entity;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
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：   2020-10-15
 * @version： V1.0
 */
@Data
@TableName("fbs_working_statistics")
public class FbsWorkingStatistics implements Serializable {
    private static final long serialVersionUID = 1L;
    
	/**工时统计表主键*/
	@TableId(type = IdType.UUID)
	private String id;
	/**派工单主键*/
	@Excel(name = "派工单主键", width = 15)
	private String pkWorkshopDispatchList;
	/**人员编码*/
	@Excel(name = "人员编码", width = 15)
	private String personnelCode;
	/**人员名称*/
	@Excel(name = "人员名称", width = 15)
	private String personnelName;
	/**物料编码*/
	@Excel(name = "物料编码", width = 15)
	private String materielCode;
	/**物料名称*/
	@Excel(name = "物料名称", width = 15)
	private String materielName;
	/**物料id*/
	@Excel(name = "物料id", width = 15)
	private String materielId;
	/**工序行号*/
	@Excel(name = "工序行号", width = 15)
	private String procedureNo;
	/**开工日期*/
	@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 startDate;
	/**完工日期*/
	@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 endDate;
	/**首次得到时间*/
	@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 firstTime;
	/**本流程使用工时*/
	private BigDecimal workingHours;
	/**最后调用时间*/
	@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 finalTime;
	/**完结信息（开工、下岗/暂停、实时报工）*/
	@Excel(name = "完结信息（开工、下岗/暂停、实时报工）", width = 15)
	private String finalInfo;
	/**完结状态（1-开工，2-下岗/暂停，3-实时报工）*/
	@Excel(name = "完结状态（1-开工，2-下岗/暂停，3-实时报工）", width = 15)
	private String finalState;
	/**生产线名称*/
	@Excel(name = "生产线名称", width = 15)
	private String productionLineName;
	/**删除标记0正常1删除*/
	@Excel(name = "删除标记0正常1删除", width = 15)
	private String delFlag;
	/**订单号*/
	@Excel(name = "订单号", width = 15)
	private String orderNumber;
	/**订单id*/
	@Excel(name = "订单id", width = 15)
	private String orderId;
	/**合格数量*/
	@Excel(name = "合格数量", width = 15)
	private String qualifiedNumber;
	/**报废数量 */
	@Excel(name = "报废数量", width = 15)
	private String scrapNumber;
	/**报废原因*/
	@Excel(name = "报废原因", width = 15)
	private String scrapInfo;
	/**拒绝数量*/
	@Excel(name = "拒绝数量", width = 15)
	private String refuseNumber;
	/**拒绝原因*/
	@Excel(name = "拒绝原因", width = 15)
	private String refuseInfo;
	/**0保存，1提交 */
	@Excel(name = "0保存，1提交", width = 15)
	private String state;
	//物料行号
	private String rowNumber;

	//产品名称
	@TableField(exist = false)
	private String product;

	//订单号
	@TableField(exist = false)
	private String productionOrderNumberName;

	//产品编码
	@TableField(exist = false)
	private String productId;
	//时间
	@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")
	@TableField(exist = false)
	private Date cutTime;

	/**
	 * 批次号（以英文逗号分割）
	 */
	private String batchCode;


}
