Browse Source

自动保存

master
qian 4 months ago
parent
commit
df04b105fe
  1. 4
      WebApiService/src/Win_in.Sfs.Scp.v1.EntityFrameworkCore/Repositories/TbReceiptDetailRepository.cs
  2. 5
      WebApiService/src/Win_in.Sfs.Scp.v1.EntityFrameworkCore/Repositories/TbReceiptRepository.cs

4
WebApiService/src/Win_in.Sfs.Scp.v1.EntityFrameworkCore/Repositories/TbReceiptDetailRepository.cs

@ -22,7 +22,7 @@ namespace Win_in.Sfs.Scp.v1.EntityFrameworkCore
&& p.PartCode == tbReceiptDetail.PartCode); && p.PartCode == tbReceiptDetail.PartCode);
if (current == null) if (current == null)
{ {
ret = await InsertAsync(tbReceiptDetail); ret = await InsertAsync(tbReceiptDetail, autoSave: true);
LogHelper.LogInformation("TB_RECEIVE_QAD不存在!Site = " + tbReceiptDetail.Site + " ErpRecvBillNum = " + LogHelper.LogInformation("TB_RECEIVE_QAD不存在!Site = " + tbReceiptDetail.Site + " ErpRecvBillNum = " +
tbReceiptDetail.ErpRecvBillNum + " PoLine = " + tbReceiptDetail.PoLine + " BillType = " + tbReceiptDetail.BillType + " CreateTime = " + tbReceiptDetail.CreateTime + tbReceiptDetail.ErpRecvBillNum + " PoLine = " + tbReceiptDetail.PoLine + " BillType = " + tbReceiptDetail.BillType + " CreateTime = " + tbReceiptDetail.CreateTime +
@ -54,7 +54,7 @@ namespace Win_in.Sfs.Scp.v1.EntityFrameworkCore
" State = " + tbReceiptDetail.State + " qty = " + tbReceiptDetail.Qty + " DockCode = " + tbReceiptDetail.DockCode + " Batch =" + tbReceiptDetail.Batch + " State = " + tbReceiptDetail.State + " qty = " + tbReceiptDetail.Qty + " DockCode = " + tbReceiptDetail.DockCode + " Batch =" + tbReceiptDetail.Batch +
" VendBatch = " + tbReceiptDetail.VendBatch + " Remark =" + tbReceiptDetail.Remark + " PoUnit= " + tbReceiptDetail.PoUnit + " Rate =" + tbReceiptDetail.Rate " VendBatch = " + tbReceiptDetail.VendBatch + " Remark =" + tbReceiptDetail.Remark + " PoUnit= " + tbReceiptDetail.PoUnit + " Rate =" + tbReceiptDetail.Rate
); );
ret = await UpdateAsync(current); ret = await UpdateAsync(current, autoSave: true );
} }
return ret; return ret;

5
WebApiService/src/Win_in.Sfs.Scp.v1.EntityFrameworkCore/Repositories/TbReceiptRepository.cs

@ -27,7 +27,7 @@ namespace Win_in.Sfs.Scp.v1.EntityFrameworkCore
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 " State = " + tbReceipt.State
); );
ret = await InsertAsync(tbReceipt); ret = await InsertAsync(tbReceipt, autoSave: true);
} }
else else
{ {
@ -43,9 +43,8 @@ namespace Win_in.Sfs.Scp.v1.EntityFrameworkCore
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 " State = " + tbReceipt.State
); );
ret = await UpdateAsync(current); ret = await UpdateAsync(current, autoSave: true);
} }
return ret; return ret;
} }
public async Task<bool> GetCountAsync(TB_RECEIVE_QAD tbReceipt) public async Task<bool> GetCountAsync(TB_RECEIVE_QAD tbReceipt)

Loading…
Cancel
Save