package cn.iocoder.yudao.module.system.controller.admin.discount.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import java.util.*;
import java.math.BigDecimal;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;
import com.alibaba.excel.annotation.*;

@Schema(description = "管理后台 - 长者优惠规则 Response VO")
@Data
@ExcelIgnoreUnannotated
public class DiscountRuleRespVO {

    @Schema(description = "主键ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "17402")
    @ExcelProperty("主键ID")
    private Long id;

    @Schema(description = "长者ID", example = "25232")
    @ExcelProperty("长者ID")
    private Long elderId;

    @Schema(description = "长者姓名", example = "李四")
    @ExcelProperty("长者姓名")
    private String elderName;

    @Schema(description = "优惠规则名称", example = "赵六")
    @ExcelProperty("优惠规则名称")
    private String ruleName;

    @Schema(description = "费用项ID", example = "3784")
    @ExcelProperty("费用项ID")
    private Long itemId;

    @Schema(description = "费用项名称", example = "赵六")
    @ExcelProperty("费用项名称")
    private String itemName;

    private Long categoryId;

    private String categoryName;

    @Schema(description = "原价", example = "30155")
    @ExcelProperty("原价")
    private BigDecimal price;

    @Schema(description = "优惠折扣", example = "12062")
    @ExcelProperty("优惠折扣")
    private BigDecimal discount;

    @Schema(description = "优惠金额")
    @ExcelProperty("优惠金额")
    private BigDecimal discountAmount;

    @Schema(description = "优惠后金额")
    @ExcelProperty("优惠后金额")
    private BigDecimal discountedAmount;

    @Schema(description = "优惠开始时间")
    @ExcelProperty("优惠开始时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date startTime;

    @Schema(description = "优惠结束时间")
    @ExcelProperty("优惠结束时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date endTime;

    @Schema(description = "状态，0：失效 1：正常", example = "2")
    @ExcelProperty("状态，0：失效 1：正常")
    private Integer status;

    @Schema(description = "备注")
    @ExcelProperty("备注")
    private String remarks;

    @Schema(description = "创建时间")
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

    private Long tenantId;

}