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

import lombok.*;
import java.util.*;
import io.swagger.v3.oas.annotations.media.Schema;
import cn.iocoder.yudao.framework.common.pojo.PageParam;
import java.math.BigDecimal;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;

import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - 长者优惠规则分页 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class DiscountRulePageReqVO extends PageParam {

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

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

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

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

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

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

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

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

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

    @Schema(description = "优惠开始时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] startTime;

    @Schema(description = "优惠结束时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] endTime;

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

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

    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

}