| | |
| | | if (request.Keywords.IsNotNull()) |
| | | { |
| | | q = q.Where(it => |
| | | it.EnterpriseAuth.EnterpriseName.Contains(request.Keywords) |
| | | || it.EnterpriseAuth.LegalPerson.Contains(request.Keywords) |
| | | it.EnterpriseName.Contains(request.Keywords) |
| | | || it.LegalPerson.Contains(request.Keywords) |
| | | || it.Contacts.Contains(request.Keywords)); |
| | | } |
| | | if (request.IsConfigured.HasValue) |
| | |
| | | .Where(it => it.Id == request.Id) |
| | | .ProjectToType<GetEnterpriseQueryResult>() |
| | | .FirstOrDefaultAsync(cancellationToken); |
| | | if (model == null) throw Oops.Oh(EnumErrorCodeType.s404, "该企业"); |
| | | if (model == null) throw Oops.Oh(EnumErrorCodeType.s404, "企业"); |
| | | model.UserName = await rep.Change<User>().AsQueryable().AsNoTracking() |
| | | .Where(it => it.EnterpriseId == model.Id) |
| | | .Select(it => it.UserName) |
| | |
| | | .Where(it => it.Id == request.Id) |
| | | .ProjectToType<GetEnterpriseElectronSignSettingQueryResult>() |
| | | .FirstOrDefaultAsync(cancellationToken); |
| | | if (model == null) throw Oops.Oh(EnumErrorCodeType.s404, "该企业"); |
| | | if (model == null) throw Oops.Oh(EnumErrorCodeType.s404, "企业"); |
| | | return model; |
| | | } |
| | | |
| | |
| | | .Where(it => it.Id == request.Id) |
| | | .ProjectToType<GetEnterpriseSmsSettingQueryResult>() |
| | | .FirstOrDefaultAsync(cancellationToken); |
| | | if (model == null) throw Oops.Oh(EnumErrorCodeType.s404, "该企业"); |
| | | if (model == null) throw Oops.Oh(EnumErrorCodeType.s404, "企业"); |
| | | return model; |
| | | } |
| | | } |