# GmwrMonthlyOtbPaceDTO.java

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

    import cloud.wconnect.workperformance.cons.gmwr.monthlyotbpace.GmwrMonthlyOtbPaceEnum;
    import lombok.Data;

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

    /**
     * DTO: Monthly OTB Pace List
     *
     * @author zc
     * @date 2024/10/16
     */
    @Data
    public class GmwrMonthlyOtbPaceDTO {
        /**
         * 年月(yyyyMM)
         */
        private Long month;
        /**
         * List
         */
        private List<GmwrMonthlyOtbPaceValueDTO> list;

        public GmwrMonthlyOtbPaceDTO() {
            this.list = Arrays.stream(GmwrMonthlyOtbPaceEnum.values()).map(item -> {
                GmwrMonthlyOtbPaceValueDTO otbPaceValueDTO = new GmwrMonthlyOtbPaceValueDTO();
                otbPaceValueDTO.setCategory(item.getCategory());
                otbPaceValueDTO.setCategoryName(item.getCategoryName());
                return otbPaceValueDTO;
            }).toList();
        }
    }