# HkInventoryPurchaseOrderDTO.java

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

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

    import java.math.BigDecimal;

    /**
     * 采购单DTO
     *
     * @author lichen
     * @date 2025/4/23
     */
    @Data
    public class HkInventoryPurchaseOrderDTO {

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

        /**
         * 分类名称
         */
        private String categoryName;

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

        /**
         * 房型名称
         */
        private String roomTypeName;

        /**
         * item id
         */
        @NotNull(message = "the itemId cannot be null")
        private Integer itemId;

        /**
         * item名称
         */
        private String itemName;

        /**
         * 采购的数量（单位包、袋等）
         */
        @NotNull(message = "the qty cannot be null")
        private Integer qty;

        /**
         * 一个单位（包、袋等）包含的物品数量单价（单位元）
         */
        @NotNull(message = "the unitPerCs cannot be null")
        private Integer unitPerCs;

        /**
         * 一个单位（包、袋等）的不含税价格
         */
        @NotNull(message = "the priceCs cannot be null")
        @DigitsCustom(integer = 9, message = "the priceCs format error")
        private BigDecimal priceCs;

        /**
         * 采购时间
         */
        @NotNull(message = "the purchaseTime cannot be null")
        private Long purchaseTime;

    }