|
@@ -98,7 +98,7 @@ public class SnapshotUserApplication : ISnapshotUserApplication, IScopeDependenc
|
|
|
var query = _citizenRepository.Queryable(includeDeleted: true)
|
|
|
.LeftJoin<ThirdAccount>((citizen, third) => citizen.Id == third.ExternalId)
|
|
|
.WhereIF(dto.PhoneNumber.NotNullOrEmpty(), (citizen, third) => citizen.PhoneNumber.Contains(dto.PhoneNumber))
|
|
|
- .Select((citizen, third) => new GetThirdCitizenOutDto(), true);
|
|
|
+ .Select((citizen, third) => new GetThirdCitizenOutDto { CitizenId = citizen.Id}, true);
|
|
|
#if DEBUG
|
|
|
var sql = query.ToSqlString();
|
|
|
#endif
|