package cn.iocoder.yudao.module.mes.controller.admin.wm.sn.vo; import io.swagger.v3.oas.annotations.media.Schema; import lombok.Data; import java.math.BigDecimal; import java.time.LocalDateTime; @Schema(description = "管理后台 - SN 码单件明细 Response VO") @Data public class MesWmSnDetailRespVO { @Schema(description = "编号", example = "1") private Long id; @Schema(description = "SN 码", example = "SN20260305000001") private String code; @Schema(description = "物料编号", example = "1") private Long itemId; @Schema(description = "批次号", example = "BATCH001") private String batchCode; @Schema(description = "状态(1-在库 2-已出库)", example = "1") private Integer status; @Schema(description = "在库仓库 ID", example = "5") private Long warehouseId; @Schema(description = "在库库区 ID", example = "11") private Long locationId; @Schema(description = "在库库位 ID", example = "10") private Long areaId; // ==================== 最近一笔库存事务(去向/位置来源) ==================== @Schema(description = "最近事务类型(1-入库 2-出库)", example = "1") private Integer lastTransactionType; @Schema(description = "最近事务类型名称", example = "入库") private String lastTransactionTypeName; @Schema(description = "最近事务变动数量", example = "1") private BigDecimal lastTransactionQuantity; @Schema(description = "最近事务业务类型", example = "109") private Integer lastTransactionBizType; @Schema(description = "最近事务业务单号", example = "SN20260305000001") private String lastTransactionBizCode; @Schema(description = "最近事务发生时间", example = "2026-09-08 10:00:00") private LocalDateTime lastTransactionTime; }