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 GoodsRevenueParam implements Serializable {
    private List<Integer> orderDetailTypeList;
    // 1:食堂 2:档口
//    private Integer countType;
    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 GoodsRevenueParam() {
        this.endDateTime = LocalDateTime.now().plusDays(7);
        this.startDateTime = LocalDateTime.now().minusDays(7);
    }
}
