package com.hotwj.platform.operationManagement.hourPurchaseDetail.domain.vo;

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

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


/**
 * 培训学时购买明细视图对象 hot_hour_purchase_detail
 *
 * @author shihongwei
 * @date 2026-04-28
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = HotHourPurchaseDetail.class)
public class HotHourPurchaseDetailVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

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

    /**
     * 公司ID（应用层保证必填）
     */
    @ExcelProperty(value = "公司ID", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "应=用层保证必填")
    private Long companyId;

    /**
     * 账户ID（逻辑外键）
     */
    @ExcelProperty(value = "账户ID", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "逻=辑外键")
    private Long accountId;

    /**
     * 用户ID
     */
    @ExcelProperty(value = "用户ID")
    private Long userId;

    /**
     * 购买人
     */
    @ExcelProperty(value = "购买人")
    private String buyerName;

    /**
     * 购买企业ID
     */
    @ExcelProperty(value = "购买企业ID")
    private Long buyerCompanyId;

    /**
     * 购买企业名称
     */
    @ExcelProperty(value = "购买企业名称")
    private String buyerCompanyName;

    /**
     * 学时套餐购买记录ID
     */
    @ExcelProperty(value = "购买记录ID")
    private Long purchaseId;

    /**
     * 订单管理表ID（逻辑外键）
     */
    @ExcelProperty(value = "订单管理表ID", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "逻=辑外键")
    private Long orderId;

    /**
     * 订单号
     */
    @ExcelProperty(value = "订单号")
    private String orderNo;

    /**
     * 学时套餐ID
     */
    @ExcelProperty(value = "学时套餐ID")
    private Long packageId;

    /**
     * 套餐名称（快照）
     */
    @ExcelProperty(value = "套餐名称", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "快=照")
    private String packageName;

    /**
     * 适用类型（如日常培训、事故培训等）
     */
    @ExcelProperty(value = "适用类型", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "如=日常培训、事故培训等")
    private String applicableTypes;

    /**
     * 购买数量
     */
    @ExcelProperty(value = "购买数量")
    private Long purchaseCount;

    /**
     * 总课时数
     */
    @ExcelProperty(value = "总课时数")
    private Long totalHours;

    /**
     * 已使用学时数
     */
    @ExcelProperty(value = "已使用学时数")
    private Long usedHours;

    /**
     * 剩余学时数
     */
    @ExcelProperty(value = "剩余学时数")
    private Long remainingHours;

    /**
     * 钱包类型：1=个人钱包 2=企业钱包
     */
    @ExcelProperty(value = "钱包类型：1=个人钱包 2=企业钱包")
    private Long walletType;

    /**
     * 钱包ID
     */
    @ExcelProperty(value = "钱包ID")
    private Long walletId;

    /**
     * 乐观锁版本号
     */
    @ExcelProperty(value = "版本号")
    private Long version;

    /**
     * 状态：1=生效 2=已用完 3=已过期 4=已作废
     */
    @ExcelProperty(value = "状态：1=生效 2=已用完 3=已过期 4=已作废")
    private Long status;

    /**
     * 最近使用时间
     */
    @ExcelProperty(value = "最近使用时间")
    private Date lastUseTime;

    /**
     * 到期时间
     */
    @ExcelProperty(value = "到期时间")
    private Date expireTime;

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

    /**
     * 创建者姓名
     */
    @ExcelProperty(value = "创建者姓名")
    private String createByName;

    /**
     * 更新者姓名
     */
    @ExcelProperty(value = "更新者姓名")
    private String updateByName;

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


}
