| | |
| | | var entity = await rep.AsQueryable() |
| | | .Include(it => it.EnterpriseEmployee) |
| | | .Where(it => |
| | | it.TaskInfo.EnterpriseId == logier.Id |
| | | it.TaskInfo.EnterpriseId == logier.EnterpriseId |
| | | && it.Id == request.Id) |
| | | .FirstOrDefaultAsync(cancellationToken); |
| | | if (entity == null) throw Oops.Oh(EnumErrorCodeType.s404, "该报名信息"); |
| | |
| | | .Where(it => it.TaskInfoId == model.Id && it.EnterpriseEmployee.UserId == logier.Id) |
| | | .Select(it => it.EnterpriseEmployee.HireStatus) |
| | | .FirstOrDefaultAsync(); |
| | | model.IsCollected = await rep.Change<UserTaskCollect>().AsQueryable().AsNoTracking() |
| | | .AnyAsync(it => it.TaskInfoId == request.Id && it.UserId == logier.Id); |
| | | } |
| | | return model; |
| | | } |