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.time.LocalTime;
import java.util.List;

@Data
public class DeptIncomeOutcomeParam implements Serializable {
    @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 List<Long> deptIdList;

    public DeptIncomeOutcomeParam() {
        this.endDateTime = LocalDateTime.now().plusDays(7).with(LocalTime.MAX);
        this.startDateTime = LocalDateTime.now().minusDays(7).with(LocalTime.MIN);
    }
}
