
package org.sky.scientific.excel;


import com.alibaba.excel.annotation.ExcelProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import org.sky.core.tool.utils.DateUtil;

import java.io.Serial;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;


/**
 * 资产表 Excel实体类
 *
 * @author Kd
 * @since 2025-06-29
 */
@Data
public class AssetExcel implements Serializable {

	@Serial
	private static final long serialVersionUID = 1L;
	@Schema(description = "序号")
	private String xh;
	@NotBlank(message = "资产编码不能为空")
	private String zcbm;
	@NotBlank(message = "资产名称不能为空")
	private String zcmc;
 	@ExcelProperty("所属年月")
	private String yearAndMonth;
	@NotBlank(message = "资产类别不能为空")
	private String zclb;
 	@Schema(description = "功率")
	private String gl;
	@NotBlank(message = "用途不能为空")
	private String yt;
 	@JsonFormat(pattern = DateUtil.PATTERN_DATE)
	@NotNull(message = "开始日期不能为空")
	private Date kssj;
	@NotNull(message = "使用寿命不能为空")
	private Integer sysm;
	@Schema(description = "已使用月数")
	private Integer ysysm;
	@NotNull(message = "资产原值不能为空")
	private BigDecimal zcyz;
	@NotNull(message = "净残值不能为空")
	private Double jcz;
	@NotNull(message = "月折旧额/月摊销额不能为空")
	private BigDecimal yzje;
	@Schema(description = "状态")
	private String statusName;
}
