fix(hjgl): 修复焊口打印与防腐数据处理

This commit is contained in:
2026-08-13 16:58:22 +08:00
parent 5160dde702
commit 0fb67e2006
6 changed files with 50 additions and 33 deletions
@@ -802,7 +802,8 @@ namespace FineUIPro.Web.HJGL.WeldingManage
if (!string.IsNullOrEmpty(col30))
{
// AF列为非必填项,只有填写时才按防腐字典校验并回填字典ID
var paint = getPaintCodeDict.FirstOrDefault(x => !string.IsNullOrEmpty(x.PaintCode) && x.PaintCode.Contains(col30));
// LINQ to SQL 不支持翻译 string.IsNullOrEmptyAF 已确认非空,直接按字典编码精确匹配。
var paint = getPaintCodeDict.FirstOrDefault(x => x.PaintCode == col30);
if (paint == null)
{
result.Add("第" + (i + 1).ToString() + "行," + "防腐等级" + "【" + col30 + "】不存在!" + "|");