Commit 122515be by zry

dbug

parent bd02894d
...@@ -14,6 +14,6 @@ public class UserResponse ...@@ -14,6 +14,6 @@ public class UserResponse
public string Mail { get; set; } public string Mail { get; set; }
public string Mobile { get; set; } public string Mobile { get; set; }
public int States { get; set; } public int States { get; set; }
public List<int> Hospital { get; set; } public string Hospital { get; set; }
} }
} }
...@@ -81,7 +81,7 @@ public List<UserResponse> GetUserList(int userID) ...@@ -81,7 +81,7 @@ public List<UserResponse> GetUserList(int userID)
var hoslist = _userhospitalRepository.GetEntities(p => p.UserID == item.UserID); var hoslist = _userhospitalRepository.GetEntities(p => p.UserID == item.UserID);
if (hoslist != null && hoslist.Count() > 0) if (hoslist != null && hoslist.Count() > 0)
{ {
item.Hospital = hoslist.Select(p => p.HospitalID.Value).ToList(); item.Hospital = string.Join(",", hoslist.Select(p => p.HospitalID.Value));
} }
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment