3 天以前 b852254d90e7d1955db31db154193ec8ee84d8b3
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
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;
 
}