diff --git a/UniApiGroup/Controller/OdbcApiQadController.cs b/UniApiGroup/Controller/OdbcApiQadController.cs index f273099..c31a9a2 100644 --- a/UniApiGroup/Controller/OdbcApiQadController.cs +++ b/UniApiGroup/Controller/OdbcApiQadController.cs @@ -878,6 +878,8 @@ namespace CK.SCP.GrupUniApi.Controller var qadASKList = wmsAskDetailList.Count(p => p.PoBillNum == qadPoNbr.purDocNO && p.PartCode == qadPoNbr.mtlNO); var wmsAskDetail1 = wdb.TB_ASK_DETAIL.Count(p => p.PoBillNum == qadPoNbr.purDocNO && p.PartCode == qadPoNbr.mtlNO); + // + var tapart = wdb.TA_PART.Where(q => q.PartCode == qadPoNbr.mtlNO.Trim()).ToList(); if (qadASKList == 0 && wmsAskDetail1 == 0) { String str = "k"; @@ -895,7 +897,7 @@ namespace CK.SCP.GrupUniApi.Controller EndTime = qadPoNbr.itemDeliveryDate,//收货结束时间 Price = 0, AskQty = qadPoNbr.quantity, - DockCode = "YC", + DockCode = tapart.Count()>0 ? tapart.FirstOrDefault().PartGroup:"YC", PoUnit = qadPoNbr.baseUnitMeasure, Currency = qadPoNbr.sizecoL, };