|
|
@ -58,7 +58,7 @@ public class ClientBankService : ServiceBase, IClientBankService
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if (req.Id == 0)
|
|
|
|
if (req.Id == 0)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if (await TenantDb.Queryable<InfoClientBank>().Where(x => x.ClientId == req.ClientId && x.BankName == req.BankName && x.Account == req.Account && x.Currency == req.Currency).AnyAsync())
|
|
|
|
if (await TenantDb.Queryable<InfoClientBank>().Where(x => x.ClientId == req.ClientId && x.BankAccountNo == req.BankAccountNo && x.Account == req.Account && x.Currency == req.Currency).AnyAsync())
|
|
|
|
return DataResult.Failed("银行信息已存在!", MultiLanguageConst.ClientBankExist);
|
|
|
|
return DataResult.Failed("银行信息已存在!", MultiLanguageConst.ClientBankExist);
|
|
|
|
|
|
|
|
|
|
|
|
var data = req.Adapt<InfoClientBank>();
|
|
|
|
var data = req.Adapt<InfoClientBank>();
|
|
|
|