- 在 WmsStockLog 模型中添加 batchNo 字段 - 更新 WmsStockLogBo 和 WmsStockLogVo 中添加批次号属性 - 修改 WmsStockIoServiceImpl 中的 saveStockIoLog 方法,正确设置批次号
93 lines
2.3 KiB
Java
93 lines
2.3 KiB
Java
package com.klp.domain.vo;
|
||
|
||
import java.math.BigDecimal;
|
||
import java.util.Date;
|
||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||
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_log
|
||
*
|
||
* @author JR
|
||
* @date 2025-08-11
|
||
*/
|
||
@Data
|
||
@ExcelIgnoreUnannotated
|
||
public class WmsStockLogVo {
|
||
|
||
private static final long serialVersionUID = 1L;
|
||
|
||
/**
|
||
* 主键ID
|
||
*/
|
||
@ExcelProperty(value = "主键ID")
|
||
private Long id;
|
||
|
||
/**
|
||
* 仓库/库区/库位ID
|
||
*/
|
||
@ExcelProperty(value = "仓库/库区/库位ID")
|
||
private Long warehouseId;
|
||
|
||
/**
|
||
* 物品ID(指向原材料或产品主键)
|
||
*/
|
||
@ExcelProperty(value = "物品ID", converter = ExcelDictConvert.class)
|
||
@ExcelDictFormat(readConverterExp = "指=向原材料或产品主键")
|
||
private Long itemId;
|
||
|
||
/**
|
||
* 物品类型(raw_material/product)
|
||
*/
|
||
@ExcelProperty(value = "物品类型", converter = ExcelDictConvert.class)
|
||
@ExcelDictFormat(readConverterExp = "r=aw_material/product")
|
||
private String itemType;
|
||
|
||
/**
|
||
* 变动数量(正=入库,负=出库)
|
||
*/
|
||
@ExcelProperty(value = "变动数量", converter = ExcelDictConvert.class)
|
||
@ExcelDictFormat(readConverterExp = "正==入库,负=出库")
|
||
private BigDecimal changeQty;
|
||
|
||
/**
|
||
* 变动后的库存数量
|
||
*/
|
||
@ExcelProperty(value = "变动后的库存数量")
|
||
private BigDecimal afterQty;
|
||
|
||
/**
|
||
* 变动类型(入库/出库等)
|
||
*/
|
||
@ExcelProperty(value = "变动类型", converter = ExcelDictConvert.class)
|
||
@ExcelDictFormat(readConverterExp = "入=库/出库等")
|
||
private String changeType;
|
||
|
||
/**
|
||
* 实际库存变动时间
|
||
*/
|
||
@ExcelProperty(value = "实际库存变动时间")
|
||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||
private Date changeTime;
|
||
|
||
/**
|
||
* 备注
|
||
*/
|
||
@ExcelProperty(value = "备注")
|
||
private String remark;
|
||
|
||
/**
|
||
* 仓库/库区名称
|
||
*/
|
||
@ExcelProperty(value = "仓库/库区名称")
|
||
private String warehouseName;
|
||
|
||
//批次号
|
||
private String batchNo;
|
||
}
|