仓储bug

This commit is contained in:
2022-05-18 18:48:34 +08:00
parent 1999149b97
commit ad7d7c4311
2 changed files with 6 additions and 3 deletions
@@ -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 });