# UpdateOtherConfigItemDTO.java

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

    import jakarta.validation.constraints.Max;
    import jakarta.validation.constraints.NotBlank;
    import jakarta.validation.constraints.NotNull;
    import lombok.Data;
    import org.hibernate.validator.constraints.Length;
    import org.hibernate.validator.constraints.Range;

    import java.math.BigDecimal;

    /**
     * DTO: Update Config Item
     *
     * @author: yyt
     * 2025-08-16
     */
    @Data
    public class UpdateOtherConfigItemDTO {

        /**
         * 分类 1、revenue
         */
        @NotNull(message = "the classification must not be null")
        @Range(min = 1, max = 1, message = "the classification must be in [1、revenue]")
        private Integer classification;

        /**
         * 名称
         */
        @NotBlank(message = "the name must not be blank")
        @Length(max = 255, message = "the name is limited 255 characters")
        private String name;

        /**
         * 是否启用预算收入
         */
        @NotNull(message = "the enableBudgetRevenue must not be null")
        private Boolean enableBudgetRevenue;

        /**
         * 预算收入输入值
         */
        @Max(value = 10000000, message = "the budgetRevenueInputValue is limited 10000000")
        private BigDecimal budgetRevenueInputValue;

        /**
         * 预算收入计算方式
         */
        @Range(min = 1, max = 4, message = "the budgetRevenueCalculateMethod must be in [1、+，2、-，3、*，4、/]")
        private Integer budgetRevenueCalculateMethod;

        /**
         * 预算收入变量配置 id
         */
        private Integer budgetRevenueVariableId;

    }