2025-07-18 10:12:48 +08:00
|
|
|
|
package com.klp.domain.vo;
|
|
|
|
|
|
|
|
|
|
|
|
import java.math.BigDecimal;
|
|
|
|
|
|
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
|
|
|
|
|
|
import com.alibaba.excel.annotation.ExcelProperty;
|
|
|
|
|
|
import com.klp.common.annotation.ExcelDictFormat;
|
|
|
|
|
|
import com.klp.common.convert.ExcelDictConvert;
|
|
|
|
|
|
import lombok.Data;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
* 库存:原材料/产品与库区/库位的存放关系视图对象 wms_stock
|
|
|
|
|
|
*
|
|
|
|
|
|
* @author Joshi
|
|
|
|
|
|
* @date 2025-07-18
|
|
|
|
|
|
*/
|
|
|
|
|
|
@Data
|
|
|
|
|
|
@ExcelIgnoreUnannotated
|
|
|
|
|
|
public class WmsStockVo {
|
|
|
|
|
|
|
|
|
|
|
|
private static final long serialVersionUID = 1L;
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
* 主键ID
|
|
|
|
|
|
*/
|
|
|
|
|
|
@ExcelProperty(value = "主键ID")
|
|
|
|
|
|
private Long stockId;
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
* 仓库/库区/库位ID
|
|
|
|
|
|
*/
|
|
|
|
|
|
private Long warehouseId;
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
* 物品类型(raw_material/product)
|
|
|
|
|
|
*/
|
|
|
|
|
|
@ExcelProperty(value = "物品类型", converter = ExcelDictConvert.class)
|
2025-07-19 17:53:28 +08:00
|
|
|
|
@ExcelDictFormat(readConverterExp = "raw_material/product")
|
2025-07-18 10:12:48 +08:00
|
|
|
|
private String itemType;
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
* 物品ID(指向原材料或产品主键)
|
|
|
|
|
|
*/
|
|
|
|
|
|
@ExcelProperty(value = "物品ID", converter = ExcelDictConvert.class)
|
2025-07-19 17:53:28 +08:00
|
|
|
|
@ExcelDictFormat(readConverterExp = "指向原材料或产品主键")
|
2025-07-18 10:12:48 +08:00
|
|
|
|
private Long itemId;
|
|
|
|
|
|
|
2025-07-19 17:53:28 +08:00
|
|
|
|
/**
|
|
|
|
|
|
* 物品名称(动态:产品或原材料)
|
|
|
|
|
|
*/
|
|
|
|
|
|
private String itemName;
|
|
|
|
|
|
/**
|
|
|
|
|
|
* 物品编码(动态:产品或原材料)
|
|
|
|
|
|
*/
|
|
|
|
|
|
private String itemCode;
|
|
|
|
|
|
|
2025-07-18 10:12:48 +08:00
|
|
|
|
/**
|
|
|
|
|
|
* 批次号(可选)
|
|
|
|
|
|
*/
|
|
|
|
|
|
@ExcelProperty(value = "批次号", converter = ExcelDictConvert.class)
|
2025-10-28 12:20:20 +08:00
|
|
|
|
@ExcelDictFormat(readConverterExp = "可选")
|
2025-07-18 10:12:48 +08:00
|
|
|
|
private String batchNo;
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
* 备注
|
|
|
|
|
|
*/
|
|
|
|
|
|
@ExcelProperty(value = "备注")
|
|
|
|
|
|
private String remark;
|
|
|
|
|
|
|
2025-08-01 17:04:32 +08:00
|
|
|
|
/**
|
|
|
|
|
|
* 仓库/库区名称
|
|
|
|
|
|
*/
|
|
|
|
|
|
@ExcelProperty(value = "仓库/库区名称")
|
|
|
|
|
|
private String warehouseName;
|
2025-07-18 10:12:48 +08:00
|
|
|
|
|
2025-10-31 14:37:19 +08:00
|
|
|
|
/**
|
|
|
|
|
|
* 状态(0=在库,1=在途,2=已出库)
|
|
|
|
|
|
*/
|
|
|
|
|
|
private Integer status;
|
|
|
|
|
|
|
2025-08-11 09:35:36 +08:00
|
|
|
|
/**
|
|
|
|
|
|
* 在途量
|
|
|
|
|
|
*/
|
|
|
|
|
|
@ExcelProperty(value = "在途量")
|
|
|
|
|
|
private BigDecimal onTheWay;
|
|
|
|
|
|
|
2025-10-28 12:20:20 +08:00
|
|
|
|
/**
|
|
|
|
|
|
* 总量(通过item_type和item_id查询对应的钢卷总量)
|
|
|
|
|
|
*/
|
|
|
|
|
|
@ExcelProperty(value = "总量")
|
|
|
|
|
|
private BigDecimal totalQuantity;
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
* 库存分布列表(按仓库统计)
|
|
|
|
|
|
*/
|
|
|
|
|
|
private java.util.List<WmsStockVo> stockDistribution;
|
|
|
|
|
|
|
2025-11-03 17:06:17 +08:00
|
|
|
|
|
|
|
|
|
|
//实际库区/库位自关联
|
|
|
|
|
|
private Long actualWarehouseId;
|
|
|
|
|
|
private String actualWarehouseName;
|
2025-11-17 17:00:57 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private String specification; // 规格
|
|
|
|
|
|
private String material; // 材质
|
|
|
|
|
|
private String surfaceTreatmentDesc; // 表面处理
|
|
|
|
|
|
private String zincLayer; // 锌层
|
|
|
|
|
|
private String manufacturer; // 厂家
|
2025-07-18 10:12:48 +08:00
|
|
|
|
}
|