# GmwrMonthlyOtbPaceBasicDTO.java

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

    import cloud.wconnect.workperformance.cons.gmwr.monthlyotbpace.GmwrMonthlyOtbPaceEnum;
    import com.google.common.collect.Lists;
    import lombok.Data;

    import java.util.List;

    /**
     * DTO: Monthly OTB Pace Basic
     *
     * @author zc
     * @date 2024/10/16
     */
    @Data
    public class GmwrMonthlyOtbPaceBasicDTO {
        /**
         * 月份(yyyyMM)
         */
        private Long month;
        /**
         * Detail
         */
        private List<GmwrMonthlyOtbPaceBasicValueDTO> list;

        public GmwrMonthlyOtbPaceBasicDTO() {
            this.list = Lists.newArrayList(GmwrMonthlyOtbPaceEnum.TRANSIENT, GmwrMonthlyOtbPaceEnum.GROUP_DEF_TEN,
                    GmwrMonthlyOtbPaceEnum.CONTRACT).stream().map(item -> {
                GmwrMonthlyOtbPaceBasicValueDTO otbPaceValueDTO = new GmwrMonthlyOtbPaceBasicValueDTO();
                otbPaceValueDTO.setCategory(item.getCategory());
                return otbPaceValueDTO;
            }).toList();
        }
    }