Ritchie 1 год назад
Родитель
Сommit
7d45fb0ddb
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      src/main/java/com/szwl/service/impl/TLocationCheckServiceImpl.java

+ 2 - 2
src/main/java/com/szwl/service/impl/TLocationCheckServiceImpl.java

@@ -65,7 +65,7 @@ public class TLocationCheckServiceImpl extends ServiceImpl<TLocationCheckMapper,
             if (country.equals("中国")) {
             if (country.equals("中国")) {
                 containsUserInput = addr.contains(location);
                 containsUserInput = addr.contains(location);
             } else {
             } else {
-                containsUserInput = addr.contains(country) || addr.contains(location);
+                containsUserInput = addr.contains(country) || addr.contains(location) || location.contains(addr);
             }
             }
         }
         }
 
 
@@ -100,7 +100,7 @@ public class TLocationCheckServiceImpl extends ServiceImpl<TLocationCheckMapper,
             if (country.equals("中国")) {
             if (country.equals("中国")) {
                 containsUserInput = addr.contains(location);
                 containsUserInput = addr.contains(location);
             } else {
             } else {
-                containsUserInput = addr.contains(country) || addr.contains(location);
+                containsUserInput = addr.contains(country) || addr.contains(location) || location.contains(addr);
             }
             }
         }
         }