Files
klp-oa/klp-wms/src/main/java/com/klp/domain/vo/WmsActualWarehouseVo.java
Joshi a42ee951a9 feat(wms): 查询实际库位列表时补充占用钢卷信息
- 引入 WmsMaterialCoil 和其 Mapper 依赖
- 在查询实际库位时,针对被占用的库位(isEnabled=0)补充对应的钢卷信息
- 查询当前在库且状态正常的钢卷数据(del_flag=0, status=0)
- 对同一库位多条钢卷记录的情况,取主键最大的作为最新记录
- 将钢卷编号信息(入库号、当前号、供应商号)设置到库位 VO 中返回前端展示
2025-12-06 10:28:24 +08:00

79 lines
1.9 KiB
Java
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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;
/**
* 实际库区/库位自关联视图对象 wms_actual_warehouse
*
* @author klp
* @date 2025-11-24
*/
@Data
@ExcelIgnoreUnannotated
public class WmsActualWarehouseVo {
private static final long serialVersionUID = 1L;
/**
* 主键ID
*/
@ExcelProperty(value = "主键ID")
private Long actualWarehouseId;
/**
* 父节点ID指向同表 warehouse_id
*/
@ExcelProperty(value = "父节点ID", converter = ExcelDictConvert.class)
@ExcelDictFormat(readConverterExp = "指=向同表,w=arehouse_id")
private Long parentId;
/**
* 实际库区/库位编码
*/
@ExcelProperty(value = "实际库区/库位编码")
private String actualWarehouseCode;
/**
* 实际库区/库位名称
*/
@ExcelProperty(value = "实际库区/库位名称")
private String actualWarehouseName;
/**
* 类型0=仓库1=库区2=库位,…
*/
@ExcelProperty(value = "类型0=仓库1=库区2=库位,…")
private Long actualWarehouseType;
/**
* 同级排序号
*/
@ExcelProperty(value = "同级排序号")
private Long sortNo;
/**
* 是否启用0=否1=是)
*/
@ExcelProperty(value = "是否启用", converter = ExcelDictConvert.class)
@ExcelDictFormat(readConverterExp = "0==否1=是")
private Integer isEnabled;
/**
* 备注
*/
@ExcelProperty(value = "备注")
private String remark;
// 占用钢卷信息(当 isEnabled=0 时可能有值)
private String enterCoilNo;
private String currentCoilNo;
private String supplierCoilNo;
}