# HotelKpiStrWeekDateDTO.java

    package cloud.wconnect.workperformance.pojo.dto.hotelkpi.strdata.week;

    import cloud.wconnect.workperformance.cons.hotelkpi.strdata.HotelKpiStrWeekEnum;
    import lombok.AllArgsConstructor;
    import lombok.Builder;
    import lombok.Data;

    import java.util.Arrays;
    import java.util.List;

    /**
     * DTO: Str Week Date
     *
     * @author zc
     * @date 2025/8/21
     */
    @Data
    @Builder
    @AllArgsConstructor
    public class HotelKpiStrWeekDateDTO {
        /**
         * Date Category: 1 Week、2 MTD
         */
        private Integer category;
        /**
         * Date Category Name
         */
        private String categoryName;
        /**
         * 开始日期(yyyyMMdd)
         */
        private Long startDate;
        /**
         * 结束日期(yyyyMMdd)
         */
        private Long endDate;
        /**
         * List
         */
        private List<HotelKpiStrWeekValueDTO> list;

        public HotelKpiStrWeekDateDTO() {
            this.list = Arrays.stream(HotelKpiStrWeekEnum.values()).map(item -> {
                HotelKpiStrWeekValueDTO basicDTO = new HotelKpiStrWeekValueDTO();
                basicDTO.setCategory(item.getCategory());
                basicDTO.setCategoryName(item.getCategoryName());
                return basicDTO;
            }).toList();
        }
    }