package cn.iocoder.yudao.module.member.controller.admin.storeorder.vo;

import cn.iocoder.yudao.framework.common.pojo.PageParam;
import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
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 StoreOrderPageVO extends PageParam {


    @Schema(description = "订单ID", example = "1722")
    @ExcelProperty("订单号")
    private Integer orderId;

    @Schema(description = "门店", example = "1722")
    @ExcelProperty("门店")
    private String storesName;

    @Schema(description = "用户", example = "1722")
    @ExcelProperty("用户")
    private String nickName;

    @Schema(description = "手机", example = "1722")
    @ExcelProperty("手机")
    private String mobile;

    @Schema(description = "总价钱", example = "1722")
    @ExcelProperty("价钱")
    private Double totalPrice;

    @Schema(description = "减免金额")
    @ExcelProperty("减免金额")
    private Double reductionPrice;

    @Schema(description = "门店", example = "1722")
    @ExcelIgnore
    private Long carteenId;


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


    @Schema(description = "时间段", example = "1722")
    @ExcelIgnore
    private String timePeriod;

    @ExcelIgnore
    private String startDate;

    @ExcelIgnore
    private String endDate;

    @Schema(description = "订单状态", example = "1722")
    @ExcelIgnore
    private Integer status;
}