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

import com.hotwj.platform.operationManagement.hourUsageDetail.domain.HotHourUsageDetail;
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_usage_detail
 *
 * @author shihongwei
 * @date 2026-04-28
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = HotHourUsageDetail.class)
public class HotHourUsageDetailVo 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 purchaseDetailId;

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

    /**
     * 使用人员ID
     */
    @ExcelProperty(value = "使用人员ID")
    private Long userId;

    /**
     * 使用人员
     */
    @ExcelProperty(value = "使用人员")
    private String userName;

    /**
     * 操作人ID
     */
    @ExcelProperty(value = "操作人ID")
    private Long operatorId;

    /**
     * 操作人
     */
    @ExcelProperty(value = "操作人")
    private String operatorName;

    /**
     * 使用类型（如日常培训/违章培训）
     */
    @ExcelProperty(value = "使用类型", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "如=日常培训/违章培训")
    private String useType;

    /**
     * 套餐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 Long usedHours;

    /**
     * 扣减前剩余学时
     */
    @ExcelProperty(value = "扣减前剩余学时")
    private Long beforeRemainingHours;

    /**
     * 扣减后剩余学时
     */
    @ExcelProperty(value = "扣减后剩余学时")
    private Long afterRemainingHours;

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

    /**
     * 使用日期
     */
    @ExcelProperty(value = "使用日期")
    private Date useDate;

    /**
     * 业务单据ID
     */
    @ExcelProperty(value = "业务单据ID")
    private Long bizOrderId;

    /**
     * 业务单号
     */
    @ExcelProperty(value = "业务单号")
    private String bizOrderNo;

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

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

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

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


}
