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;
|
|
}
|