# GroupPickupDTO.java

    package cloud.wconnect.rateshop.pojo.dto.revenue;

    import jakarta.validation.Valid;
    import jakarta.validation.constraints.NotEmpty;
    import jakarta.validation.constraints.Pattern;
    import lombok.Data;

    import java.util.List;

    /**
     * DTO: Group Pickup
     *
     * @author: yyt
     * 2025-07-07
     */
    @Data
    public class GroupPickupDTO {

        /**
         * 日期（yyyyMMdd）
         */
        @NotEmpty(message = "the targetDate is required")
        @Pattern(regexp = "^\\d{4}\\d{2}\\d{2}$", message = "The targetDate format is incorrect, right format is [yyyyMMdd]")
        private String targetDate;

        /**
         * 采集数据
         */
        @Valid
        private List<GroupPickupDetailDTO> groupPickups;

    }