Browse Source

接口作废

SCP_CYJ
qian 2 months ago
parent
commit
243d98b11a
  1. 10
      UniApiGroup/Controller/OdbcApiQadController.cs

10
UniApiGroup/Controller/OdbcApiQadController.cs

@ -816,13 +816,13 @@ namespace CK.SCP.GrupUniApi.Controller
var xxMaxbath = new List<xxDiMaxes_Po>();
var Dlist = list.Where(p => p.ctype == "D");
var Ilist = list.Where(p => p.ctype != "D");
var _li = Dlist.GroupBy(p => p.purDocNO);
foreach (var _lii in _li)
//var _li = Dlist.GroupBy(p => p.purDocNO);
foreach (var _lii in Dlist)
{
var _liii = _lii.ToList();
var _entity = _liii.First();
//var _liii = _lii.ToList();
//var _entity = _liii.First();
// 根据 零件号作废
var askdetaill = wdb.TB_ASK_DETAIL.Where(p => p.PoBillNum == _entity.purDocNO && p.PartCode == _entity.mtlNO).ToList();
var askdetaill = wdb.TB_ASK_DETAIL.Where(p => p.PoBillNum == _lii.purDocNO && p.PartCode == _lii.mtlNO).ToList();
askdetaill.ForEach(p =>
{
p.State = -1;

Loading…
Cancel
Save