|
@ -158,6 +158,7 @@ namespace Win_in.Sfs.Scp.WebApi |
|
|
|
|
|
|
|
|
private async Task UpsertTbReceiptAndTbReceiptDetailAsync(Receipt entity, Guid tenantId/*,bool flag*/) |
|
|
private async Task UpsertTbReceiptAndTbReceiptDetailAsync(Receipt entity, Guid tenantId/*,bool flag*/) |
|
|
{ |
|
|
{ |
|
|
|
|
|
|
|
|
//使用AutoMapper执行类型转换
|
|
|
//使用AutoMapper执行类型转换
|
|
|
var tbReceipt = ObjectMapper.Map<Receipt, TB_RECEIVE_QAD>(entity); |
|
|
var tbReceipt = ObjectMapper.Map<Receipt, TB_RECEIVE_QAD>(entity); |
|
|
var tbReceiveDetail = ObjectMapper.Map<Receipt, TB_RECEIVE_DETAIL_QAD>(entity); |
|
|
var tbReceiveDetail = ObjectMapper.Map<Receipt, TB_RECEIVE_DETAIL_QAD>(entity); |
|
@ -171,6 +172,7 @@ namespace Win_in.Sfs.Scp.WebApi |
|
|
//根据传入数据新增或修改SCP数据
|
|
|
//根据传入数据新增或修改SCP数据
|
|
|
await _tbReceiptDetailRepository.UpsertAsync(tbReceiveDetail); |
|
|
await _tbReceiptDetailRepository.UpsertAsync(tbReceiveDetail); |
|
|
await CurrentUnitOfWork.SaveChangesAsync(); |
|
|
await CurrentUnitOfWork.SaveChangesAsync(); |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |