package cn.iocoder.yudao.module.mes.controller.admin.saleorder.vo;

import cn.iocoder.yudao.framework.common.pojo.PageParam;
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.math.BigDecimal;
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 SaleOrderPageReqVO extends PageParam {

    @Schema(description = "销售单编号")
    private String no;

    @Schema(description = "销售状态", example = "1")
    private Integer status;

    @Schema(description = "客户编号", example = "21463")
    private Long customerId;

    @Schema(description = "下单时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] orderTime;

    @Schema(description = "合计数量", example = "15252")
    private BigDecimal totalCount;

    @Schema(description = "合计价格，单位：元", example = "12141")
    private BigDecimal totalPrice;

    @Schema(description = "合计产品价格，单位：元", example = "14588")
    private BigDecimal totalProductPrice;

    @Schema(description = "备注", example = "随便")
    private String remark;

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

}