|
|
@@ -30,7 +30,7 @@ public class CityServiceImpl extends ServiceImpl<CityMapper, City> |
|
|
|
private CityMapper cityMapper; |
|
|
|
|
|
|
|
@Override |
|
|
|
public List<City> getCityList() { |
|
|
|
public JsonResult getCityList() { |
|
|
|
List<City> list = cityMapper.selectList(new LambdaQueryWrapper<City>() |
|
|
|
.eq(City::getMark, 1)); |
|
|
|
|
|
|
@@ -40,7 +40,7 @@ public class CityServiceImpl extends ServiceImpl<CityMapper, City> |
|
|
|
.peek(city -> city.setItemList(getChildren(city, list))).sorted(Comparator.comparingInt(city -> (city.getSort() == null ? 0 : city.getSort()))) |
|
|
|
.collect(Collectors.toList()); |
|
|
|
|
|
|
|
return result; |
|
|
|
return JsonResult.success(result); |
|
|
|
} |
|
|
|
|
|
|
|
/** |