|
@@ -164,21 +164,23 @@ namespace TEAMModelOS.Controllers
|
|
|
//新区,高新,产业等非新政单位
|
|
|
foreach (var str in areaRemoveStr)
|
|
|
{
|
|
|
- x.city = x.city.Replace(str.Key, str.Value);
|
|
|
+ x.name = x.name.Replace(str.Key, str.Value);
|
|
|
//if (x.name.Length <= 6) {
|
|
|
// break;
|
|
|
//}
|
|
|
}
|
|
|
//去除冗余的学校信息,只保留地名和校名关键信息
|
|
|
foreach (var str in schooRemoveStr) {
|
|
|
- x.city = x.city.Replace(str, "");
|
|
|
+ x.name = x.name.Replace(str, "");
|
|
|
//if (x.name.Length <= 6) {
|
|
|
// break;
|
|
|
//}
|
|
|
}
|
|
|
- //替换
|
|
|
- if (x.name.Length > 6) {
|
|
|
-
|
|
|
+ //替换学校信息的副词
|
|
|
+ if (x.name.Length > 6) {
|
|
|
+ foreach (var str in schooReplaceStr) {
|
|
|
+ x.name = x.name.Replace(str.Key, str.Value);
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
}
|