package com.cf.imes.module.system.controller.admin.funds.invoice.vo;


import com.cf.imes.framework.common.pojo.PageParam;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

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

import static com.cf.imes.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - 组织可开票的数据明细 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
@Builder
public class InvoiceDetailsPageReqVO extends PageParam {


    @Schema(description = "组织ID")
    private Long organId;


    @Schema(description = "发票号")
    private String invoiceNo;


    @Schema(description = "发票状态，1待开票 2已开票 3开票失败")
    private Integer status;


    @Schema(description = "申请人")
    private String creator;


    @Schema(description = "开票人")
    private String invoicePerson;


    @Schema(description = "发票金额")
    private BigDecimal[] invoiceAmount;


    @Schema(description = "开票时间", example = "[2022-07-01 01:01:01 ,2022-07-01 01:01:01]")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] invoiceTime;


    @Schema(description = "交易时间", example = "[2022-07-01 01:01:01 ,2022-07-01 01:01:01]")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;


    @Schema(description = "交易金额")
    private BigDecimal[] amount;


}
