|
|
|
@ -58,8 +58,8 @@ public class ClientBankService : ServiceBase, IClientBankService
|
|
|
|
|
{
|
|
|
|
|
if (req.Id == 0)
|
|
|
|
|
{
|
|
|
|
|
if (await TenantDb.Queryable<InfoClientBank>().Where(x => x.CodeName == req.CodeName).AnyAsync())
|
|
|
|
|
return DataResult.Failed("客户银行信息已存在!", MultiLanguageConst.ClientBankExist);
|
|
|
|
|
//if (await TenantDb.Queryable<InfoClientBank>().Where(x => x.CodeName == req.CodeName).AnyAsync())
|
|
|
|
|
// return DataResult.Failed("客户银行信息已存在!", MultiLanguageConst.ClientBankExist);
|
|
|
|
|
|
|
|
|
|
var data = req.Adapt<InfoClientBank>();
|
|
|
|
|
var entity = await TenantDb.InsertNav(data).Include(x => x.InvoiceHeaders).ExecuteReturnEntityAsync();
|
|
|
|
|