
package org.sky.scientific.excel;


import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

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 org.sky.core.tool.utils.DateUtil;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.io.Serial;
import java.lang.runtime.ObjectMethods;
import java.util.Date;


/**
 * 科研成果-其他成果 Excel实体类
 *
 * @author Kd
 * @since 2025-06-29
 */
@Data
@ColumnWidth(25)
@HeadRowHeight(20)
@ContentRowHeight(18)
public class CgQtExcel implements Serializable {

	@Serial
	private static final long serialVersionUID = 1L;

	@ColumnWidth(20)
	@ExcelProperty(index = 1, value = "成果编号")
	private String cgbh;

	@ColumnWidth(20)
	@ExcelProperty(index = 2, value = "成果名称")
	private String cgmc;

	@ColumnWidth(20)
	@ExcelProperty(index = 3, value = "成果类型")
	private String cmlx;

	@ColumnWidth(20)
	@ExcelProperty(index = 4, value = "颁布部门")
	private String bbbm;

	@ColumnWidth(20)
	@ExcelProperty(index = 5, value = "权利人")
	private String qlr;

	@ColumnWidth(20)
	@ExcelProperty(index = 6, value = "发明人")
	private String fmr;

	@ColumnWidth(20)
	@ExcelProperty(index = 7, value ="申请日期")
	@DateTimeFormat(pattern = DateUtil.PATTERN_DATE)
	@JsonFormat(pattern = DateUtil.PATTERN_DATE)
	private Date shenqingRq;

	@ColumnWidth(20)
	@ExcelProperty(index = 8, value ="授权日期")
	@DateTimeFormat(pattern = DateUtil.PATTERN_DATE)
	@JsonFormat(pattern = DateUtil.PATTERN_DATE)
	private Date shouquanRq;

	@ColumnWidth(20)
	@ExcelProperty(index = 9, value ="参与/主持")
	private String canyunZhuchi;

	@ColumnWidth(20)
	@ExcelProperty(index = 10, value ="项目名称")
	private String xmmc;

	@ColumnWidth(20)
	@ExcelProperty(index = 11, value ="项目编号")
	private String xmbh;

}
