package com.bonus.canteen.core.order.domain.param;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

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

/**
 * 订单对象 order_info
 * 
 * @author ruoyi
 * @date 2025-04-14
 */

@Data
public class OrderRefundHistoryParam implements Serializable
{
    private static final long serialVersionUID = 1L;

    private Long orderId;

    private List<Long> deptIdList;

    @ApiModelProperty("开始时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime startDateTime;

    @ApiModelProperty("结束时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime endDateTime;

    private String searchValue;
    private String createBy;

    public OrderRefundHistoryParam() {
        this.endDateTime = LocalDateTime.now().plusDays(7);
        this.startDateTime = LocalDateTime.now().minusDays(7);
    }
}
