package com.sundot.airport.ledger.domain.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

@Data
public class CountSeizureSingleQuantityDateResVO {
    /**
     * 日期
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date recordDate;

    /**
     * 该日期下的查获数量明细列表
     */
    private List<CountSeizureSingleQuantityDateResVO.SeizureItem> items;

    @Data
    public static class SeizureItem implements Serializable {
        /**
         * 维度名称：员工名/小组名/班组名/部门名
         */
        private String groupName;

        /**
         * 当日查获数量
         */
        private Integer seizeQuantity;

        public SeizureItem() {}

        public SeizureItem(String groupName, Integer seizeQuantity) {
            this.groupName = groupName;
            this.seizeQuantity = seizeQuantity;
        }
    }
}
