# HotelKpiStrWeekDTO.java

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

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

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

    /**
     * DTO: Str Week Detail
     *
     * @author zc
     * @date 2025/8/21
     */
    @Data
    @Builder
    @AllArgsConstructor
    public class HotelKpiStrWeekDTO {
        /**
         * 报告 S3 地址
         */
        private String reportUrl;
        /**
         * List
         */
        private List<HotelKpiStrWeekDateDTO> list;
        /**
         * 状态
         */
        private String status;

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