# HkInventoryTaxRateDTO.java

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

    import cloud.wconnect.commonlib.annotation.validator.DigitsCustom;
    import jakarta.validation.constraints.Min;
    import jakarta.validation.constraints.NotNull;
    import lombok.AllArgsConstructor;
    import lombok.Data;
    import lombok.NoArgsConstructor;

    import java.math.BigDecimal;

    /**
     * 税率 DTO
     *
     * @author lichen
     * @date 2025/7/15
     */
    @Data
    @AllArgsConstructor
    @NoArgsConstructor
    public class HkInventoryTaxRateDTO {

        /**
         * 税率
         */
        @NotNull(message = "the taxRate cannot be null")
        @Min(value = 0, message = "the taxRate cannot be less than 0")
        @DigitsCustom(integer = 4, message = "the taxRate is wrong format")
        private BigDecimal taxRate;

    }