diff --git a/UniApiGroup/Controller/OdbcApiQadController.cs b/UniApiGroup/Controller/OdbcApiQadController.cs index 81247ac..4510d09 100644 --- a/UniApiGroup/Controller/OdbcApiQadController.cs +++ b/UniApiGroup/Controller/OdbcApiQadController.cs @@ -822,7 +822,7 @@ namespace CK.SCP.GrupUniApi.Controller //var _liii = _lii.ToList(); //var _entity = _liii.First(); // 根据 零件号作废 - var askdetaill = wdb.TB_ASK_DETAIL.Where(p => p.PoBillNum == _lii.purDocNO && p.PartCode == _lii.mtlNO).ToList(); + var askdetaill = wdb.TB_ASK_DETAIL.Where(p => p.PoBillNum == _lii.purDocNO && p.PartCode == _lii.mtlNO && p.PoLine == int.Parse(_lii.PURDOCITEMNO)).ToList(); askdetaill.ForEach(p => { p.State = -1; diff --git a/UniApiGroup/Controller/PoBillNumcontroller.cs b/UniApiGroup/Controller/PoBillNumcontroller.cs index fdc2bfd..7b5918e 100644 --- a/UniApiGroup/Controller/PoBillNumcontroller.cs +++ b/UniApiGroup/Controller/PoBillNumcontroller.cs @@ -61,6 +61,8 @@ namespace CK.SCP.UniApi.Controller public string proposerid { get; set; } public string CREATEDBY { get; set; } public string ctype { get; set; } + + public string PURDOCITEMNO { get; set; } /// /// 鎵规 ///