|
|
@ -1,4 +1,6 @@ |
|
|
|
using System.Threading.Tasks; |
|
|
|
using System; |
|
|
|
using System.Threading; |
|
|
|
using System.Threading.Tasks; |
|
|
|
using Microsoft.EntityFrameworkCore; |
|
|
|
using Volo.Abp.Domain.Repositories.EntityFrameworkCore; |
|
|
|
using Volo.Abp.EntityFrameworkCore; |
|
|
@ -18,6 +20,7 @@ namespace Win_in.Sfs.Scp.v1.EntityFrameworkCore |
|
|
|
var dbSet = await GetDbSetAsync(); |
|
|
|
var current = await dbSet.FirstOrDefaultAsync(p => p.Site == taVender.Site |
|
|
|
&& p.VendId == taVender.VendId); |
|
|
|
|
|
|
|
if (current == null) |
|
|
|
{ |
|
|
|
ret = await InsertAsync(taVender); |
|
|
@ -42,6 +45,8 @@ namespace Win_in.Sfs.Scp.v1.EntityFrameworkCore |
|
|
|
} |
|
|
|
|
|
|
|
return ret; |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |