修正错误

This commit is contained in:
gongxh
2021-05-21 13:57:49 +08:00
parent d7515bb2a1
commit e6fb223adf
2 changed files with 4 additions and 4 deletions

View File

@@ -149,10 +149,10 @@ FROM MaterialAppVouch a
{
var strSql = @"update MaterialAppVouchs set dDueDate=@DueDate,cDefine22='是',cDefine23=@SN,cDefine24=@WorkCenter";
if (provide.Detail1.Count() != 0)
if (provide.Detail.Count() != 0)
{
var mappDetails = this.GetDetailByMoCode(provide.OrderCode, provide.OrderDetailId).ToDictionary(m => m.AllocateId);
foreach (var item in provide.Detail1)
foreach (var item in provide.Detail)
{
if (mappDetails.TryGetValue(item.AllocateId, out var _mappDetails))
{