|
|
|
@ -6,7 +6,6 @@ using DS.WMS.Core.Fee.Entity;
|
|
|
|
|
using DS.WMS.Core.Info.Dtos;
|
|
|
|
|
using DS.WMS.Core.Info.Entity;
|
|
|
|
|
using DS.WMS.Core.Info.Interface;
|
|
|
|
|
using DS.WMS.Core.TaskPlat.Dtos;
|
|
|
|
|
using Mapster;
|
|
|
|
|
|
|
|
|
|
namespace DS.WMS.Core.Info.Method;
|
|
|
|
@ -59,8 +58,8 @@ public class ClientBankService : ServiceBase, IClientBankService
|
|
|
|
|
{
|
|
|
|
|
if (req.Id == 0)
|
|
|
|
|
{
|
|
|
|
|
if (await TenantDb.Queryable<InfoClientBank>().Where(x => x.BankName == req.BankName && x.BankAccountNo == req.BankAccountNo).AnyAsync())
|
|
|
|
|
return DataResult.Failed("客户银行信息已存在!", MultiLanguageConst.ClientBankExist);
|
|
|
|
|
if (await TenantDb.Queryable<InfoClientBank>().Where(x => x.ClientId == req.ClientId && x.BankName == req.BankName && x.Account == req.Account && x.Currency == req.Currency).AnyAsync())
|
|
|
|
|
return DataResult.Failed("银行信息已存在!", MultiLanguageConst.ClientBankExist);
|
|
|
|
|
|
|
|
|
|
var data = req.Adapt<InfoClientBank>();
|
|
|
|
|
var entity = await TenantDb.InsertNav(data).Include(x => x.InvoiceHeaders).ExecuteReturnEntityAsync();
|
|
|
|
|