# GmwrMonthEndDTO.java

    package cloud.wconnect.workperformance.pojo.dto.gmwr.monthend;

    import cloud.wconnect.workperformance.cons.gmwr.monthend.GmwrMonthEndEnum;
    import lombok.AllArgsConstructor;
    import lombok.Data;

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

    /**
     * DTO: Month End
     *
     * @author zc
     * @date 2024/10/15
     */
    @Data
    @AllArgsConstructor
    public class GmwrMonthEndDTO {
        /**
         * First Forecast 更新日期（yyyyMMdd）
         */
        private Long firstForecastUpdatedTime;
        /**
         * List
         */
        private List<GmwrMonthEndDetailDTO> list;

        public GmwrMonthEndDTO() {
            this.list = Arrays.stream(GmwrMonthEndEnum.values()).map(item -> {
                GmwrMonthEndDetailDTO monthEnd = new GmwrMonthEndDetailDTO();
                monthEnd.setCategory(item.getCategory());
                monthEnd.setCategoryName(item.getCategoryName());
                return monthEnd;
            }).toList();
        }
    }