package com.yc.ship.module.product.controller.admin.voyagestockdetail.vo;

import lombok.*;
import io.swagger.v3.oas.annotations.media.Schema;
import com.yc.ship.framework.common.pojo.PageParam;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.time.LocalDateTime;

import static com.yc.ship.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 VoyageStockDetailPageReqVO extends PageParam {

    @Schema(description = "房型ID", example = "6357")
    private Long roomModelId;

    @Schema(description = "房型名称", example = "李四")
    private String roomModelName;

    @Schema(description = "航次ID", example = "3260")
    private Long voyageId;

    @Schema(description = "楼层")
    private Integer floor;

    @Schema(description = "房间总数")
    private BigDecimal totalNum;

    @Schema(description = "本次上架房间数")
    private BigDecimal shelfNum;

    @Schema(description = "待上架房间数")
    private BigDecimal notShelfNum;

    @Schema(description = "已上架房间数")
    private BigDecimal shelfedNum;

    @Schema(description = "预定房间数")
    private BigDecimal bookNum;

    @Schema(description = "可售房间数")
    private BigDecimal canSellNum;

    @Schema(description = "超卖房间数")
    private BigDecimal oversoldNum;

    @Schema(description = "剩余房间数")
    private BigDecimal surplusNum;

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

}