|
|
@ -4,6 +4,7 @@ using Microsoft.EntityFrameworkCore; |
|
|
|
using Microsoft.IdentityModel.Logging; |
|
|
|
using Volo.Abp.Domain.Repositories.EntityFrameworkCore; |
|
|
|
using Volo.Abp.EntityFrameworkCore; |
|
|
|
using Volo.Abp.ObjectExtending; |
|
|
|
using Win_in.Sfs.Scp.v1.Domain; |
|
|
|
|
|
|
|
namespace Win_in.Sfs.Scp.v1.EntityFrameworkCore |
|
|
@ -22,6 +23,10 @@ namespace Win_in.Sfs.Scp.v1.EntityFrameworkCore |
|
|
|
&& p.ErpRecvBillNum == tbReceipt.ErpRecvBillNum); |
|
|
|
if (current == null) |
|
|
|
{ |
|
|
|
LogHelper.LogInformation("TB_RECEIVE_QAD不存在!Site = " + tbReceipt.Site + " ErpRecvBillNum = " + |
|
|
|
tbReceipt.ErpRecvBillNum + " AsnBillNum = " + tbReceipt.AsnBillNum + " BillType = " + tbReceipt.BillType + " CreateTime = " + tbReceipt.CreateTime + |
|
|
|
" State = " + tbReceipt.State |
|
|
|
); |
|
|
|
ret = await InsertAsync(tbReceipt); |
|
|
|
} |
|
|
|
else |
|
|
@ -34,7 +39,10 @@ namespace Win_in.Sfs.Scp.v1.EntityFrameworkCore |
|
|
|
current.Remark = tbReceipt.Remark; |
|
|
|
current.State = tbReceipt.State; |
|
|
|
current.BillType = tbReceipt.BillType; |
|
|
|
|
|
|
|
LogHelper.LogInformation("TB_RECEIVE_QAD存在!Site = " + tbReceipt.Site + " ErpRecvBillNum = " + |
|
|
|
tbReceipt.ErpRecvBillNum + " AsnBillNum = " + tbReceipt.AsnBillNum + " BillType = " + tbReceipt.BillType + " CreateTime = " + tbReceipt.CreateTime + |
|
|
|
" State = " + tbReceipt.State |
|
|
|
); |
|
|
|
ret = await UpdateAsync(current); |
|
|
|
} |
|
|
|
|
|
|
@ -54,10 +62,18 @@ namespace Win_in.Sfs.Scp.v1.EntityFrameworkCore |
|
|
|
Console.WriteLine("TB_RECEIVE_QAD存在!Site = " + tbReceipt.Site + " ErpRecvBillNum = " + |
|
|
|
tbReceipt.ErpRecvBillNum + " AsnBillNum = " + tbReceipt.AsnBillNum + " BillType = " + tbReceipt.BillType + " CreateTime = " + tbReceipt.CreateTime); |
|
|
|
LogHelper.LogInformation("TB_RECEIVE_QAD存在!Site = " + tbReceipt.Site + " ErpRecvBillNum = " + |
|
|
|
tbReceipt.ErpRecvBillNum + " AsnBillNum = " + tbReceipt.AsnBillNum + " BillType = " + tbReceipt.BillType + " CreateTime = " + tbReceipt.CreateTime); |
|
|
|
|
|
|
|
tbReceipt.ErpRecvBillNum + " AsnBillNum = " + tbReceipt.AsnBillNum + " BillType = " + tbReceipt.BillType + " CreateTime = " + tbReceipt.CreateTime + |
|
|
|
" State = " + tbReceipt.State |
|
|
|
); |
|
|
|
|
|
|
|
} |
|
|
|
else |
|
|
|
{ |
|
|
|
LogHelper.LogInformation("TB_RECEIVE_QAD不存在!Site = " + tbReceipt.Site + " ErpRecvBillNum = " + |
|
|
|
tbReceipt.ErpRecvBillNum + " AsnBillNum = " + tbReceipt.AsnBillNum + " BillType = " + tbReceipt.BillType + " CreateTime = " + tbReceipt.CreateTime+ |
|
|
|
" State = "+ tbReceipt.State |
|
|
|
); |
|
|
|
} |
|
|
|
|
|
|
|
return flag; |
|
|
|
} |
|
|
|