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

import cn.idev.excel.annotation.ExcelIgnoreUnannotated;
import cn.idev.excel.annotation.ExcelProperty;
import com.hotwj.platform.operationManagement.hourPackage.domain.HotHourPackage;
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;


/**
 * 学时套餐视图对象 hot_hour_package
 *
 * @author shihongwei
 * @date 2026-05-08
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = HotHourPackage.class)
public class HotHourPackageVo 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;

    /**
     * 套餐编码
     */
    @ExcelProperty(value = "套餐编码")
    private String packageCode;

    /**
     * 套餐名称
     */
    @ExcelProperty(value = "套餐名称")
    private String packageName;

    /**
     * 学时类型：1=通用
     */
    @ExcelProperty(value = "学时类型：1=通用")
    private Long hourType;

    /**
     * 学时数（如1/50/100）
     */
    @ExcelProperty(value = "学时数", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "如=1/50/100")
    private Long hourCount;

    /**
     * 原价格(元)
     */
    @ExcelProperty(value = "原价格(元)")
    private BigDecimal originPrice;

    /**
     * 学时单价（元）
     */
    @ExcelProperty(value = "学时单价(元)")
    private BigDecimal unitPrice;

    /**
     * 状态：1=启用 0=停用
     */
    @ExcelProperty(value = "状态：1=启用 0=停用")
    private Long status;

    /**
     * 排序号
     */
    @ExcelProperty(value = "排序号")
    private Long sortNo;

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

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

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

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

    /**
     * 套餐活动价(元)
     */
    @ExcelProperty(value = "套餐活动价(元)")
    private BigDecimal packagePrice;

    /**
     * 适用类型(多选),逗号拼接
     */
    @ExcelProperty(value = "适用类型(多选),逗号拼接")
    private String applicableTypes;

    /**
     * 套餐说明
     */
    @ExcelProperty(value = "套餐说明")
    private String packageDesc;


}
