# UpdateItemDTO.java

    package cloud.wconnect.workperformance.pojo.dto.scorecardgm;

    import cloud.wconnect.commonlib.annotation.validator.DigitsCustom;
    import lombok.AllArgsConstructor;
    import lombok.Data;
    import lombok.NoArgsConstructor;

    import jakarta.validation.constraints.NotNull;
    import java.math.BigDecimal;

    /**
     * DTO: Update Item
     *
     * @author yyt
     * 2023/10/5
     */
    @Data
    @AllArgsConstructor
    @NoArgsConstructor
    public class UpdateItemDTO {

        /**
         * 指标 id
         */
        @NotNull(message = "the id must no be null")
        private Integer id;

        /**
         * Target
         */
        @DigitsCustom(integer = 8, message = "the target is wrong format")
        private BigDecimal target;

        /**
         * Actual
         */
        @DigitsCustom(integer = 8, message = "the actual is wrong format")
        private BigDecimal actual;

    }