package org.dromara.zhishu.domain.vo;

import java.math.BigDecimal;
import org.dromara.zhishu.domain.PriceTemplate;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.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;



/**
 * 价格模板视图对象 t_price_template
 *
 * @author yxy
 * @date 2025-03-17
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = PriceTemplate.class)
public class PriceTemplateVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

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

    /**
     * 价格模板名称
     */
    @ExcelProperty(value = "价格模板名称")
    private String templateName;

    /**
     * 价格类型 0 书价  1 总价（书价+运费）
     */
    private String priceType;

    /**
     * 增加比例
     */
    @ExcelProperty(value = "增加比例")
    private BigDecimal proportion;

    /**
     * 增加金额
     */
    @ExcelProperty(value = "增加金额")
    private BigDecimal addAmount;

    /**
     * 价格模板状态（0正常 1停用）
     */
    @ExcelProperty(value = "价格模板状态", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "0=正常,1=停用")
    private String status;

    /**
     * 价格区间最大值
     */
    private Integer highPrice;
    /**
     * 价格区间最小值
     */
    private Integer lowPrice;

    /**
     * 价格参数
     */
    private String rangePrice;



}
