package com.zanxiang.game.module.manage.pojo.params;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.zanxiang.game.module.mybatis.entity.Order;
import com.zanxiang.module.web.pojo.BaseListDTO;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDate;

/**
 * @author : lingfeng
 * @time : 2022-11-07
 * @description : 订单
 */
@Data
public class OrderParam extends BaseListDTO<Order> {

    private String orderId;

    private String cpOrderId;

    private String merchantOrderNo;

    private String userId;

    private String username;

    private String serverName;

    private String roleName;

    private String cpId;

    private Long gameId;

    private Long channelId;

    private String accountId;

    private String pitcherId;

    private String deviceSystem;

    private Integer isSwitch;

    private String productName;

    private String payWayId;

    private String merchantNo;

    private Integer status;

    private Integer cpStatus;

    private Integer isFirstRecharge;

    private Integer callBackStatus;

    @JsonFormat(pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate beginDate;

    @JsonFormat(pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate endDate;

    @JsonFormat(pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate regTimeStart;

    @JsonFormat(pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate regTimeEnd;

    @JsonFormat(pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate payTimeStart;

    @JsonFormat(pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate payTimeEnd;

    private Long regPayIntervalTimeMin;

    private Long regPayIntervalTimeMax;
}
