# HkInventoryItemConfigDTO.java

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

    import cloud.wconnect.commonlib.annotation.validator.DigitsCustom;
    import jakarta.validation.constraints.NotBlank;
    import jakarta.validation.constraints.NotNull;
    import lombok.Data;
    import org.hibernate.validator.constraints.Length;

    import java.math.BigDecimal;

    /**
     * 客房库存管理分类配置DTO
     *
     * @author lichen
     * @date 2025/4/22
     */
    @Data
    public class HkInventoryItemConfigDTO {

        /**
         * 分类id
         */
        @NotNull(message = "the categoryId cannot be null")
        private Integer categoryId;

        /**
         * 房型id
         */
        @NotNull(message = "the roomTypeId cannot be null")
        private Integer roomTypeId;

        /**
         * 房型名称
         */
        @NotBlank(message = "the itemName cannot be blank")
        @Length(max = 255, message = "the itemName cannot be longer than 255 characters")
        private String itemName;

        /**
         * 每个房间最少需要的数量
         */
        @NotNull(message = "the minPerRoom cannot be null")
        private Integer minPerRoom;

        /**
         * 目标PAR
         */
        @NotNull(message = "the parTargete cannot be null")
        @DigitsCustom(integer = 9, message = "the parTarget format error")
        private BigDecimal parTarget;

        /**
         * 配置中的初始单价
         */
        @DigitsCustom(integer = 9, message = "the unitCost format error")
        @NotNull(message = "the unitCost cannot be null")
        private BigDecimal unitCost;

    }