/*
 *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
 *
 *  Redistribution and use in source and binary forms, with or without
 *  modification, are permitted provided that the following conditions are met:
 *
 *  Redistributions of source code must retain the above copyright notice,
 *  this list of conditions and the following disclaimer.
 *  Redistributions in binary form must reproduce the above copyright
 *  notice, this list of conditions and the following disclaimer in the
 *  documentation and/or other materials provided with the distribution.
 *  Neither the name of the dreamlu.net developer nor the names of its
 *  contributors may be used to endorse or promote products derived from
 *  this software without specific prior written permission.
 *  Author: Chill 庄骞 (smallchill@163.com)
 */
package org.springblade.modules.pl.productRework.excel;


import lombok.Data;

import java.util.Date;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.alibaba.excel.annotation.write.style.ContentRowHeight;
import com.alibaba.excel.annotation.write.style.HeadRowHeight;
import java.io.Serializable;


/**
 * 产品返修表 Excel实体类
 *
 * @author BladeX
 * @since 2023-12-05
 */
@Data
@ColumnWidth(25)
@HeadRowHeight(20)
@ContentRowHeight(18)
public class ProductReworkExcel implements Serializable {

	private static final long serialVersionUID = 1L;
	/**
	 * 维修时间
	 */
	@ColumnWidth(20)
	@ExcelProperty("上报人")
	private String createPersonName;
	/**
	 * 维修时间
	 */
	@ColumnWidth(20)
	@ExcelProperty("上报时间")
	private Date reworkDate;
	/**
	 * 维修时间
	 */
	@ColumnWidth(20)
	@ExcelProperty("维修人")
	private String reworkPersonName;
	/**
	 * 维修时间
	 */
	@ColumnWidth(20)
	@ExcelProperty("维修时间")
	private Date createTime;
	/**
	 * 维修时间
	 */
	@ColumnWidth(20)
	@ExcelProperty("审核人")
	private String auditPersonName;
	/**
	 * 维修完成时间
	 */
	@ColumnWidth(20)
	@ExcelProperty("审核时间")
	private Date auditDate;
	/**
	 * 产品二维码
	 */
	@ColumnWidth(20)
	@ExcelProperty("产品二维码")
	private String qrCode;
	/**
	 * 状态
	 */
	@ColumnWidth(20)
	@ExcelProperty("状态")
	private String status;

	public String getStatus() {
		if("1".equals(status)){
			return "待维修";
		}else if("2".equals(status)){
			return "已维修";
		}else if("3".equals(status)){
			return "维修成功";
		}
		return "";
	}
}
