package com.ruoyi.stock.dto; import com.fasterxml.jackson.annotation.JsonFormat; import com.ruoyi.stock.pojo.StockInventory; import io.swagger.v3.oas.annotations.media.Schema; import lombok.Data; import org.springframework.format.annotation.DateTimeFormat; import java.math.BigDecimal; import java.time.LocalDate; @Data public class StockInventoryDto extends StockInventory { private String productName; private String model; private String unit; private String materialCode; private String productModelName; private String recordType; private Long recordId; @DateTimeFormat(pattern = "yyyy-MM-dd") @JsonFormat(pattern = "yyyy-MM-dd") private LocalDate reportDate; @DateTimeFormat(pattern = "yyyy-MM-dd") @JsonFormat(pattern = "yyyy-MM-dd") private LocalDate startMonth; @DateTimeFormat(pattern = "yyyy-MM-dd") @JsonFormat(pattern = "yyyy-MM-dd") private LocalDate endMonth; private BigDecimal totalStockIn; private BigDecimal totalStockOut; private BigDecimal currentStock; private BigDecimal unLockedQuantity; private Long productId; @Schema(description = "顶级父级产品ID") private Long topParentProductId; @Schema(description = "库存类型") private String stockType; @Schema(description = "合格库存数量") private BigDecimal qualifiedQuantity; @Schema(description = "不合格库存数量") private BigDecimal unQualifiedQuantity; @Schema(description = "合格冻结数量") private BigDecimal qualifiedLockedQuantity; @Schema(description = "不合格冻结数量") private BigDecimal unQualifiedLockedQuantity; @Schema(description = "合格可用数量") private BigDecimal qualifiedUnLockedQuantity; @Schema(description = "不合格可用数量") private BigDecimal unQualifiedUnLockedQuantity; @Schema(description = "合格库存ID") private Long qualifiedId; @Schema(description = "不合格库存ID") private Long unQualifiedId; @Schema(description = "合格批次号") private String qualifiedBatchNo; @Schema(description = "不合格批次号") private String unQualifiedBatchNo; }