package com.hotwj.platform.securityManagement.safetyInvestment.domain.vo;

import cn.idev.excel.annotation.ExcelIgnoreUnannotated;
import cn.idev.excel.annotation.ExcelProperty;
import com.hotwj.platform.securityManagement.safetyInvestment.domain.HotSafetyInvestment;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import org.dromara.common.excel.annotation.ExcelDictFormat;
import org.dromara.common.excel.convert.ExcelDictConvert;

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


/**
 * 安全生产投入视图对象 hot_safety_investment
 *
 * @author shihongwei
 * @date 2025-12-17
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = HotSafetyInvestment.class)
public class HotSafetyInvestmentVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @ExcelProperty(value = "主键")
    private Long id;

    /**
     * 公司ID
     */
    @ExcelProperty(value = "公司ID")
    private Long companyId;

    /**
     * 投入类型（字典）
     */
    @ExcelProperty(value = "投入类型", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "字=典")
    private String investmentType;

    /**
     * 投入名称
     */
    @ExcelProperty(value = "投入名称")
    private String investmentName;

    /**
     * 数量
     */
    @ExcelProperty(value = "数量")
    private Long quantity;

    /**
     * 投入金额
     */
    @ExcelProperty(value = "投入金额")
    private BigDecimal investmentAmount;

    /**
     * 投入时间
     */
    @ExcelProperty(value = "投入时间")
    private Date investmentTime;

    /**
     * 票据（pdf、jpg，OSS文件id）
     */
    @ExcelProperty(value = "票据", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "p=df、jpg，OSS文件id")
    private String receiptAttachments;

    /**
     * 使用部门
     */
    @ExcelProperty(value = "使用部门")
    private String useDept;

    /**
     * 使用缘由
     */
    @ExcelProperty(value = "使用缘由")
    private String useReason;

    /**
     * 备注
     */
    @ExcelProperty(value = "备注")
    private String remark;

    /**
     * 负责人签字OSS文件ID
     */
    @ExcelProperty(value = "负责人签字OSS文件ID")
    private String responsibleSignatureId;

    /**
     * 负责人签字图片URL
     */
    @ExcelProperty(value = "负责人签字图片URL")
    private String responsibleSignatureUrl;

    /**
     * 0=正常, 1=已删除
     */
    @ExcelProperty(value = "0=正常, 1=已删除")
    private Long isDeleted;


}
