Files
klp-oa/klp-wms/src/main/java/com/klp/domain/vo/WmsMaterialCoilVo.java

188 lines
3.8 KiB
Java
Raw Normal View History

2025-10-28 12:20:20 +08:00
package com.klp.domain.vo;
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;
2025-10-28 15:03:08 +08:00
import java.math.BigDecimal;
2025-10-29 11:17:52 +08:00
import java.util.List;
2025-10-28 12:20:20 +08:00
/**
* 钢卷物料表视图对象 wms_material_coil
*
* @author Joshi
* @date 2025-07-18
*/
@Data
@ExcelIgnoreUnannotated
public class WmsMaterialCoilVo {
private static final long serialVersionUID = 1L;
/**
* 主键ID
*/
@ExcelProperty(value = "主键ID")
private Long coilId;
/**
* 入场钢卷号
*/
@ExcelProperty(value = "入场钢卷号")
private String enterCoilNo;
/**
* 当前钢卷号
*/
@ExcelProperty(value = "当前钢卷号")
private String currentCoilNo;
/**
* 厂家原料卷号
*/
@ExcelProperty(value = "厂家原料卷号")
private String supplierCoilNo;
/**
* 数据类型0=历史1=现存
*/
@ExcelProperty(value = "数据类型", converter = ExcelDictConvert.class)
@ExcelDictFormat(readConverterExp = "0=历史1=现存")
private Integer dataType;
/**
* 所在库区ID
*/
@ExcelProperty(value = "所在库区ID")
private Long warehouseId;
/**
* 下一库区ID
*/
@ExcelProperty(value = "下一库区ID")
private Long nextWarehouseId;
/**
* 关联二维码ID
*/
@ExcelProperty(value = "关联二维码ID")
private Long qrcodeRecordId;
/**
* 班组
*/
@ExcelProperty(value = "班组")
private String team;
/**
* 是否合卷/分卷
*/
@ExcelProperty(value = "是否合卷/分卷", converter = ExcelDictConvert.class)
@ExcelDictFormat(readConverterExp = "0=否1=分卷2=合卷")
private Integer hasMergeSplit;
/**
* 父卷号
*/
@ExcelProperty(value = "父卷号")
private String parentCoilNos;
/**
* 物品类型
*/
@ExcelProperty(value = "物品类型")
private String itemType;
/**
* 物品ID
*/
@ExcelProperty(value = "物品ID")
private Long itemId;
2025-10-28 15:03:08 +08:00
/**
* 毛重kg
*/
@ExcelProperty(value = "毛重kg")
private BigDecimal grossWeight;
/**
* 净重kg
*/
@ExcelProperty(value = "净重kg")
private BigDecimal netWeight;
2025-10-28 12:20:20 +08:00
/**
* 状态
*/
@ExcelProperty(value = "状态", converter = ExcelDictConvert.class)
@ExcelDictFormat(readConverterExp = "0=在库1=在途2=已出库")
private Integer status;
/**
* 备注
*/
@ExcelProperty(value = "备注")
private String remark;
// ========== 关联对象属性 ==========
2025-10-28 12:20:20 +08:00
/**
* 所在库区信息
*/
private WmsWarehouseVo warehouse;
2025-10-28 12:20:20 +08:00
/**
* 下一库区信息
*/
private WmsWarehouseVo nextWarehouse;
2025-10-28 12:20:20 +08:00
/**
* 二维码信息
*/
private WmsGenerateRecordVo qrcodeRecord;
2025-10-28 12:20:20 +08:00
/**
* 原材料信息当itemType为raw_material时
*/
private WmsRawMaterialVo rawMaterial;
2025-10-28 12:20:20 +08:00
/**
* 产品信息当itemType为product时
*/
private Object product; // 产品VO待定义
2025-10-29 11:17:52 +08:00
/**
* BOM列表原材料对应的BOM项目信息
*/
private List<WmsBomItemVo> bomItemList;
2025-10-28 12:20:20 +08:00
2025-10-29 14:13:06 +08:00
// ========== 统计相关属性 ==========
2025-10-29 14:13:06 +08:00
/**
* 库区名称用于统计查询
*/
private String warehouseName;
2025-10-29 14:13:06 +08:00
/**
* 钢卷数量用于统计查询
*/
private Long coilCount;
2025-10-29 14:13:06 +08:00
/**
* 总毛重用于统计查询
*/
private BigDecimal totalGrossWeight;
2025-10-29 14:13:06 +08:00
/**
* 总净重用于统计查询
*/
private BigDecimal totalNetWeight;
2025-10-28 12:20:20 +08:00
2025-10-28 12:20:20 +08:00
}