|
|
@ -80,12 +80,16 @@ namespace Shentun.Peis.AsbitemGuides |
|
|
} |
|
|
} |
|
|
else |
|
|
else |
|
|
{ |
|
|
{ |
|
|
entlist = entlist.Where(m => m.ForSexId == SexId).ToList(); //直接匹配性别
|
|
|
|
|
|
if (!entlist.Any()) |
|
|
|
|
|
|
|
|
var newEntlist = entlist.Where(m => m.ForSexId == SexId).ToList(); //直接匹配性别
|
|
|
|
|
|
if (!newEntlist.Any()) |
|
|
{ |
|
|
{ |
|
|
//找不到直接匹配的 去找全部的匹配数据
|
|
|
//找不到直接匹配的 去找全部的匹配数据
|
|
|
entlist = entlist.Where(m => m.ForSexId == ForSexFlag.All).ToList(); |
|
|
entlist = entlist.Where(m => m.ForSexId == ForSexFlag.All).ToList(); |
|
|
} |
|
|
} |
|
|
|
|
|
else |
|
|
|
|
|
{ |
|
|
|
|
|
entlist = newEntlist; |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
if (entlist.Any()) |
|
|
if (entlist.Any()) |
|
|
|