瀏覽代碼

返回市民Id

qinchaoyue 3 天之前
父節點
當前提交
4ea4a84d45
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/Hotline.Application/Snapshot/SnapshotUserApplication.cs

+ 1 - 1
src/Hotline.Application/Snapshot/SnapshotUserApplication.cs

@@ -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