feat(wms): 优化卷材数据类型显示

- 移除 ExcelDictFormat 注解,改用文本字段显示数据类型
- 添加 dataTypeText 字段用于存储历史/现存文本描述
- 添加 isRelatedToOrderText 字段用于存储是/否文本描述
- 在服务层实现数据类型转换逻辑,将数字值转为对应文本
- 在服务层实现订单关联状态转换逻辑,将数字值转为对应文本
- 保持原有的 Excel 导出功能完整性
This commit is contained in:
2026-03-21 10:17:02 +08:00
parent 4478921d9b
commit 14df649282
2 changed files with 17 additions and 4 deletions

View File

@@ -2498,6 +2498,17 @@ public class WmsMaterialCoilServiceImpl implements IWmsMaterialCoilService {
if (Objects.equals(vo.getDataType(), 0)) {
vo.setActualWarehouseName(null);
}
// 转换数据类型0=历史,1=现存
if (vo.getDataType() != null) {
String dataTypeText = vo.getDataType() == 0 ? "历史" : "现存";
vo.setDataTypeText(dataTypeText);
}
// 转换是否与订单相关0=否,1=是
if (vo.getIsRelatedToOrder() != null) {
String isRelatedText = vo.getIsRelatedToOrder() == 0 ? "" : "";
vo.setIsRelatedToOrderText(isRelatedText);
}
}
}