liyong
2026-07-10 80ddf4c9c0bcb0f6c31524e0d9f5599c8001e904
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
package cn.iocoder.yudao.module.mes.controller.admin.wm.transfer.vo.line;
 
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.DecimalMin;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
 
import java.math.BigDecimal;
 
@Schema(description = "管理后台 - MES 转移单行 Save Request VO")
@Data
public class MesWmTransferLineSaveReqVO {
 
    @Schema(description = "编号", example = "1")
    private Long id;
 
    @Schema(description = "转移单编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotNull(message = "转移单编号不能为空")
    private Long transferId;
 
    @Schema(description = "库存记录编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotNull(message = "库存记录编号不能为空")
    private Long materialStockId;
 
    @Schema(description = "物料编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotNull(message = "物料编号不能为空")
    private Long itemId;
 
    @Schema(description = "转移数量", requiredMode = Schema.RequiredMode.REQUIRED, example = "100")
    @NotNull(message = "转移数量不能为空")
    @DecimalMin(value = "0.01", message = "转移数量必须大于 0")
    private BigDecimal quantity;
 
    @Schema(description = "批次编号", example = "1")
    private Long batchId;
 
    @Schema(description = "移出仓库编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotNull(message = "移出仓库编号不能为空")
    private Long fromWarehouseId;
 
    @Schema(description = "移出库区编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotNull(message = "移出库区编号不能为空")
    private Long fromLocationId;
 
    @Schema(description = "移出库位编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotNull(message = "移出库位编号不能为空")
    private Long fromAreaId;
 
    @Schema(description = "备注", example = "备注信息")
    private String remark;
 
}