去除新增客户银行的重复性校验

dev
嵇文龙 1 month ago
parent 9f38d372f7
commit 5c74b7e683

@ -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();

Loading…
Cancel
Save