From 44a7c47a724c154c54e256727c75e79d31fd42e2 Mon Sep 17 00:00:00 2001 From: 啊鑫 <t2856754968@163.com> Date: 星期四, 05 六月 2025 21:42:40 +0800 Subject: [PATCH] 优化代码格式,添加到货标识和查询条件 --- StandardPda/MES.Service/service/WomcaaManager.cs | 16 ++++++++++++++++ 1 files changed, 16 insertions(+), 0 deletions(-) diff --git a/StandardPda/MES.Service/service/WomcaaManager.cs b/StandardPda/MES.Service/service/WomcaaManager.cs index 76e5a52..5e72408 100644 --- a/StandardPda/MES.Service/service/WomcaaManager.cs +++ b/StandardPda/MES.Service/service/WomcaaManager.cs @@ -130,6 +130,14 @@ var single = base.GetSingle(it => it.Erpid == entity.Erpid); if (single != null) entity.Id = single.Id; + //Caa006 = dto.FMaterialId, + var mesLinkU9 = Db.Queryable<MesLinkU9>() + .Where(x => x.U9Id == dto.FMaterialId + && x.OrgId == dto.FPrdOrgId + && x.TableType == "MES_ITEMS").First(); + + if (mesLinkU9 != null) entity.Caa006 = mesLinkU9.MesId; + return entity; } @@ -206,6 +214,14 @@ .Where(s => s.Erpid == womcab.Erpid).Single(); if (entity != null) womcab.Id = entity.Id; + //Cab003 = dto.FMaterialID + var mesLinkU9 = Db.Queryable<MesLinkU9>() + .Where(x => x.U9Id == dto.FMaterialID + && x.OrgId == "1002011210000095" + && x.TableType == "MES_ITEMS").First(); + + if (mesLinkU9 != null) womcab.Cab003 = mesLinkU9.MesId; + womcabList.Add(womcab); } -- Gitblit v1.9.3