# CopyToDTO.java

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

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

    import java.util.List;

    /**
     * DTO: Copy To
     *
     * @author: yyt
     * 2025-08-15
     */
    @Data
    public class CopyToDTO {

        /**
         * 目标年份
         */
        @NotBlank(message = "the targetYear is required")
        @Pattern(regexp = "^[0-9]{4}$", message = "The targetYear format is incorrect, right format is [yyyy]")
        private String targetYear;

        /**
         * 目标资产
         */
        @NotEmpty(message = "the propertyIds is required")
        private List<Integer> propertyIds;

    }