2 天以前 111270df037596a04df97f787ca8b9199dd99866
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
package cn.iocoder.yudao.module.mes.controller.admin.wm.transaction.vo;
 
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
 
import java.math.BigDecimal;
import java.time.LocalDateTime;
 
/**
 * 库存事务流水 Response VO
 */
@Schema(description = "管理后台 - 库存事务流水 Response VO")
@Data
public class MesWmTransactionRespVO {
 
    @Schema(description = "编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    private Long id;
 
    @Schema(description = "事务类型(1-入库 2-出库)", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    private Integer type;
 
    @Schema(description = "事务类型名称", example = "入库")
    private String typeName;
 
    @Schema(description = "业务类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "126")
    private Integer bizType;
 
    @Schema(description = "业务类型名称", example = "自定义入库")
    private String bizTypeName;
 
    @Schema(description = "业务单号", example = "STOCK_ADJUST_1")
    private String bizCode;
 
    // ========== 物料维度 ==========
 
    @Schema(description = "物料ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    private Long itemId;
 
    @Schema(description = "物料编码", example = "ITEM001")
    private String itemCode;
 
    @Schema(description = "物料名称", example = "螺丝")
    private String itemName;
 
    @Schema(description = "变动数量(正数=入库,负数=出库)", requiredMode = Schema.RequiredMode.REQUIRED, example = "100")
    private BigDecimal quantity;
 
    @Schema(description = "批次ID", example = "1")
    private Long batchId;
 
    @Schema(description = "批次号", example = "BATCH001")
    private String batchCode;
 
    // ========== 库存位置 ==========
 
    @Schema(description = "仓库ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    private Long warehouseId;
 
    @Schema(description = "仓库名称", example = "成品仓")
    private String warehouseName;
 
    @Schema(description = "库区ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    private Long locationId;
 
    @Schema(description = "库区名称", example = "A区")
    private String locationName;
 
    @Schema(description = "库位ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    private Long areaId;
 
    @Schema(description = "库位名称", example = "A-01-01")
    private String areaName;
 
    // ========== 时间 ==========
 
    @Schema(description = "事务发生时间", requiredMode = Schema.RequiredMode.REQUIRED)
    private LocalDateTime transactionTime;
 
    @Schema(description = "创建时间")
    private LocalDateTime createTime;
 
}