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

import com.fasterxml.jackson.annotation.JsonFormat;
import com.sckw.core.model.base.IdsList;
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;

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

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

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

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

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

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

    /**
     * 多用于导出时的id集合
     */
    private String ids;

    /**
     * 用于过滤当前登录者企业id
     */
    private Long entId;

    /**
     * 交易方式
     */
    private String trading;

    /**
     * 筛选交易方1
     */
    private Integer unitType;

    /**
     * 筛选交易方2
     */
    private Integer unitTypeTwo;

}
