package com.yc.ship.module.trade.controller.admin.bill.vo;

import com.alibaba.excel.annotation.ExcelProperty;
import com.yc.ship.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 java.util.List;

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 BillPageReqVO extends PageParam {

    @Schema(description = "账单订单开始时间")
    private String orderStratTime;

    @Schema(description = "账单订单结束时间")
    private String orderEndTime;

    @Schema(description = "账单状态", example = "1")
    private Integer billStatus;

    @Schema(description = "账单订单数")
    private Integer orderNum;

    @Schema(description = "操作人ID", example = "25672")
    private Long operatorId;

    @Schema(description = "操作人", example = "张三")
    private String operatorName;

    @Schema(description = "还款人Id", example = "张三")
    @ExcelProperty("还款人Id")
    private Long payOperatorId;

    @Schema(description = "还款人名称", example = "张三")
    @ExcelProperty("还款人名称")
    private String payOperatorName;

    @Schema(description = "门店ID", example = "8584")
    private Long storeId;

    @Schema(description = "门店名称", example = "芋艿")
    private String storeName;

    @Schema(description = "旅行社ID", example = "8584")
    private Long agencyId;

    @Schema(description = "旅行社ID", example = "8584")
    private List<Long> agencyIds;

    @Schema(description = "旅行社名称", example = "芋艿")
    private String agencyName;

    @Schema(description = "待还总金额")
    private BigDecimal sellAmount;

    @Schema(description = "授信账单金额")
    private BigDecimal creditPay;

    @Schema(description = "已还金额")
    private BigDecimal payAmount;

    @Schema(description = "还款支付金额")
    private Integer payType;

    @Schema(description = "旅行社租户")
    private Long otaTenantId;


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

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

    @Schema(description = "旅行社账单ID")
    private Long billId;

    @Schema(description = "门店账单id")
    private Long id;

    @Schema(description = "账单还款开始时间")
    private String repayStartTime;

    @Schema(description = "账单还款结束时间")
    private String repayEndTime;
}