Browse Source

修复缺陷

liuyuqiang 2 years ago
parent
commit
9af3274892

+ 1 - 1
sooka-admin/src/main/java/com/sooka/web/controller/schooldistrict/BtpSchoolPvController.java

@@ -156,7 +156,7 @@ public class BtpSchoolPvController extends BaseController {
     @PostMapping("/getVillagesBySTypeAndPId")
     @ResponseBody
     public List<BtpSchoolPv> getVillagesBySTypeAndPId(BtpSchoolPv btpSchoolPv) {
-        if (StringUtils.isNull(btpSchoolPv.getvId()) || StringUtils.isBlank(btpSchoolPv.getSchoolType())) {
+        if (StringUtils.isNull(btpSchoolPv.getpId()) || StringUtils.isBlank(btpSchoolPv.getSchoolType())) {
             return new ArrayList<>();
         }
         return btpSchoolPvService.getVillagesBySTypeAndPId(btpSchoolPv);

+ 2 - 2
sooka-common/src/main/java/com/sooka/common/constant/Constants.java

@@ -92,13 +92,13 @@ public class Constants
      *
      * 委(村)查询 cache name
      */
-    public static final String VILLAGE_NAME_CACHE = "village-name:";
+    public static final String VILLAGE_NAME_CACHE = "village-name";
 
     /**
      *
      * 学区查询 cache name
      */
-    public static final String SCHOOL_NAME_CACHE = "school-name:";
+    public static final String SCHOOL_NAME_CACHE = "school-name";
 
     /**
      * 资源映射路径 前缀