|
|
|
@ -4,23 +4,35 @@ import io.swagger.v3.oas.annotations.media.Schema;
|
|
|
|
|
import lombok.*;
|
|
|
|
|
import java.util.*;
|
|
|
|
|
import java.util.*;
|
|
|
|
|
import java.math.BigDecimal;
|
|
|
|
|
import org.springframework.format.annotation.DateTimeFormat;
|
|
|
|
|
import java.time.LocalDateTime;
|
|
|
|
|
import com.alibaba.excel.annotation.*;
|
|
|
|
|
import com.chanko.yunxi.mes.framework.excel.core.annotations.DictFormat;
|
|
|
|
|
import com.chanko.yunxi.mes.framework.excel.core.convert.DictConvert;
|
|
|
|
|
|
|
|
|
|
@Schema(description = "管理后台 - 入/出库 Response VO")
|
|
|
|
|
@Data
|
|
|
|
|
@ExcelIgnoreUnannotated
|
|
|
|
|
public class StorageRespVO {
|
|
|
|
|
|
|
|
|
|
@Schema(description = "出库时间", requiredMode = Schema.RequiredMode.REQUIRED, example = "1806")
|
|
|
|
|
@ExcelProperty("出库时间")
|
|
|
|
|
@Schema(description = "主键id", requiredMode = Schema.RequiredMode.REQUIRED, example = "24890")
|
|
|
|
|
@ExcelProperty("主键id")
|
|
|
|
|
private Long id;
|
|
|
|
|
|
|
|
|
|
@Schema(description = "入库出库类型:1为入库,2为出库", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
|
|
|
|
|
@ExcelProperty("入库出库类型:1为入库,2为出库")
|
|
|
|
|
private Boolean stockType;
|
|
|
|
|
@Schema(description = "入库出库大类型:1为入库,2为出库", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
|
|
|
|
|
@ExcelProperty(value = "入库出库大类型:1为入库,2为出库", converter = DictConvert.class)
|
|
|
|
|
@DictFormat("heli_storage_type") // TODO 代码优化:建议设置到对应的 DictTypeConstants 枚举类中
|
|
|
|
|
private Integer stockType;
|
|
|
|
|
|
|
|
|
|
@Schema(description = "入库类型(字典):1为采购入库,2为盘盈入库,3为其他入库", example = "1")
|
|
|
|
|
@ExcelProperty(value = "入库类型(字典):1为采购入库,2为盘盈入库,3为其他入库", converter = DictConvert.class)
|
|
|
|
|
@DictFormat("heli_storage_in_type") // TODO 代码优化:建议设置到对应的 DictTypeConstants 枚举类中
|
|
|
|
|
private Integer stockInType;
|
|
|
|
|
|
|
|
|
|
@Schema(description = "出库类型(字典):1为领料出库,2为销售出库,3为盘亏出库,4为其他出库", example = "2")
|
|
|
|
|
@ExcelProperty(value = "出库类型(字典):1为领料出库,2为销售出库,3为盘亏出库,4为其他出库", converter = DictConvert.class)
|
|
|
|
|
@DictFormat("heli_storage_out_type") // TODO 代码优化:建议设置到对应的 DictTypeConstants 枚举类中
|
|
|
|
|
private Integer stockOutType;
|
|
|
|
|
|
|
|
|
|
@Schema(description = "入/出库单号", requiredMode = Schema.RequiredMode.REQUIRED)
|
|
|
|
|
@ExcelProperty("入/出库单号")
|
|
|
|
@ -30,46 +42,19 @@ public class StorageRespVO {
|
|
|
|
|
@ExcelProperty("上游单号")
|
|
|
|
|
private Long headerNo;
|
|
|
|
|
|
|
|
|
|
@Schema(description = "物料 Id,对应 base_material表中的 Id 列", requiredMode = Schema.RequiredMode.REQUIRED, example = "651")
|
|
|
|
|
@ExcelProperty("物料 Id,对应 base_material表中的 Id 列")
|
|
|
|
|
private Long materialId;
|
|
|
|
|
@Schema(description = "备注", example = "你说的对")
|
|
|
|
|
@ExcelProperty("备注")
|
|
|
|
|
private String description;
|
|
|
|
|
|
|
|
|
|
@Schema(description = "批次号")
|
|
|
|
|
@ExcelProperty("批次号")
|
|
|
|
|
private String lotNo;
|
|
|
|
|
@Schema(description = "状态:1为保存;2为提交;3为作废", example = "1")
|
|
|
|
|
@ExcelProperty(value = "状态:1为保存;2为提交;3为作废", converter = DictConvert.class)
|
|
|
|
|
@DictFormat("heli_common_status") // TODO 代码优化:建议设置到对应的 DictTypeConstants 枚举类中
|
|
|
|
|
private Integer status;
|
|
|
|
|
|
|
|
|
|
@Schema(description = "仓库 Id,对应 wms_wh 表中的Id", requiredMode = Schema.RequiredMode.REQUIRED, example = "17136")
|
|
|
|
|
@Schema(description = "仓库Id,对应 wms_wh 表中的Id", requiredMode = Schema.RequiredMode.REQUIRED, example = "28079")
|
|
|
|
|
@ExcelProperty("仓库Id,对应 wms_wh 表中的Id")
|
|
|
|
|
private Long whId;
|
|
|
|
|
|
|
|
|
|
@Schema(description = "库区 Id,对应 wms_rg 表中的Id", requiredMode = Schema.RequiredMode.REQUIRED, example = "24171")
|
|
|
|
|
@ExcelProperty("库区 Id,对应 wms_rg 表中的Id")
|
|
|
|
|
private Long rgId;
|
|
|
|
|
|
|
|
|
|
@Schema(description = "库区 Id,对应 wms_rg 表中的Id", requiredMode = Schema.RequiredMode.REQUIRED, example = "3031")
|
|
|
|
|
@ExcelProperty("库区 Id,对应 wms_rg 表中的Id")
|
|
|
|
|
private Long pnId;
|
|
|
|
|
|
|
|
|
|
@Schema(description = "库存良品数量")
|
|
|
|
|
@ExcelProperty("库存良品数量")
|
|
|
|
|
private BigDecimal storageOkQty;
|
|
|
|
|
|
|
|
|
|
@Schema(description = "库存不良品数量")
|
|
|
|
|
@ExcelProperty("库存不良品数量")
|
|
|
|
|
private BigDecimal storageNgQty;
|
|
|
|
|
|
|
|
|
|
@Schema(description = "库存报废数量")
|
|
|
|
|
@ExcelProperty("库存报废数量")
|
|
|
|
|
private BigDecimal storageSpQty;
|
|
|
|
|
|
|
|
|
|
@Schema(description = "备注", example = "随便")
|
|
|
|
|
@ExcelProperty("备注")
|
|
|
|
|
private String description;
|
|
|
|
|
|
|
|
|
|
@Schema(description = "状态:1为保存;2为提交;3为作废", example = "2")
|
|
|
|
|
@ExcelProperty("状态:1为保存;2为提交;3为作废")
|
|
|
|
|
private Boolean status;
|
|
|
|
|
|
|
|
|
|
@Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
|
|
|
|
|
@ExcelProperty("创建时间")
|
|
|
|
|
private LocalDateTime createTime;
|
|
|
|
@ -84,11 +69,11 @@ public class StorageRespVO {
|
|
|
|
|
|
|
|
|
|
@Schema(description = "出库人")
|
|
|
|
|
@ExcelProperty("出库人")
|
|
|
|
|
private Long outer;
|
|
|
|
|
private Long outbound;
|
|
|
|
|
|
|
|
|
|
@Schema(description = "出库时间")
|
|
|
|
|
@ExcelProperty("出库时间")
|
|
|
|
|
private LocalDateTime outerTime;
|
|
|
|
|
private LocalDateTime outboundTime;
|
|
|
|
|
|
|
|
|
|
@Schema(description = "作废人")
|
|
|
|
|
@ExcelProperty("作废人")
|
|
|
|
|