package com.bonus.canteen.core.report.domain;

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;

@Data
public class CanteenStallRevenueParam implements Serializable {
    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;

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