修复递归

This commit is contained in:
zhou-hao
2017-11-06 14:55:57 +08:00
parent e0dd32f515
commit 660fa42f14

View File

@@ -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