Browse Source

修复递归

zhou-hao 7 years ago
parent
commit
660fa42f14

+ 1 - 7
hsweb-system/hsweb-system-organizational/hsweb-system-organizational-service/hsweb-system-organizational-service-simple/src/main/java/org/hswebframework/web/service/organizational/simple/SimpleDistrictService.java

@@ -78,12 +78,6 @@ public class SimpleDistrictService extends AbstractTreeSortService<DistrictEntit
         return createQuery().where(DistrictEntity.code, code).single();
     }
 
-    @Override
-    @Cacheable(key = "'all'")
-    public List<DistrictEntity> select(Entity param) {
-        return createQuery().where().orderByAsc(DistrictEntity.sortIndex).listNoPaging();
-    }
-
     @Override
     @CacheEvict(allEntries = true)
     public int updateBatch(Collection<DistrictEntity> data) {
@@ -93,7 +87,7 @@ public class SimpleDistrictService extends AbstractTreeSortService<DistrictEntit
     @Override
     @Cacheable(key = "'all'")
     public List<DistrictEntity> select() {
-        return super.select();
+        return  createQuery().where().orderByAsc(DistrictEntity.sortIndex).listNoPaging();
     }
 
     @Override