仓储bug
This commit is contained in:
@@ -273,7 +273,7 @@ namespace IRaCIS.Core.Application.Service
|
||||
var userId = sysUserInfo.Id;
|
||||
|
||||
//判断TrialUser中是否存在 不存在就插入
|
||||
if (!await _repository.AnyAsync<TrialUser>(t => t.TrialId == trialId && t.UserId == userId))
|
||||
if (!await _trialUserRepository.AnyAsync(t => t.TrialId == trialId && t.UserId == userId,true))
|
||||
{
|
||||
|
||||
await _repository.AddAsync(new TrialUser() { TrialId = trialId, UserId = userId });
|
||||
|
||||
Reference in New Issue
Block a user