package com.sckw.payment.model.vo.req;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.sckw.core.model.vo.BasePara;
import com.sckw.payment.model.constant.SettlementEnum;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serial;
import java.time.LocalDateTime;
import java.util.List;

/**
 * @author Aick Spt
 * @date 2023-07-18 11:29
 */
@Getter
@Setter
public class SettlementReq extends BasePara {
//    @Serial
//    private static final long serialVersionUID = 5328731681168692784L;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
//    @NotNull(message = "创建时间开始日期不能为空")
    private LocalDateTime startCreateTime;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
//    @NotNull(message = "创建时间结束日期不能为空")
    private LocalDateTime endCreateTime;

        @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
//    @NotNull(message = "预计回款开始日期不能为空")
    private LocalDateTime startReceiptTime;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
//    @NotNull(message = "预计回款结束日期不能为空")
    private LocalDateTime endReceiptTime;

    /**
     * @see SettlementEnum
     */
    private Integer status;


    private List<Long> ids;
}
